Gallery › Sovereignty › Azure built-in policies
[Preview]: Enforce Encryption-in-Transit across Azure Services - TLS Version
Converted Initiative Version 1.2.0-preview Preview
Help restrict and audit Azure Services to use latest TLS versions
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONEnforceEncryptionInTransitTLS.json · 456 lines
{
"properties": {
"displayName": "[Preview]: Enforce Encryption-in-Transit across Azure Services - TLS Version",
"policyType": "BuiltIn",
"description": "Help restrict and audit Azure Services to use latest TLS versions",
"metadata": {
"version": "1.2.0-preview",
"category": "Sovereignty",
"preview": true,
"SovereigntyLevel": "Level 2 - Encryption at-rest/in-transit"
},
"version": "1.2.0-preview",
"parameters": {
"effect_deny": {
"type": "String",
"metadata": {
"displayName": "Effect-Deny",
"description": "This effect applies to policies that support Deny or Audit effect."
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny"
},
"effect_modify": {
"type": "String",
"metadata": {
"displayName": "Effect-Modify",
"description": "This effect applies to policies that support Modify effect."
},
"allowedValues": [
"Modify",
"Disabled"
],
"defaultValue": "Modify"
},
"effect_deployIfNotExists": {
"type": "String",
"defaultValue": "DeployIfNotExists",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect-DeployIfNotExists",
"description": "This effect applies to policies that support DeployIfNotExists effect."
}
},
"effect_auditIfNotExists": {
"type": "String",
"defaultValue": "AuditIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect-AuditIfNotExists",
"description": "This effect applies to policies that support AuditIfNotExists effect."
}
},
"effect_audit": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Disabled"
],
"metadata": {
"displayName": "Effect-Audit",
"description": "This effect applies to policies that support Audit effect."
}
},
"includeArcMachines": {
"type": "String",
"metadata": {
"displayName": "Include Arc connected servers",
"description": "By selecting this option, you agree to be charged monthly per Arc connected machine.",
"portalReview": "true"
},
"allowedValues": [
"true",
"false"
],
"defaultValue": "false"
},
"fe83a0eb-a853-422d-aac2-1bffd182c5d0_minimumTlsVersion": {
"type": "String",
"metadata": {
"displayName": "Minimum TLS Version",
"description": "Minimum version of TLS required to access data in the storage account"
},
"allowedValues": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"defaultValue": "TLS1_2"
},
"828ba269-bf7f-4082-83dd-633417bc391d_minimumServerTLSVersion": {
"type": "String",
"metadata": {
"displayName": "Minimum Machine TLS version",
"description": "The minimum machine TLS protocol version that should be enabled. Windows machines with lower TLS versions will be set to the desired version."
},
"allowedValues": [
"1.1",
"1.2"
],
"defaultValue": "1.2"
},
"828ba269-bf7f-4082-83dd-633417bc391d_minimumClientTLSVersion": {
"type": "String",
"metadata": {
"displayName": "Minimum Client TLS version",
"description": "The minimum client TLS protocol version that should be enabled. Windows machines with lower client TLS versions will be set to desired version."
},
"allowedValues": [
"1.1",
"1.2"
],
"defaultValue": "1.2"
},
"5752e6d6-1206-46d8-8ab1-ecc2f71a8112_minimumTLSVersion": {
"type": "String",
"metadata": {
"displayName": "Minimum TLS version",
"description": "The minimum TLS protocol version that should be enabled. Windows machines with lower TLS versions will be marked as non-compliant."
},
"allowedValues": [
"1.1",
"1.2"
],
"defaultValue": "1.2"
}
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "minTLSOnSynapseDedicatedSQLModify",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8b5c654c-fb07-471b-aa8f-15fea733f140",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_modify')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnSynapseWorkspaceSQL",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cb3738a6-82a2-4a18-b87b-15217b9deff4",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnWebAppSlotDINE",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/014664e7-e348-41a3-aeb9-566e4ff6a9df",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deployIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnWebAppSlot",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4ee5b817-627a-435a-8932-116193268172",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_auditIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnWebAppDINE",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ae44c1d1-0df2-4ca9-98fa-a3d3ae5b409d",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deployIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnWebApp",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b",
"definitionVersion": "2.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_auditIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnFunctionAppSlotDINE",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fa3a6357-c6d6-4120-8429-855577ec0063",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deployIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnFunctionAppSlot",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/deb528de-8f89-4101-881c-595899253102",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_auditIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnFunctionAppDINE",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1f01f1c7-539c-49b5-9ef4-d4ffa37d22e0",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deployIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "latestTLSOnFunctionApp",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f9d614c5-c173-4d56-95a7-b4437057d193",
"definitionVersion": "2.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_auditIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "disableTLS10And11OnASE",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d6545c6b-dd9d-4265-91e6-0b451e2f1c50",
"definitionVersion": "2.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnStorageAccount",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fe83a0eb-a853-422d-aac2-1bffd182c5d0",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
},
"minimumTlsVersion": {
"value": "[parameters('fe83a0eb-a853-422d-aac2-1bffd182c5d0_minimumTlsVersion')]"
}
}
},
{
"policyDefinitionReferenceId": "tlsOnAADDomainServices",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/3aa87b5a-7813-4b57-8a43-42dd9df5aaa7",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnSQLServer",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/32e6bbec-16b6-44c2-be37-c5b672d103cf",
"definitionVersion": "2.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnPostgreSQLFlexibleServer",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a43d5475-c569-45ce-a268-28fa79f4e87a",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_auditIfNotExists')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnAzureFrontDoor",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/679da822-78a7-4eff-8fff-a899454a9970",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "tlsOnWindowsMachines",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/828ba269-bf7f-4082-83dd-633417bc391d",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_deployIfNotExists')]"
},
"MinimumClientTLSVersion": {
"value": "[parameters('828ba269-bf7f-4082-83dd-633417bc391d_minimumClientTLSVersion')]"
},
"MinimumServerTLSVersion": {
"value": "[parameters('828ba269-bf7f-4082-83dd-633417bc391d_minimumServerTLSVersion')]"
},
"IncludeArcMachines": {
"value": "[parameters('includeArcMachines')]"
}
}
},
{
"policyDefinitionReferenceId": "secureWebProtocolAINEGuestConfig",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5752e6d6-1206-46d8-8ab1-ecc2f71a8112",
"definitionVersion": "4.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_auditIfNotExists')]"
},
"IncludeArcMachines": {
"value": "[parameters('includeArcMachines')]"
},
"MinimumTLSVersion": {
"value": "[parameters('5752e6d6-1206-46d8-8ab1-ecc2f71a8112_minimumTLSVersion')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnSQLManagedInstance",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8793640-60f7-487c-b5c3-1d37215905c4",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_audit')]"
}
}
},
{
"policyDefinitionReferenceId": "tlsOnArcSQLManagedInstance",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/bb3c7464-033e-41ee-81dc-480fde675b20",
"definitionVersion": "1.*.*",
"parameters": {
"effect": {
"value": "[parameters('effect_audit')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnRedisCache",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f38646be-b908-491a-bc9b-fd507154f709",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnEventGridDomain",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c089a722-0fbf-4a16-ab4f-1f5065291844",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnEventGridNamespace",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/786761a8-5b7f-4b82-bfb1-df2d008c16fc",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnEventGridTopic",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fd7fab04-d4f7-4991-aacd-b6bbd2557ff2",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnIoTHub",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/74d00793-ec3a-4504-94e3-0ec66963833b",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnAPIManagementGatewayHostnameConfig",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c8656c68-eb4e-4f72-a90a-54b6bfbd3c33",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnServiceBusNamespace",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/403594a1-5989-4edd-8ea3-cac19a8cc43a",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnEventHubNamespace",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0ecbe514-db62-4284-992e-6dc3cde83d2b",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
},
{
"policyDefinitionReferenceId": "minTLSOnApplicationGateway",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6313cbe8-6fb7-451b-a9e3-3f23b59843ca",
"definitionVersion": "1.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('effect_deny')]"
}
}
}
],
"versions": [
"1.2.0-PREVIEW",
"1.1.0-PREVIEW",
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/f1fe6a81-eee9-47b8-9f7f-80685141209e",
"name": "f1fe6a81-eee9-47b8-9f7f-80685141209e"
}Bylawf1fe6a81-eee9-47b8-9f7f-80685141209e.bylaw.ps1 · 346 lines
# Converted from EnforceEncryptionInTransitTLS.json by ConvertTo-Bylaw.
Initiative 'f1fe6a81-eee9-47b8-9f7f-80685141209e' {
Properties @{
DisplayName = '[Preview]: Enforce Encryption-in-Transit across Azure Services - TLS Version'
Description = 'Help restrict and audit Azure Services to use latest TLS versions'
Version = '1.2.0-preview'
Category = 'Sovereignty'
Preview = $true
PolicyVersion = '1.2.0-preview'
Metadata = [ordered]@{ SovereigntyLevel = 'Level 2 - Encryption at-rest/in-transit' }
}
Parameter Effect_deny @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Effect-Deny'
Description = 'This effect applies to policies that support Deny or Audit effect.'
}
Parameter Effect_modify @{
AllowedValues = @('Modify', 'Disabled')
Default = 'Modify'
DisplayName = 'Effect-Modify'
Description = 'This effect applies to policies that support Modify effect.'
}
Parameter Effect_deployIfNotExists @{
AllowedValues = @('DeployIfNotExists', 'Disabled')
Default = 'DeployIfNotExists'
DisplayName = 'Effect-DeployIfNotExists'
Description = 'This effect applies to policies that support DeployIfNotExists effect.'
}
Parameter Effect_auditIfNotExists @{
AllowedValues = @('AuditIfNotExists', 'Disabled')
Default = 'AuditIfNotExists'
DisplayName = 'Effect-AuditIfNotExists'
Description = 'This effect applies to policies that support AuditIfNotExists effect.'
}
Parameter Effect_audit @{
AllowedValues = @('Audit', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect-Audit'
Description = 'This effect applies to policies that support Audit effect.'
}
Parameter IncludeArcMachines @{
AllowedValues = @('true', 'false')
Default = 'false'
DisplayName = 'Include Arc connected servers'
Description = 'By selecting this option, you agree to be charged monthly per Arc connected machine.'
Metadata = [ordered]@{ portalReview = 'true' }
}
Parameter Fe83a0eb_a853_422d_aac2_1bffd182c5d0_minimumTlsVersion @{
AllowedValues = @('TLS1_0', 'TLS1_1', 'TLS1_2')
Default = 'TLS1_2'
DisplayName = 'Minimum TLS Version'
Description = 'Minimum version of TLS required to access data in the storage account'
JsonName = 'fe83a0eb-a853-422d-aac2-1bffd182c5d0_minimumTlsVersion'
}
Parameter P828ba269_bf7f_4082_83dd_633417bc391d_minimumServerTLSVersion @{
AllowedValues = @('1.1', '1.2')
Default = '1.2'
DisplayName = 'Minimum Machine TLS version'
Description = 'The minimum machine TLS protocol version that should be enabled. Windows machines with lower TLS versions will be set to the desired version.'
JsonName = '828ba269-bf7f-4082-83dd-633417bc391d_minimumServerTLSVersion'
}
Parameter P828ba269_bf7f_4082_83dd_633417bc391d_minimumClientTLSVersion @{
AllowedValues = @('1.1', '1.2')
Default = '1.2'
DisplayName = 'Minimum Client TLS version'
Description = 'The minimum client TLS protocol version that should be enabled. Windows machines with lower client TLS versions will be set to desired version.'
JsonName = '828ba269-bf7f-4082-83dd-633417bc391d_minimumClientTLSVersion'
}
Parameter P5752e6d6_1206_46d8_8ab1_ecc2f71a8112_minimumTLSVersion @{
AllowedValues = @('1.1', '1.2')
Default = '1.2'
DisplayName = 'Minimum TLS version'
Description = 'The minimum TLS protocol version that should be enabled. Windows machines with lower TLS versions will be marked as non-compliant.'
JsonName = '5752e6d6-1206-46d8-8ab1-ecc2f71a8112_minimumTLSVersion'
}
PolicyDefinition @{
Id = '8b5c654c-fb07-471b-aa8f-15fea733f140'
ReferenceId = 'minTLSOnSynapseDedicatedSQLModify'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_modify)
}
}
PolicyDefinition @{
Id = 'cb3738a6-82a2-4a18-b87b-15217b9deff4'
ReferenceId = 'minTLSOnSynapseWorkspaceSQL'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '014664e7-e348-41a3-aeb9-566e4ff6a9df'
ReferenceId = 'latestTLSOnWebAppSlotDINE'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deployIfNotExists)
}
}
PolicyDefinition @{
Id = '4ee5b817-627a-435a-8932-116193268172'
ReferenceId = 'latestTLSOnWebAppSlot'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_auditIfNotExists)
}
}
PolicyDefinition @{
Id = 'ae44c1d1-0df2-4ca9-98fa-a3d3ae5b409d'
ReferenceId = 'latestTLSOnWebAppDINE'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deployIfNotExists)
}
}
PolicyDefinition @{
Id = 'f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b'
ReferenceId = 'latestTLSOnWebApp'
Version = '2.*.*'
Parameters = @{
effect = (Param Effect_auditIfNotExists)
}
}
PolicyDefinition @{
Id = 'fa3a6357-c6d6-4120-8429-855577ec0063'
ReferenceId = 'latestTLSOnFunctionAppSlotDINE'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deployIfNotExists)
}
}
PolicyDefinition @{
Id = 'deb528de-8f89-4101-881c-595899253102'
ReferenceId = 'latestTLSOnFunctionAppSlot'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_auditIfNotExists)
}
}
PolicyDefinition @{
Id = '1f01f1c7-539c-49b5-9ef4-d4ffa37d22e0'
ReferenceId = 'latestTLSOnFunctionAppDINE'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deployIfNotExists)
}
}
PolicyDefinition @{
Id = 'f9d614c5-c173-4d56-95a7-b4437057d193'
ReferenceId = 'latestTLSOnFunctionApp'
Version = '2.*.*'
Parameters = @{
effect = (Param Effect_auditIfNotExists)
}
}
PolicyDefinition @{
Id = 'd6545c6b-dd9d-4265-91e6-0b451e2f1c50'
ReferenceId = 'disableTLS10And11OnASE'
Version = '2.*.*'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = 'fe83a0eb-a853-422d-aac2-1bffd182c5d0'
ReferenceId = 'minTLSOnStorageAccount'
Version = '1.*.*'
Parameters = [ordered]@{
effect = (Param Effect_deny)
minimumTlsVersion = (Param Fe83a0eb_a853_422d_aac2_1bffd182c5d0_minimumTlsVersion)
}
}
PolicyDefinition @{
Id = '3aa87b5a-7813-4b57-8a43-42dd9df5aaa7'
ReferenceId = 'tlsOnAADDomainServices'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '32e6bbec-16b6-44c2-be37-c5b672d103cf'
ReferenceId = 'minTLSOnSQLServer'
Version = '2.*.*'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = 'a43d5475-c569-45ce-a268-28fa79f4e87a'
ReferenceId = 'minTLSOnPostgreSQLFlexibleServer'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_auditIfNotExists)
}
}
PolicyDefinition @{
Id = '679da822-78a7-4eff-8fff-a899454a9970'
ReferenceId = 'minTLSOnAzureFrontDoor'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '828ba269-bf7f-4082-83dd-633417bc391d'
ReferenceId = 'tlsOnWindowsMachines'
Version = '1.*.*'
Parameters = [ordered]@{
effect = (Param Effect_deployIfNotExists)
MinimumClientTLSVersion = (Param P828ba269_bf7f_4082_83dd_633417bc391d_minimumClientTLSVersion)
MinimumServerTLSVersion = (Param P828ba269_bf7f_4082_83dd_633417bc391d_minimumServerTLSVersion)
IncludeArcMachines = (Param IncludeArcMachines)
}
}
PolicyDefinition @{
Id = '5752e6d6-1206-46d8-8ab1-ecc2f71a8112'
ReferenceId = 'secureWebProtocolAINEGuestConfig'
Version = '4.*.*'
Parameters = [ordered]@{
effect = (Param Effect_auditIfNotExists)
IncludeArcMachines = (Param IncludeArcMachines)
MinimumTLSVersion = (Param P5752e6d6_1206_46d8_8ab1_ecc2f71a8112_minimumTLSVersion)
}
}
PolicyDefinition @{
Id = 'a8793640-60f7-487c-b5c3-1d37215905c4'
ReferenceId = 'minTLSOnSQLManagedInstance'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_audit)
}
}
PolicyDefinition @{
Id = 'bb3c7464-033e-41ee-81dc-480fde675b20'
ReferenceId = 'tlsOnArcSQLManagedInstance'
Version = '1.*.*'
Parameters = @{
effect = (Param Effect_audit)
}
}
PolicyDefinition @{
Id = 'f38646be-b908-491a-bc9b-fd507154f709'
ReferenceId = 'minTLSOnRedisCache'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = 'c089a722-0fbf-4a16-ab4f-1f5065291844'
ReferenceId = 'minTLSOnEventGridDomain'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '786761a8-5b7f-4b82-bfb1-df2d008c16fc'
ReferenceId = 'minTLSOnEventGridNamespace'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = 'fd7fab04-d4f7-4991-aacd-b6bbd2557ff2'
ReferenceId = 'minTLSOnEventGridTopic'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '74d00793-ec3a-4504-94e3-0ec66963833b'
ReferenceId = 'minTLSOnIoTHub'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = 'c8656c68-eb4e-4f72-a90a-54b6bfbd3c33'
ReferenceId = 'minTLSOnAPIManagementGatewayHostnameConfig'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '403594a1-5989-4edd-8ea3-cac19a8cc43a'
ReferenceId = 'minTLSOnServiceBusNamespace'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '0ecbe514-db62-4284-992e-6dc3cde83d2b'
ReferenceId = 'minTLSOnEventHubNamespace'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
PolicyDefinition @{
Id = '6313cbe8-6fb7-451b-a9e3-3f23b59843ca'
ReferenceId = 'minTLSOnApplicationGateway'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param Effect_deny)
}
}
}Members (29)
- Configure Azure Synapse Workspace Dedicated SQL minimum TLS version
- Azure Synapse Workspace SQL Server should be running TLS version 1.2 or newer
- Configure App Service app slots to use the latest TLS version
- App Service app slots should use the latest TLS version
- Configure App Service apps to use the latest TLS version
- App Service apps should use the latest TLS version
- Configure Function app slots to use the latest TLS version
- Function app slots should use the latest TLS version
- Configure Function apps to use the latest TLS version
- Function apps should use the latest TLS version
- App Service Environment should have TLS 1.0 and 1.1 disabled
- Storage accounts should have the specified minimum TLS version
- Azure Active Directory Domain Services managed domains should use TLS 1.2 only mode
- Azure SQL Database should be running TLS version 1.2 or newer
- PostgreSQL flexible servers should be running TLS version 1.2 or newer
- Azure Front Door Standard and Premium should be running minimum TLS version of 1.2
- Configure secure communication protocols(TLS 1.1 or TLS 1.2) on Windows machines
- Windows machines should be configured to use secure communication protocols
- SQL Managed Instance should have the minimal TLS version of 1.2
- TLS protocol 1.2 must be used for Arc SQL managed instances.
- Azure Cache for Redis should be running TLS version 1.2 or newer
- Azure Event Grid domains should be running TLS version 1.2 or newer
- Azure Event Grid namespaces should be running TLS version 1.2 or newer
- Azure Event Grid topics should be running TLS version 1.2 or newer
- Azure IoT Hub should be running TLS version 1.2 or newer
- [Preview]: API Management gateway hostname configurations should use TLS version 1.2 or newer
- Azure Service Bus namespaces should be running TLS version 1.2 or newer
- Azure Event Hub namespaces should be running TLS version 1.2 or newer
- Azure Application Gateway should be running TLS version 1.2 or newer
Source: built-in-policies/policySetDefinitions/Sovereignty/EnforceEncryptionInTransitTLS.json in Azure/azure-policy, under the MIT licence.
Bylaw