Skip to main content

configuration_profile_assignments

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

Overview

Nameconfiguration_profile_assignments
TypeResource
Idazure.automanage.configuration_profile_assignments

Fields

NameDatatypeDescription
configurationProfileAssignmentNametextfield from the properties object
configuration_profiletextfield from the properties object
managed_bytextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
target_idtextfield from the properties object
vmNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationProfileAssignmentName, resourceGroupName, subscriptionId, vmNameGet information about a configuration profile assignment
listSELECTresourceGroupName, subscriptionIdGet list of configuration profile assignments
list_by_cluster_nameSELECTclusterName, resourceGroupName, subscriptionIdGet list of configuration profile assignments
list_by_machine_nameSELECTmachineName, resourceGroupName, subscriptionIdGet list of configuration profile assignments
list_by_subscriptionSELECTsubscriptionIdGet list of configuration profile assignments under a given subscription
list_by_virtual_machinesSELECTresourceGroupName, subscriptionId, vmNameGet list of configuration profile assignments
create_or_updateINSERTconfigurationProfileAssignmentName, resourceGroupName, subscriptionId, vmNameCreates an association between a VM and Automanage configuration profile
deleteDELETEconfigurationProfileAssignmentName, resourceGroupName, subscriptionId, vmNameDelete a configuration profile assignment

SELECT examples

Get list of configuration profile assignments under a given subscription

SELECT
configurationProfileAssignmentName,
configuration_profile,
managed_by,
resourceGroupName,
status,
subscriptionId,
system_data,
target_id,
vmName
FROM azure.automanage.vw_configuration_profile_assignments
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automanage.configuration_profile_assignments (
configurationProfileAssignmentName,
resourceGroupName,
subscriptionId,
vmName,
properties
)
SELECT
'{{ configurationProfileAssignmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified configuration_profile_assignments resource.

/*+ delete */
DELETE FROM azure.automanage.configuration_profile_assignments
WHERE configurationProfileAssignmentName = '{{ configurationProfileAssignmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmName = '{{ vmName }}';