Bylaw

Gallery › Mission › Azure built-in policies

Control the use of Redis Cache in Mission Platforms

Converted Initiative Version 1.0.0

This policy set applies exclusively to Mission Platform products and services; usage outside of these scopes is not supported. Restricting public network access and external private endpoint connections helps protect Redis cached data and maintain subscription boundaries.

ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.

Azure Policy JSONRedisCacheInitiative.json · 30 lines
{
  "properties": {
    "displayName": "Control the use of Redis Cache in Mission Platforms",
    "policyType": "BuiltIn",
    "description": "This policy set applies exclusively to Mission Platform products and services; usage outside of these scopes is not supported. Restricting public network access and external private endpoint connections helps protect Redis cached data and maintain subscription boundaries.",
    "metadata": {
      "version": "1.0.0",
      "category": "Mission"
    },
    "version": "1.0.0",
    "parameters": {},
    "policyDefinitions": [
      {
        "policyDefinitionReferenceId": "RedisCacheRestrictPublicNetworkAccess",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/470baccb-7e51-4549-8b1a-3e5be069f663",
        "definitionVersion": "1.*.*"
      },
      {
        "policyDefinitionReferenceId": "RedisCacheRestrictExternalPrivateEndpoints",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/91de0ea5-83b9-4110-a7dd-3d5053465b11",
        "definitionVersion": "1.*.*"
      }
    ],
    "versions": [
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/ea051ed8-5972-4f02-8879-5a154fa519f1",
  "name": "ea051ed8-5972-4f02-8879-5a154fa519f1"
}
Bylawea051ed8-5972-4f02-8879-5a154fa519f1.bylaw.ps1 · 23 lines
# Converted from RedisCacheInitiative.json by ConvertTo-Bylaw.
Initiative 'ea051ed8-5972-4f02-8879-5a154fa519f1' {

    Properties @{
        DisplayName   = 'Control the use of Redis Cache in Mission Platforms'
        Description   = 'This policy set applies exclusively to Mission Platform products and services; usage outside of these scopes is not supported. Restricting public network access and external private endpoint connections helps protect Redis cached data and maintain subscription boundaries.'
        Version       = '1.0.0'
        Category      = 'Mission'
        PolicyVersion = '1.0.0'
    }

    PolicyDefinition @{
        Id          = '470baccb-7e51-4549-8b1a-3e5be069f663'
        ReferenceId = 'RedisCacheRestrictPublicNetworkAccess'
        Version     = '1.*.*'
    }

    PolicyDefinition @{
        Id          = '91de0ea5-83b9-4110-a7dd-3d5053465b11'
        ReferenceId = 'RedisCacheRestrictExternalPrivateEndpoints'
        Version     = '1.*.*'
    }
}

Members (2)

Source: built-in-policies/policySetDefinitions/Mission/RedisCacheInitiative.json in Azure/azure-policy, under the MIT licence.