The template creates a virtual machine running Windows Server in a new virtual network, with a public IP address. Once the machine has deployed, the guest configuration extension is installed and the Azure secure baseline for Windows Server is applied. If the configuration of the machines drifts, you can re-apply the settings by deploying the template again.
ARM template resource definition
The guestConfigurationAssignments resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.GuestConfiguration/guestConfigurationAssignments resource, add the following JSON to your template.
The template creates a virtual machine running Windows Server in a new virtual network, with a public IP address. Once the machine has deployed, the guest configuration extension is installed and the Azure secure baseline for Windows Server is applied. If the configuration of the machines drifts, you can re-apply the settings by deploying the template again.
Terraform (AzAPI provider) resource definition
The guestConfigurationAssignments resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.GuestConfiguration/guestConfigurationAssignments resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.GuestConfiguration/guestConfigurationAssignments@2018-01-20-preview"
name = "string"
parent_id = "string"
location = "string"
body = jsonencode({
properties = {
guestConfiguration = {
configurationParameter = {
value = [
{
}
]
}
kind = "string"
name = "string"
type = "string"
}
}
})
}