Gallery › Guest Configuration › Azure built-in policies
[Deprecated]: Audit Windows VMs on which the DSC configuration is not compliant
Converted Initiative Version 1.0.0-deprecated Deprecated
This initiative deploys the policy requirements and audits Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONWindowsDscConfiguration.json · 30 lines
{
"properties": {
"displayName": "[Deprecated]: Audit Windows VMs on which the DSC configuration is not compliant",
"policyType": "BuiltIn",
"description": "This initiative deploys the policy requirements and audits Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
"metadata": {
"version": "1.0.0-deprecated",
"category": "Guest Configuration",
"deprecated": true
},
"version": "1.0.0",
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d38b4c26-9d2e-47d7-aefe-18d859a8706a",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Deploy_WindowsDscConfiguration"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7227ebe5-9ff7-47ab-b823-171cd02fb90f",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Audit_WindowsDscConfiguration"
}
],
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/c58599d5-0d51-454f-aaf1-da18a5e76edd",
"name": "c58599d5-0d51-454f-aaf1-da18a5e76edd"
}Bylawc58599d5-0d51-454f-aaf1-da18a5e76edd.bylaw.ps1 · 24 lines
# Converted from WindowsDscConfiguration.json by ConvertTo-Bylaw.
Initiative 'c58599d5-0d51-454f-aaf1-da18a5e76edd' {
Properties @{
DisplayName = '[Deprecated]: Audit Windows VMs on which the DSC configuration is not compliant'
Description = 'This initiative deploys the policy requirements and audits Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol'
Version = '1.0.0-deprecated'
Category = 'Guest Configuration'
Deprecated = $true
PolicyVersion = '1.0.0'
}
PolicyDefinition @{
Id = 'd38b4c26-9d2e-47d7-aefe-18d859a8706a'
ReferenceId = 'Deploy_WindowsDscConfiguration'
Version = '1.*.*'
}
PolicyDefinition @{
Id = '7227ebe5-9ff7-47ab-b823-171cd02fb90f'
ReferenceId = 'Audit_WindowsDscConfiguration'
Version = '1.*.*'
}
}Members (2)
- [Deprecated]: Deploy prerequisites to audit Windows VMs on which the DSC configuration is not compliant
- [Deprecated]: Show audit results from Windows VMs on which the DSC configuration is not compliant
Source: built-in-policies/policySetDefinitions/Guest Configuration/WindowsDscConfiguration.json in Azure/azure-policy, under the MIT licence.
Bylaw