Azure Maintenance Assignment Virtual Machine Scale Set
This page shows how to write Terraform and Azure Resource Manager for Maintenance Assignment Virtual Machine Scale Set and write them securely.
azurerm_maintenance_assignment_virtual_machine_scale_set (Terraform)
The Assignment Virtual Machine Scale Set in Maintenance can be configured in Terraform with the resource name azurerm_maintenance_assignment_virtual_machine_scale_set
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.maintenance_configuration_id
- (Required) Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.virtual_machine_scale_set_id
- (Required) Specifies the Virtual Machine Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
The following attributes are exported:
id
- The ID of the Maintenance Assignment.
Explanation in Terraform Registry
Manages a maintenance assignment to a virtual machine scale set.
Microsoft.Maintenance/configurationAssignments (Azure Resource Manager)
The configurationAssignments in Microsoft.Maintenance can be configured in Azure Resource Manager with the resource name Microsoft.Maintenance/configurationAssignments
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
"type": "Microsoft.Maintenance/configurationAssignments"
}
}
}
}
"type": "Microsoft.Maintenance/configurationAssignments"
}
}
}
}
"type": "Microsoft.Maintenance/configurationAssignments"
}
}
}
}
"type": "Microsoft.Maintenance/configurationAssignments"
}
}
}
}
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1"
}
}
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1"
}
}
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdtestvm1"
}
}
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdtestvm1"
}
}
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1"
}
}
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1"
}
}