Gallery › SignalR › Azure built-in policies
Azure SignalR Service should disable public network access
Converted Policy Audit Deny Disabled Mode Indexed Version 1.2.0
To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Azure SignalR Service should disable public network access",
"description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
"policyType": "BuiltIn",
"mode": "Indexed",
"metadata": {
"version": "1.2.0",
"category": "SignalR"
},
"version": "1.2.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.SignalRService/SignalR"
},
{
"anyOf": [
{
"field": "Microsoft.SignalRService/SignalR/publicNetworkAccess",
"exists": "false"
},
{
"field": "Microsoft.SignalRService/SignalR/publicNetworkAccess",
"notEquals": "Disabled"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.2.0",
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/21a9766a-82a5-4747-abb5-650b6dbba6d0",
"name": "21a9766a-82a5-4747-abb5-650b6dbba6d0"
}# Converted from PublicNetworkAccessDisabled_AuditDeny.json by ConvertTo-Bylaw.
Policy '21a9766a-82a5-4747-abb5-650b6dbba6d0' {
Properties @{
DisplayName = 'Azure SignalR Service should disable public network access'
Description = 'To improve the security of Azure SignalR Service resource, ensure that it isn''t exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.'
Version = '1.2.0'
Category = 'SignalR'
PolicyVersion = '1.2.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.SignalRService/SignalR' {
Require 'publicNetworkAccess exists' {
Field publicNetworkAccess | Must -Exist
}
Require 'publicNetworkAccess is Disabled' {
Field publicNetworkAccess | Must -Be 'Disabled'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/SignalR/PublicNetworkAccessDisabled_AuditDeny.json in Azure/azure-policy, under the MIT licence.
Bylaw