Skip to main content

organizations

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

Overview

Nameorganizations
TypeResource
Idazure_isv.astro.organizations

Fields

NameDatatypeDescription
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
marketplacetextfield from the properties object
organizationNametextfield from the properties object
partner_organization_propertiestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
usertextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTorganizationName, resourceGroupName, subscriptionIdGet a OrganizationResource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList OrganizationResource resources by resource group
list_by_subscriptionSELECTsubscriptionIdList OrganizationResource resources by subscription ID
create_or_updateINSERTorganizationName, resourceGroupName, subscriptionIdCreate a OrganizationResource
deleteDELETEorganizationName, resourceGroupName, subscriptionIdDelete a OrganizationResource
updateUPDATEorganizationName, resourceGroupName, subscriptionIdUpdate a OrganizationResource

SELECT examples

List OrganizationResource resources by subscription ID

SELECT
identity,
location,
marketplace,
organizationName,
partner_organization_properties,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
user
FROM azure_isv.astro.vw_organizations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new organizations resource.

/*+ create */
INSERT INTO azure_isv.astro.organizations (
organizationName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ organizationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a organizations resource.

/*+ update */
UPDATE azure_isv.astro.organizations
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
organizationName = '{{ organizationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified organizations resource.

/*+ delete */
DELETE FROM azure_isv.astro.organizations
WHERE organizationName = '{{ organizationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';