Skip to main content

management_group_subscriptions

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

Overview

Namemanagement_group_subscriptions
TypeResource
Idazure.management_groups.management_group_subscriptions

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertgroupId, subscriptionIdCache-ControlAssociates existing subscription with the management group.
deletedeletegroupId, subscriptionIdCache-ControlDe-associates subscription from the management group.

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
groupIdstringManagement Group ID.
subscriptionIdstringSubscription ID.
Cache-ControlstringIndicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.

INSERT examples

Associates existing subscription with the management group.

INSERT INTO azure.management_groups.management_group_subscriptions (
groupId,
subscriptionId,
Cache-Control
)
SELECT
'{{ groupId }}',
'{{ subscriptionId }}',
'{{ Cache-Control }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

De-associates subscription from the management group.

DELETE FROM azure.management_groups.management_group_subscriptions
WHERE groupId = '{{ groupId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND Cache-Control = '{{ Cache-Control }}'
;