Gallery › Managed Grafana › Azure built-in policies
Azure Managed Grafana workspaces should disable public network access
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Disabling public network access improves security by ensuring that your Azure Managed Grafana workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your workspaces.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONAMG_PublicNetworkAccess_Deny.json · 50 lines
{
"properties": {
"displayName": "Azure Managed Grafana workspaces should disable public network access",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Disabling public network access improves security by ensuring that your Azure Managed Grafana workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your workspaces.",
"metadata": {
"version": "1.0.0",
"category": "Managed Grafana"
},
"version": "1.0.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.Dashboard/grafana"
},
{
"field": "Microsoft.Dashboard/grafana/publicNetworkAccess",
"notEquals": "Disabled"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/e8775d5a-73b7-4977-a39b-833ef0114628",
"name": "e8775d5a-73b7-4977-a39b-833ef0114628"
}Bylawe8775d5a-73b7-4977-a39b-833ef0114628.bylaw.ps1 · 28 lines
# Converted from AMG_PublicNetworkAccess_Deny.json by ConvertTo-Bylaw.
Policy 'e8775d5a-73b7-4977-a39b-833ef0114628' {
Properties @{
DisplayName = 'Azure Managed Grafana workspaces should disable public network access'
Description = 'Disabling public network access improves security by ensuring that your Azure Managed Grafana workspace isn''t exposed on the public internet. Creating private endpoints can limit exposure of your workspaces.'
Version = '1.0.0'
Category = 'Managed Grafana'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Dashboard/grafana' {
Require 'publicNetworkAccess is Disabled' {
Field publicNetworkAccess | Must -Be 'Disabled'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Managed Grafana/AMG_PublicNetworkAccess_Deny.json in Azure/azure-policy, under the MIT licence.
Bylaw