Skip to main content

private_link_for_azure_ads

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

Overview

Nameprivate_link_for_azure_ads
TypeResource
Idazure.azure_active_directory.private_link_for_azure_ads

Fields

NameDatatypeDescription
idstringString Id used to locate any resource on Azure.
namestringName of this resource.
allTenantsbooleanFlag indicating whether all tenants are allowed
ownerTenantIdstringGuid of the owner tenant
resourceGroupstringName of the resource group
resourceNamestringName of the private link policy resource
subscriptionIdstringSubscription Identifier
tagsobjectResource tags.
tenantsarrayThe list of tenantIds.
typestringType of this resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpolicyName, resourceGroupName, subscriptionIdGets a private link policy with a given name.
listSELECTresourceGroupName, subscriptionIdOperation to return the list of Private Link Policies For AzureAD scoped to the resourceGroup.
list_by_subscriptionSELECTsubscriptionIdLists all Private Link Policies For AzureAD in the given subscription.
createINSERTpolicyName, resourceGroupName, subscriptionIdCreates a private link policy.
deleteDELETEpolicyName, resourceGroupName, subscriptionIdDeletes a private link policy. When operation completes, status code 200 returned without content.
updateUPDATEpolicyName, resourceGroupName, subscriptionIdUpdates private link policy tags with specified values.

SELECT examples

Lists all Private Link Policies For AzureAD in the given subscription.

SELECT
id,
name,
allTenants,
ownerTenantId,
resourceGroup,
resourceName,
subscriptionId,
tags,
tenants,
type
FROM azure.azure_active_directory.private_link_for_azure_ads
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.azure_active_directory.private_link_for_azure_ads (
policyName,
resourceGroupName,
subscriptionId,
name,
ownerTenantId,
allTenants,
tenants,
resourceName,
subscriptionId,
resourceGroup,
tags
)
SELECT
'{{ policyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ ownerTenantId }}',
{{ allTenants }},
'{{ tenants }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ resourceGroup }}',
'{{ tags }}'
;

UPDATE example

Updates a private_link_for_azure_ads resource.

/*+ update */
UPDATE azure.azure_active_directory.private_link_for_azure_ads
SET
tags = '{{ tags }}'
WHERE
policyName = '{{ policyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified private_link_for_azure_ads resource.

/*+ delete */
DELETE FROM azure.azure_active_directory.private_link_for_azure_ads
WHERE policyName = '{{ policyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';