Skip to main content

partner_configurations

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

Overview

Namepartner_configurations
TypeResource
Idazure.event_grid.partner_configurations

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
locationtextLocation of the resource.
partner_authorizationtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextTags of the resource.
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionIdGet properties of a partner configuration.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the partner configurations under a resource group.
list_by_subscriptionSELECTsubscriptionIdList all the partner configurations under an Azure subscription.
create_or_updateINSERTresourceGroupName, subscriptionIdSynchronously creates or updates a partner configuration with the specified parameters.
deleteDELETEresourceGroupName, subscriptionIdDelete existing partner configuration.
updateUPDATEresourceGroupName, subscriptionIdSynchronously updates a partner configuration with the specified parameters.
authorize_partnerEXECresourceGroupName, subscriptionIdAuthorize a single partner either by partner registration immutable Id or by partner name.
unauthorize_partnerEXECresourceGroupName, subscriptionIdUnauthorize a single partner either by partner registration immutable Id or by partner name.

SELECT examples

List all the partner configurations under an Azure subscription.

SELECT
id,
name,
location,
partner_authorization,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type
FROM azure.event_grid.vw_partner_configurations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a partner_configurations resource.

/*+ update */
UPDATE azure.event_grid.partner_configurations
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified partner_configurations resource.

/*+ delete */
DELETE FROM azure.event_grid.partner_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';