Gallery › Mobile Network › Azure built-in policies
[Deprecated]: Configure Packet Core Control Plane diagnostic access to use authentication type Microsoft EntraID
Converted Policy Disabled Modify 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_Modify.json · 65 lines
{
"properties": {
"displayName": "[Deprecated]: Configure Packet Core Control Plane diagnostic access to use authentication type Microsoft EntraID",
"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": [
"Modify",
"Disabled"
],
"defaultValue": "Disabled"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MobileNetwork/packetCoreControlPlanes"
},
{
"field": "Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType",
"notEquals": "AAD"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"roleDefinitionIds": [
"/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"conflictEffect": "audit",
"operations": [
{
"condition": "[greaterOrEquals(requestContext().apiVersion, '2022-11-01')]",
"operation": "addOrReplace",
"field": "Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType",
"value": "AAD"
}
]
}
}
},
"versions": [
"1.1.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/7508b186-60e2-4518-bf70-3d7fbaba1f3a",
"name": "7508b186-60e2-4518-bf70-3d7fbaba1f3a"
}Bylaw7508b186-60e2-4518-bf70-3d7fbaba1f3a.bylaw.ps1 · 31 lines
# Converted from ConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Modify.json by ConvertTo-Bylaw.
Policy '7508b186-60e2-4518-bf70-3d7fbaba1f3a' {
Properties @{
DisplayName = '[Deprecated]: Configure Packet Core Control Plane diagnostic access to use authentication type Microsoft EntraID'
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 = @('Modify', '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'
}
}
Modify -Role 'Contributor' -ConflictEffect Audit -Effect (Param Effect) {
Field 'Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType' -AllowUnknownAlias | AddOrReplace 'AAD' -Condition (Arm '[greaterOrEquals(requestContext().apiVersion, ''2022-11-01'')]')
}
}Source: built-in-policies/policyDefinitions/Mobile Network/ConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Modify.json in Azure/azure-policy, under the MIT licence.
Bylaw