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
- vw_configuration_profile_assignments
- configuration_profile_assignments
Name | Datatype | Description |
---|---|---|
configurationProfileAssignmentName | text | field from the properties object |
configuration_profile | text | field from the properties object |
managed_by | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
target_id | text | field from the properties object |
vmName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
properties | object | Automanage configuration profile assignment properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationProfileAssignmentName, resourceGroupName, subscriptionId, vmName | Get information about a configuration profile assignment |
list | SELECT | resourceGroupName, subscriptionId | Get list of configuration profile assignments |
list_by_cluster_name | SELECT | clusterName, resourceGroupName, subscriptionId | Get list of configuration profile assignments |
list_by_machine_name | SELECT | machineName, resourceGroupName, subscriptionId | Get list of configuration profile assignments |
list_by_subscription | SELECT | subscriptionId | Get list of configuration profile assignments under a given subscription |
list_by_virtual_machines | SELECT | resourceGroupName, subscriptionId, vmName | Get list of configuration profile assignments |
create_or_update | INSERT | configurationProfileAssignmentName, resourceGroupName, subscriptionId, vmName | Creates an association between a VM and Automanage configuration profile |
delete | DELETE | configurationProfileAssignmentName, resourceGroupName, subscriptionId, vmName | Delete a configuration profile assignment |
SELECT
examples
Get list of configuration profile assignments under a given subscription
- vw_configuration_profile_assignments
- configuration_profile_assignments
SELECT
configurationProfileAssignmentName,
configuration_profile,
managed_by,
resourceGroupName,
status,
subscriptionId,
system_data,
target_id,
vmName
FROM azure.automanage.vw_configuration_profile_assignments
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
managedBy,
properties,
systemData
FROM azure.automanage.configuration_profile_assignments
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new configuration_profile_assignments
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.automanage.configuration_profile_assignments (
configurationProfileAssignmentName,
resourceGroupName,
subscriptionId,
vmName,
properties
)
SELECT
'{{ configurationProfileAssignmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: configurationProfile
value: string
- name: targetId
value: string
- name: status
value: string
- name: managedBy
value: []
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
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 }}';