Gallery › Kubernetes service › Azure built-in policies
[Deprecated]: Enforce internal load balancers in AKS
Doesn't convert yet Policy Disabled Mode Microsoft.ContainerService.Data Version 1.0.1-deprecated Deprecated
This policy enforces load balancers do not have public IPs in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.
ConvertTo-Bylaw can't convert this policy yet:
- BYL6002 Its mode, Microsoft.ContainerService.Data, is a resource provider mode, which language version 1.0 doesn't support.
Azure Policy JSONLoadbalancerNoPublicIPs_EnforceRegoPolicy.json · 46 lines
{
"properties": {
"displayName": "[Deprecated]: Enforce internal load balancers in AKS",
"policyType": "BuiltIn",
"mode": "Microsoft.ContainerService.Data",
"description": "This policy enforces load balancers do not have public IPs in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
"metadata": {
"version": "1.0.1-deprecated",
"category": "Kubernetes service",
"deprecated": true
},
"version": "1.0.1",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "EnforceRegoPolicy",
"allowedValues": [
"EnforceRegoPolicy",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.ContainerService/managedClusters"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"policyId": "LoadBalancersInternal",
"policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/loadbalancer-no-publicips/limited-preview/gatekeeperpolicy.rego"
}
}
},
"versions": [
"1.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/a74d8f00-2fd9-4ce4-968e-0ee1eb821698",
"name": "a74d8f00-2fd9-4ce4-968e-0ee1eb821698"
}Source: built-in-policies/policyDefinitions/Kubernetes service/LoadbalancerNoPublicIPs_EnforceRegoPolicy.json in Azure/azure-policy, under the MIT licence.
Bylaw