Bylaw

Gallery › Mission › Azure built-in policies

Control the use of Compute for Cloud in Mission Platforms

Converted Initiative Version 1.0.0

This policy applies exclusively to Mission Platform products and services; usage outside of these scopes is not supported. This policy set deploys the required policy guardrails governing the use of Azure Virtual Machines within the Environment. See the list of policies of the services that are included.

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

Azure Policy JSONComputeInitiative.json · 35 lines
{
  "properties": {
    "displayName": "Control the use of Compute for Cloud in Mission Platforms",
    "policyType": "BuiltIn",
    "description": "This policy applies exclusively to Mission Platform products and services; usage outside of these scopes is not supported. This policy set deploys the required policy guardrails governing the use of Azure Virtual Machines within the Environment. See the list of policies of the services that are included.",
    "metadata": {
      "version": "1.0.0",
      "category": "Mission"
    },
    "version": "1.0.0",
    "parameters": {},
    "policyDefinitions": [
      {
        "policyDefinitionReferenceId": "denyDiskExport",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f4273bc9-d20e-438d-ad30-b72221939edc",
        "definitionVersion": "1.*.*"
      },
      {
        "policyDefinitionReferenceId": "denySnapshotExport",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44a0b5ee-56f4-4285-a136-9e6dc3471011",
        "definitionVersion": "1.*.*"
      },
      {
        "policyDefinitionReferenceId": "encryptDisksWithCmk",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/59953f11-df7f-48b1-870f-1780ed07348e",
        "definitionVersion": "1.*.*"
      }
    ],
    "versions": [
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/4e298495-0b2a-4d8c-92cd-a2f9509167e9",
  "name": "4e298495-0b2a-4d8c-92cd-a2f9509167e9"
}
Bylaw4e298495-0b2a-4d8c-92cd-a2f9509167e9.bylaw.ps1 · 17 lines
# Converted from ComputeInitiative.json by ConvertTo-Bylaw.
Initiative '4e298495-0b2a-4d8c-92cd-a2f9509167e9' {

    Properties @{
        DisplayName   = 'Control the use of Compute for Cloud in Mission Platforms'
        Description   = 'This policy applies exclusively to Mission Platform products and services; usage outside of these scopes is not supported. This policy set deploys the required policy guardrails governing the use of Azure Virtual Machines within the Environment. See the list of policies of the services that are included.'
        Version       = '1.0.0'
        Category      = 'Mission'
        PolicyVersion = '1.0.0'
    }

    PolicyDefinition -Id 'f4273bc9-d20e-438d-ad30-b72221939edc' -ReferenceId 'denyDiskExport' -Version '1.*.*'

    PolicyDefinition -Id '44a0b5ee-56f4-4285-a136-9e6dc3471011' -ReferenceId 'denySnapshotExport' -Version '1.*.*'

    PolicyDefinition -Id '59953f11-df7f-48b1-870f-1780ed07348e' -ReferenceId 'encryptDisksWithCmk' -Version '1.*.*'
}

Members (3)

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