Gallery › Guest Configuration › Azure built-in policies
[Deprecated]: Audit Windows VMs that are not joined to the specified domain
Converted Initiative Version 1.0.0-deprecated Deprecated
This initiative deploys the policy requirements and audits Windows virtual machines that are not joined to the specified domain. 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 JSONWindowsDomainMembership.json · 44 lines
{
"properties": {
"displayName": "[Deprecated]: Audit Windows VMs that are not joined to the specified domain",
"policyType": "BuiltIn",
"description": "This initiative deploys the policy requirements and audits Windows virtual machines that are not joined to the specified domain. 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",
"parameters": {
"DomainName": {
"type": "string",
"metadata": {
"displayName": "Domain Name (FQDN)",
"description": "The fully qualified domain name (FQDN) that the Windows VMs should be joined to"
}
}
},
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/315c850a-272d-4502-8935-b79010405970",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Deploy_WindowsDomainMembership",
"parameters": {
"DomainName": {
"value": "[parameters('DomainName')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a29ee95c-0395-4515-9851-cc04ffe82a91",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Audit_WindowsDomainMembership"
}
],
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/6b3c1e80-8ae5-405b-b021-c23d13b3959f",
"name": "6b3c1e80-8ae5-405b-b021-c23d13b3959f"
}Bylaw6b3c1e80-8ae5-405b-b021-c23d13b3959f.bylaw.ps1 · 34 lines
# Converted from WindowsDomainMembership.json by ConvertTo-Bylaw.
Initiative '6b3c1e80-8ae5-405b-b021-c23d13b3959f' {
Properties @{
DisplayName = '[Deprecated]: Audit Windows VMs that are not joined to the specified domain'
Description = 'This initiative deploys the policy requirements and audits Windows virtual machines that are not joined to the specified domain. 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'
}
Parameter DomainName @{
Type = 'string'
DisplayName = 'Domain Name (FQDN)'
Description = 'The fully qualified domain name (FQDN) that the Windows VMs should be joined to'
JsonName = 'DomainName'
}
PolicyDefinition @{
Id = '315c850a-272d-4502-8935-b79010405970'
ReferenceId = 'Deploy_WindowsDomainMembership'
Version = '1.*.*'
Parameters = @{
DomainName = (Param DomainName)
}
}
PolicyDefinition @{
Id = 'a29ee95c-0395-4515-9851-cc04ffe82a91'
ReferenceId = 'Audit_WindowsDomainMembership'
Version = '1.*.*'
}
}Members (2)
- [Deprecated]: Deploy prerequisites to audit Windows VMs that are not joined to the specified domain
- [Deprecated]: Show audit results from Windows VMs that are not joined to the specified domain
Source: built-in-policies/policySetDefinitions/Guest Configuration/WindowsDomainMembership.json in Azure/azure-policy, under the MIT licence.
Bylaw