Skip to main content

guest_configuration_assignments_vmss

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

Overview

Nameguest_configuration_assignments_vmss
TypeResource
Idazure.guest_config.guest_configuration_assignments_vmss

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringARM resource id of the guest configuration assignment.
namestringName of the guest configuration assignment.
assignmentHashstringCombined hash of the configuration package and parameters.
complianceStatusstringA value indicating compliance status of the machine for the assigned guest configuration. Known values are: "Compliant", "NonCompliant", and "Pending".
contextstringThe source which initiated the guest configuration assignment. Ex: Azure Policy.
guestConfigurationobjectThe guest configuration to assign.
lastComplianceStatusCheckedstring (date-time)Date and time when last compliance status was checked.
latestAssignmentReportobjectLast reported guest configuration assignment report.
latestReportIdstringId of the latest report for the guest configuration assignment.
locationstringRegion where the VM is located.
parameterHashstringparameter hash for the guest configuration assignment.
provisioningStatestringThe provisioning state, which only appears in the response. Known values are: "Succeeded", "Failed", "Canceled", and "Created".
resourceTypestringType of the resource - VMSS / VM.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetResourceIdstringVM resource Id.
typestringThe type of the resource.
vmssVMListarrayThe list of VM Compliance data for VMSS.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vmss_name, name, subscription_idGet information about a guest configuration assignment for VMSS.
listselectresource_group_name, vmss_name, subscription_idList all guest configuration assignments for VMSS.
deletedeleteresource_group_name, vmss_name, name, subscription_idDelete a guest configuration assignment for VMSS.

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
namestringThe guest configuration assignment name. Required.
resource_group_namestringThe resource group name. Required.
subscription_idstring
vmss_namestringThe name of the virtual machine scale set. Required.

SELECT examples

Get information about a guest configuration assignment for VMSS.

SELECT
id,
name,
assignmentHash,
complianceStatus,
context,
guestConfiguration,
lastComplianceStatusChecked,
latestAssignmentReport,
latestReportId,
location,
parameterHash,
provisioningState,
resourceType,
systemData,
targetResourceId,
type,
vmssVMList
FROM azure.guest_config.guest_configuration_assignments_vmss
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vmss_name = '{{ vmss_name }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Delete a guest configuration assignment for VMSS.

DELETE FROM azure.guest_config.guest_configuration_assignments_vmss
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND vmss_name = '{{ vmss_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;