Skip to main content

organizations

Creates, updates, deletes, gets or lists an organizations resource.

Overview

Nameorganizations
TypeResource
Idazure_isv.astro.organizations

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, organizationNameGet a OrganizationResource
list_by_resource_groupselectsubscriptionId, resourceGroupNameList OrganizationResource resources by resource group
list_by_subscriptionselectsubscriptionIdList OrganizationResource resources by subscription ID
create_or_updateinsertsubscriptionId, resourceGroupName, organizationNameCreate a OrganizationResource
updateupdatesubscriptionId, resourceGroupName, organizationNameUpdate a OrganizationResource
deletedeletesubscriptionId, resourceGroupName, organizationNameDelete a OrganizationResource

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
organizationNamestringName of the Organizations resource
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get a OrganizationResource

SELECT
identity,
location,
properties,
tags
FROM azure_isv.astro.organizations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND organizationName = '{{ organizationName }}' -- required
;

INSERT examples

Create a OrganizationResource

INSERT INTO azure_isv.astro.organizations (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
organizationName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ organizationName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Update a OrganizationResource

UPDATE azure_isv.astro.organizations
SET
data__identity = '{{ identity }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND organizationName = '{{ organizationName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Delete a OrganizationResource

DELETE FROM azure_isv.astro.organizations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND organizationName = '{{ organizationName }}' --required
;