Gallery › Azure Arc › Azure built-in policies
Azure Arc-enabled kubernetes clusters should be configured with an Azure Arc Private Link Scope
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping Azure Arc-enabled servers to an Azure Arc Private Link Scope that is configured with a private endpoint, data leakage risks are reduced. Learn more about private links at: https://aka.ms/arc/privatelink.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Azure Arc-enabled kubernetes clusters should be configured with an Azure Arc Private Link Scope",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping Azure Arc-enabled servers to an Azure Arc Private Link Scope that is configured with a private endpoint, data leakage risks are reduced. Learn more about private links at: https://aka.ms/arc/privatelink.",
"metadata": {
"version": "1.0.0",
"category": "Azure Arc"
},
"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.Kubernetes/connectedClusters"
},
{
"field": "Microsoft.Kubernetes/connectedClusters/privateLinkScopeResourceId",
"exists": false
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/12e7176a-4919-47ef-922b-34eda4c7f0ce",
"name": "12e7176a-4919-47ef-922b-34eda4c7f0ce"
}# Converted from Arc_KubernetesCluster_PrivateLinkEnabled_Deny.json by ConvertTo-Bylaw.
Policy '12e7176a-4919-47ef-922b-34eda4c7f0ce' {
Properties @{
DisplayName = 'Azure Arc-enabled kubernetes clusters should be configured with an Azure Arc Private Link Scope'
Description = 'Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping Azure Arc-enabled servers to an Azure Arc Private Link Scope that is configured with a private endpoint, data leakage risks are reduced. Learn more about private links at: https://aka.ms/arc/privatelink.'
Version = '1.0.0'
Category = 'Azure Arc'
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.Kubernetes/connectedClusters' {
Require 'privateLinkScopeResourceId exists' {
Field privateLinkScopeResourceId | Must -Exist
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Azure Arc/Arc_KubernetesCluster_PrivateLinkEnabled_Deny.json in Azure/azure-policy, under the MIT licence.
Bylaw