Gallery › Mobile Network › Azure built-in policies
[Deprecated]: Packet Core Control Plane diagnostic access should only use Microsoft EntraID authentication type
Converted Policy Audit Deny Disabled Mode Indexed Version 1.1.0-deprecated Deprecated
This policy is deprecated because the Microsoft.MobileNetwork resource provider has been decommissioned with no replacement. We recommend you remove all assignments of this policy and all references to it from initiatives. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Audit.json · 52 lines
{
"properties": {
"displayName": "[Deprecated]: Packet Core Control Plane diagnostic access should only use Microsoft EntraID authentication type",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "This policy is deprecated because the Microsoft.MobileNetwork resource provider has been decommissioned with no replacement. We recommend you remove all assignments of this policy and all references to it from initiatives. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.",
"metadata": {
"category": "Mobile Network",
"version": "1.1.0-deprecated",
"deprecated": true
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Disabled"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MobileNetwork/packetCoreControlPlanes"
},
{
"field": "Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType",
"notEquals": "AAD"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/aec63c84-f9ea-46c7-9e66-ba567bae0f09",
"name": "aec63c84-f9ea-46c7-9e66-ba567bae0f09"
}Bylawaec63c84-f9ea-46c7-9e66-ba567bae0f09.bylaw.ps1 · 29 lines
# Converted from ConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Audit.json by ConvertTo-Bylaw.
Policy 'aec63c84-f9ea-46c7-9e66-ba567bae0f09' {
Properties @{
DisplayName = '[Deprecated]: Packet Core Control Plane diagnostic access should only use Microsoft EntraID authentication type'
Description = 'This policy is deprecated because the Microsoft.MobileNetwork resource provider has been decommissioned with no replacement. We recommend you remove all assignments of this policy and all references to it from initiatives. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.'
Category = 'Mobile Network'
Version = '1.1.0-deprecated'
Deprecated = $true
PolicyVersion = '1.1.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Disabled'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.MobileNetwork/packetCoreControlPlanes' {
Require 'localDiagnosticsAccess.authenticationType is AAD' {
Field 'Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType' -AllowUnknownAlias | Must -Be 'AAD'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Mobile Network/ConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw