How to create a machine configuration assignment using templates
The best way to assign machine configuration packages to multiple machines is using Azure Policy. You can also assign machine configuration packages to a single machine.
Built-in and custom configurations
To assign a machine configuration package to a single machine, modify the following examples. There are two scenarios for each tool.
- Apply a custom configuration to a machine using a link to a package that you published.
- Apply a built-in configuration to a machine, such as an Azure baseline.
See the following articles for examples of assigning configurations using different tools:
- How to assign a configuration using an Azure Resource Manager template
- How to assign a configuration using Bicep
- How to assign a configuration using Terraform
Next steps
- Develop a custom package for machine configuration.
- Use the GuestConfiguration module to create an Azure Policy definition for at-scale management of your environment.
- Assign your custom policy definition using Azure portal.