Skip to main content

configuration_profile_hcrp_assignments

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

Overview

Nameconfiguration_profile_hcrp_assignments
TypeResource
Idazure.automanage.configuration_profile_hcrp_assignments

Fields

NameDatatypeDescription
configurationProfileAssignmentNametextfield from the properties object
configuration_profiletextfield from the properties object
machineNametextfield 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

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationProfileAssignmentName, machineName, resourceGroupName, subscriptionIdGet information about a configuration profile assignment
create_or_updateINSERTconfigurationProfileAssignmentName, machineName, resourceGroupName, subscriptionIdCreates an association between a ARC machine and Automanage configuration profile
deleteDELETEconfigurationProfileAssignmentName, machineName, resourceGroupName, subscriptionIdDelete a configuration profile assignment

SELECT examples

Get information about a configuration profile assignment

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

INSERT example

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

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

DELETE example

Deletes the specified configuration_profile_hcrp_assignments resource.

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