AZ-400 ยท Infrastructure as code
Desired state with Azure Machine Configuration
Desired State Configuration concepts, Azure Automation State Configuration (retirement and replacement), Azure Machine Configuration with Azure Policy, drift detection and remediation.
Key points
- Desired State Configuration declares OS and app settings; the platform detects and optionally corrects drift.
- Azure Automation State Configuration (DSC pull server) retires on 30 September 2027.
- Replacement: Azure Machine Configuration, an Azure Policy feature for Azure VMs and Arc-enabled servers.
- Modes: Audit (only reports), Apply and Monitor (applies, then watches), Apply and Autocorrect (also fixes drift).
Source: https://learn.microsoft.com/en-us/azure/governance/machine-configuration/overview
Practice questions
Which service is the recommended replacement for Azure Automation State Configuration?
- Azure Machine Configuration
- Azure Deployment Environments
- Azure Load Testing
- Template specs
Show answer
Answer: A. Azure Machine Configuration
Azure Machine Configuration combines the DSC extension, Automation State Configuration and requested features, with hybrid support. The other services do not manage in-guest settings.
Which are enforcement modes offered by Azure Machine Configuration?
- Audit
- Apply and Monitor
- Snapshot and Revert
- Apply and Autocorrect
- Quarantine
Show answer
Answer: A. Audit, B. Apply and Monitor, D. Apply and Autocorrect
The three modes are Audit, Apply and Monitor, and Apply and Autocorrect. Snapshot and Quarantine are not modes of this feature.
True or false: Azure Machine Configuration can only manage virtual machines that run inside Azure.
Show answer
Answer: False
False. It also covers Azure Arc-enabled servers, so on-premises and other-cloud machines can be assigned configurations.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
