configuration_profile_assignments
Creates, updates, deletes, gets or lists a configuration_profile_assignments resource.
Overview
| Name | configuration_profile_assignments |
| Type | Resource |
| Id | azure.automanage.configuration_profile_assignments |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_virtual_machines
- list_by_machine_name
- list_by_cluster_name
- list
- list_by_subscription
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
configurationProfile | string | The Automanage configurationProfile ARM Resource URI. |
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
status | string | The status of onboarding, which only appears in the response. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetId | string | The target VM resource URI. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
configurationProfile | string | The Automanage configurationProfile ARM Resource URI. |
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
status | string | The status of onboarding, which only appears in the response. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetId | string | The target VM resource URI. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
configurationProfile | string | The Automanage configurationProfile ARM Resource URI. |
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
status | string | The status of onboarding, which only appears in the response. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetId | string | The target VM resource URI. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
configurationProfile | string | The Automanage configurationProfile ARM Resource URI. |
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
status | string | The status of onboarding, which only appears in the response. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetId | string | The target VM resource URI. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
configurationProfile | string | The Automanage configurationProfile ARM Resource URI. |
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
status | string | The status of onboarding, which only appears in the response. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetId | string | The target VM resource URI. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
configurationProfile | string | The Automanage configurationProfile ARM Resource URI. |
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
status | string | The status of onboarding, which only appears in the response. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetId | string | The target VM resource URI. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, configuration_profile_assignment_name, vm_name, subscription_id | Get information about a configuration profile assignment. | |
list_by_virtual_machines | select | resource_group_name, vm_name, subscription_id | Get list of configuration profile assignments. | |
list_by_machine_name | select | resource_group_name, machine_name, subscription_id | Get list of configuration profile assignments. | |
list_by_cluster_name | select | resource_group_name, cluster_name, subscription_id | Get list of configuration profile assignments. | |
list | select | resource_group_name, subscription_id | Get list of configuration profile assignments. | |
list_by_subscription | select | subscription_id | Get list of configuration profile assignments under a given subscription. | |
create_or_update | insert | configuration_profile_assignment_name, resource_group_name, vm_name, subscription_id | Creates an association between a VM and Automanage configuration profile. | |
create_or_update | replace | configuration_profile_assignment_name, resource_group_name, vm_name, subscription_id | Creates an association between a VM and Automanage configuration profile. | |
delete | delete | resource_group_name, configuration_profile_assignment_name, vm_name, subscription_id | Delete 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.
| Name | Datatype | Description |
|---|---|---|
cluster_name | string | The name of the Arc machine. Required. |
configuration_profile_assignment_name | string | Name of the configuration profile assignment. Required. |
machine_name | string | The name of the Arc machine. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
vm_name | string | The name of the virtual machine. Required. |
SELECT examples
- get
- list_by_virtual_machines
- list_by_machine_name
- list_by_cluster_name
- list
- list_by_subscription
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
;
Get list of configuration profile assignments.
SELECT
id,
name,
configurationProfile,
managedBy,
status,
systemData,
targetId,
type
FROM azure.automanage.configuration_profile_assignments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vm_name = '{{ vm_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get list of configuration profile assignments.
SELECT
id,
name,
configurationProfile,
managedBy,
status,
systemData,
targetId,
type
FROM azure.automanage.configuration_profile_assignments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND machine_name = '{{ machine_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get list of configuration profile assignments.
SELECT
id,
name,
configurationProfile,
managedBy,
status,
systemData,
targetId,
type
FROM azure.automanage.configuration_profile_assignments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get list of configuration profile assignments.
SELECT
id,
name,
configurationProfile,
managedBy,
status,
systemData,
targetId,
type
FROM azure.automanage.configuration_profile_assignments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get list of configuration profile assignments under a given subscription.
SELECT
id,
name,
configurationProfile,
managedBy,
status,
systemData,
targetId,
type
FROM azure.automanage.configuration_profile_assignments
WHERE subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: configuration_profile_assignments
props:
- name: configuration_profile_assignment_name
value: "{{ configuration_profile_assignment_name }}"
description: Required parameter for the configuration_profile_assignments resource.
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the configuration_profile_assignments resource.
- name: vm_name
value: "{{ vm_name }}"
description: Required parameter for the configuration_profile_assignments resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the configuration_profile_assignments resource.
- name: properties
description: |
Properties of the configuration profile assignment.
value:
configurationProfile: "{{ configurationProfile }}"
targetId: "{{ targetId }}"
status: "{{ status }}"
REPLACE examples
- create_or_update
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
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
;