Skip to main content

management_associations

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

Overview

Namemanagement_associations
TypeResource
Idazure.operations_management.management_associations

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
application_idtextfield from the properties object
locationtextResource location
managementAssociationNametextfield from the properties object
providerNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resourceTypetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagementAssociationName, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdRetrieves the user ManagementAssociation.
list_by_subscriptionSELECTsubscriptionIdRetrieves the ManagementAssociations list.
create_or_updateINSERTmanagementAssociationName, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdCreates or updates the ManagementAssociation.
deleteDELETEmanagementAssociationName, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdDeletes the ManagementAssociation in the subscription.

SELECT examples

Retrieves the ManagementAssociations list.

SELECT
id,
name,
application_id,
location,
managementAssociationName,
providerName,
resourceGroupName,
resourceName,
resourceType,
subscriptionId,
type
FROM azure.operations_management.vw_management_associations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.operations_management.management_associations (
managementAssociationName,
providerName,
resourceGroupName,
resourceName,
resourceType,
subscriptionId,
location,
properties
)
SELECT
'{{ managementAssociationName }}',
'{{ providerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ resourceType }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified management_associations resource.

/*+ delete */
DELETE FROM azure.operations_management.management_associations
WHERE managementAssociationName = '{{ managementAssociationName }}'
AND providerName = '{{ providerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND resourceType = '{{ resourceType }}'
AND subscriptionId = '{{ subscriptionId }}';