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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
configurationProfilestringThe Automanage configurationProfile ARM Resource URI.
managedBystringAzure resource id. Indicates if this resource is managed by another Azure resource.
statusstringThe status of onboarding, which only appears in the response.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetIdstringThe target VM resource URI.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, configuration_profile_assignment_name, vm_name, subscription_idGet information about a configuration profile assignment.
list_by_virtual_machinesselectresource_group_name, vm_name, subscription_idGet list of configuration profile assignments.
list_by_machine_nameselectresource_group_name, machine_name, subscription_idGet list of configuration profile assignments.
list_by_cluster_nameselectresource_group_name, cluster_name, subscription_idGet list of configuration profile assignments.
listselectresource_group_name, subscription_idGet list of configuration profile assignments.
list_by_subscriptionselectsubscription_idGet list of configuration profile assignments under a given subscription.
create_or_updateinsertconfiguration_profile_assignment_name, resource_group_name, vm_name, subscription_idCreates an association between a VM and Automanage configuration profile.
create_or_updatereplaceconfiguration_profile_assignment_name, resource_group_name, vm_name, subscription_idCreates an association between a VM and Automanage configuration profile.
deletedeleteresource_group_name, configuration_profile_assignment_name, vm_name, subscription_idDelete a configuration profile assignment.

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
cluster_namestringThe name of the Arc machine. Required.
configuration_profile_assignment_namestringName of the configuration profile assignment. Required.
machine_namestringThe name of the Arc machine. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vm_namestringThe name of the virtual machine. Required.

SELECT examples

Get information about a configuration profile assignment.

SELECT
id,
name,
configurationProfile,
managedBy,
status,
systemData,
targetId,
type
FROM azure.automanage.configuration_profile_assignments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND configuration_profile_assignment_name = '{{ configuration_profile_assignment_name }}' -- required
AND vm_name = '{{ vm_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates an association between a VM and Automanage configuration profile.

INSERT INTO azure.automanage.configuration_profile_assignments (
properties,
configuration_profile_assignment_name,
resource_group_name,
vm_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ configuration_profile_assignment_name }}',
'{{ resource_group_name }}',
'{{ vm_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
managedBy,
properties,
systemData,
type
;

REPLACE examples

Creates an association between a VM and Automanage configuration profile.

REPLACE azure.automanage.configuration_profile_assignments
SET
properties = '{{ properties }}'
WHERE
configuration_profile_assignment_name = '{{ configuration_profile_assignment_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND vm_name = '{{ vm_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
managedBy,
properties,
systemData,
type;

DELETE examples

Delete a configuration profile assignment.

DELETE FROM azure.automanage.configuration_profile_assignments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND configuration_profile_assignment_name = '{{ configuration_profile_assignment_name }}' --required
AND vm_name = '{{ vm_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;