Guest Configuration Assignment Reports - List

List all reports for the guest configuration assignment, latest report first.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName}/reports?api-version=2022-01-25

URI Parameters

Name In Required Type Description
guestConfigurationAssignmentName
path True

string

The guest configuration assignment name.

resourceGroupName
path True

string

The resource group name.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

vmName
path True

string

The name of the virtual machine.

Regex pattern: ^[a-zA-Z0-9][-a-zA-Z0-9_.]*[a-zA-Z0-9]$

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

GuestConfigurationAssignmentReportList

OK. This response is due one of these two reasons: 1. Reports were returned successfully 2. Guest configuration assignment was found, but VM is not registered yet, hence no reports returned.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List all guest configuration assignments for a virtual machine

Sample Request

GET https://management.azure.com/subscriptions/mySubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports?api-version=2022-01-25

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
      "name": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
      "properties": {
        "complianceStatus": "Compliant",
        "assignment": {
          "name": "AuditSecureProtocol",
          "configuration": {
            "name": "AuditSecureProtocol"
          }
        },
        "reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
        "vm": {
          "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm",
          "uuid": "vmuuid"
        },
        "details": null,
        "startTime": "2018-08-29T22:13:53Z",
        "endTime": "2018-08-29T22:14:13Z"
      }
    },
    {
      "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/41ee2caf-48f9-4999-a793-82ec7c6beb2c",
      "name": "41ee2caf-48f9-4999-a793-82ec7c6beb2c",
      "properties": {
        "complianceStatus": "Compliant",
        "assignment": {
          "name": "AuditSecureProtocol",
          "configuration": {
            "name": "AuditSecureProtocol"
          }
        },
        "reportId": "41ee2caf-48f9-4999-a793-82ec7c6beb2c",
        "vm": {
          "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm",
          "uuid": "vmuuid"
        },
        "details": null,
        "startTime": "2018-08-29T20:13:53Z",
        "endTime": "2018-08-29T20:14:13Z"
      }
    }
  ]
}

Definitions

Name Description
AssignmentInfo

Information about the guest configuration assignment.

AssignmentReportDetails

Details of the guest configuration assignment report.

AssignmentReportResource

The guest configuration assignment resource.

AssignmentReportResourceComplianceReason

Reason and code for the compliance of the guest configuration assignment resource.

complianceStatus

A value indicating compliance status of the machine for the assigned guest configuration.

ConfigurationInfo

Information about the configuration.

Error
ErrorResponse

Error response of an operation failure

GuestConfigurationAssignmentReport

Report for the guest configuration assignment. Report contains information such as compliance status, reason, and more.

GuestConfigurationAssignmentReportList

List of guest configuration assignment reports.

GuestConfigurationAssignmentReportProperties

Report for the guest configuration assignment. Report contains information such as compliance status, reason, and more.

type

Type of report, Consistency or Initial

VMInfo

Information about the VM.

AssignmentInfo

Information about the guest configuration assignment.

Name Type Description
configuration

ConfigurationInfo

Information about the configuration.

name

string

Name of the guest configuration assignment.

AssignmentReportDetails

Details of the guest configuration assignment report.

Name Type Description
complianceStatus

complianceStatus

A value indicating compliance status of the machine for the assigned guest configuration.

endTime

string

End date and time of the guest configuration assignment compliance status check.

jobId

string

GUID of the report.

operationType

type

Type of report, Consistency or Initial

resources

AssignmentReportResource[]

The list of resources for which guest configuration assignment compliance is checked.

startTime

string

Start date and time of the guest configuration assignment compliance status check.

AssignmentReportResource

The guest configuration assignment resource.

Name Type Description
complianceStatus

complianceStatus

A value indicating compliance status of the machine for the assigned guest configuration.

properties

object

Properties of a guest configuration assignment resource.

reasons

AssignmentReportResourceComplianceReason[]

Compliance reason and reason code for a resource.

resourceId

string

Name of the guest configuration assignment resource setting.

AssignmentReportResourceComplianceReason

Reason and code for the compliance of the guest configuration assignment resource.

Name Type Description
code

string

Code for the compliance of the guest configuration assignment resource.

phrase

string

Reason for the compliance of the guest configuration assignment resource.

complianceStatus

A value indicating compliance status of the machine for the assigned guest configuration.

Name Type Description
Compliant

string

NonCompliant

string

Pending

string

ConfigurationInfo

Information about the configuration.

Name Type Description
name

string

Name of the configuration.

version

string

Version of the configuration.

Error

Name Type Description
code

string

Error code.

message

string

Detail error message indicating why the operation failed.

ErrorResponse

Error response of an operation failure

Name Type Description
error

Error

GuestConfigurationAssignmentReport

Report for the guest configuration assignment. Report contains information such as compliance status, reason, and more.

Name Type Description
id

string

ARM resource id of the report for the guest configuration assignment.

name

string

GUID that identifies the guest configuration assignment report under a subscription, resource group.

properties

GuestConfigurationAssignmentReportProperties

Properties of the guest configuration report.

GuestConfigurationAssignmentReportList

List of guest configuration assignment reports.

Name Type Description
value

GuestConfigurationAssignmentReport[]

List of reports for the guest configuration. Report contains information such as compliance status, reason and more.

GuestConfigurationAssignmentReportProperties

Report for the guest configuration assignment. Report contains information such as compliance status, reason, and more.

Name Type Description
assignment

AssignmentInfo

Configuration details of the guest configuration assignment.

complianceStatus

complianceStatus

A value indicating compliance status of the machine for the assigned guest configuration.

details

AssignmentReportDetails

Details of the assignment report.

endTime

string

End date and time of the guest configuration assignment compliance status check.

reportId

string

GUID that identifies the guest configuration assignment report under a subscription, resource group.

startTime

string

Start date and time of the guest configuration assignment compliance status check.

vm

VMInfo

Information about the VM.

vmssResourceId

string

Azure resource Id of the VMSS.

type

Type of report, Consistency or Initial

Name Type Description
Consistency

string

Initial

string

VMInfo

Information about the VM.

Name Type Description
id

string

Azure resource Id of the VM.

uuid

string

UUID(Universally Unique Identifier) of the VM.