Gallery › Guest Configuration › Azure built-in policies
[Deprecated]: Audit Windows web servers that are not using secure communication protocols
Converted Initiative Version 1.1.0-deprecated Deprecated
This initiative deploys the policy requirements and audits Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). 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 JSONTLS.json · 49 lines
{
"properties": {
"displayName": "[Deprecated]: Audit Windows web servers that are not using secure communication protocols",
"policyType": "BuiltIn",
"description": "This initiative deploys the policy requirements and audits Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
"metadata": {
"version": "1.1.0-deprecated",
"category": "Guest Configuration",
"deprecated": true
},
"version": "1.1.0",
"parameters": {
"MinimumTLSVersion": {
"type": "string",
"metadata": {
"displayName": "Minimum TLS version",
"description": "The minimum TLS protocol version that should be enabled. Windows web servers with lower TLS versions will be marked as non-compliant."
},
"allowedValues": [
"1.1",
"1.2"
],
"defaultValue": "1.2"
}
},
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b2fc8f91-866d-4434-9089-5ebfe38d6fd8",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Deploy_WindowsTLS",
"parameters": {
"MinimumTLSVersion": {
"value": "[parameters('MinimumTLSVersion')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/60ffe3e2-4604-4460-8f22-0f1da058266c",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Audit_WindowsTLS"
}
],
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/8bc55e6b-e9d5-4266-8dac-f688d151ec9c",
"name": "8bc55e6b-e9d5-4266-8dac-f688d151ec9c"
}Bylaw8bc55e6b-e9d5-4266-8dac-f688d151ec9c.bylaw.ps1 · 32 lines
# Converted from TLS.json by ConvertTo-Bylaw.
Initiative '8bc55e6b-e9d5-4266-8dac-f688d151ec9c' {
Properties @{
DisplayName = '[Deprecated]: Audit Windows web servers that are not using secure communication protocols'
Description = 'This initiative deploys the policy requirements and audits Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol'
Version = '1.1.0-deprecated'
Category = 'Guest Configuration'
Deprecated = $true
PolicyVersion = '1.1.0'
}
Parameter MinimumTLSVersion @{
Type = 'string'
AllowedValues = @('1.1', '1.2')
Default = '1.2'
DisplayName = 'Minimum TLS version'
Description = 'The minimum TLS protocol version that should be enabled. Windows web servers with lower TLS versions will be marked as non-compliant.'
JsonName = 'MinimumTLSVersion'
}
PolicyDefinition @{
Id = 'b2fc8f91-866d-4434-9089-5ebfe38d6fd8'
ReferenceId = 'Deploy_WindowsTLS'
Version = '1.*.*'
Parameters = @{
MinimumTLSVersion = (Param MinimumTLSVersion)
}
}
PolicyDefinition -Id '60ffe3e2-4604-4460-8f22-0f1da058266c' -ReferenceId 'Audit_WindowsTLS' -Version '1.*.*'
}Members (2)
- [Deprecated]: Deploy prerequisites to audit Windows web servers that are not using secure communication protocols
- [Deprecated]: Show audit results from Windows web servers that are not using secure communication protocols
Source: built-in-policies/policySetDefinitions/Guest Configuration/TLS.json in Azure/azure-policy, under the MIT licence.
Bylaw