Skip to main content

guest_usages

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

Overview

Nameguest_usages
TypeResource
Idazure.aad_b2c.guest_usages

Fields

NameDatatypeDescription
idtextAn identifier that represents the Guest Usages resource.
nametextThe name of the Guest Usages resource.
locationtextLocation of the Guest Usages resource.
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextKey-value pairs of additional resource provisioning properties.
tenant_idtextfield from the properties object
typetextThe type of the Guest Usages resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGets a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets Guest Usages resources under a resource group for the Microsoft.AzureActiveDirectory resource provider
list_by_subscriptionSELECTsubscriptionIdGets Guest Usages resources under a subscription for the Microsoft.AzureActiveDirectory resource provider
createINSERTresourceGroupName, resourceName, subscriptionIdCreates a Guest Usages resource, which is used to linking a subscription to an instance of Azure AD External Identities. Learn more.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDeletes a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider

SELECT examples

Gets Guest Usages resources under a subscription for the Microsoft.AzureActiveDirectory resource provider

SELECT
id,
name,
location,
resourceGroupName,
resourceName,
subscriptionId,
system_data,
tags,
tenant_id,
type
FROM azure.aad_b2c.vw_guest_usages
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.aad_b2c.guest_usages (
resourceGroupName,
resourceName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a guest_usages resource.

/*+ update */
UPDATE azure.aad_b2c.guest_usages
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified guest_usages resource.

/*+ delete */
DELETE FROM azure.aad_b2c.guest_usages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';