Gallery › Mission › Azure built-in policies
Control the use of AVD for Cloud in Mission Platforms
Converted Initiative Version 1.0.0
This policy initiative 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 Desktops 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 JSONAVDInitiative.json · 75 lines
{
"properties": {
"displayName": "Control the use of AVD for Cloud in Mission Platforms",
"policyType": "BuiltIn",
"description": "This policy initiative 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 Desktops 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": {
"requiredRdpProperties": {
"type": "Array",
"metadata": {
"displayName": "Required RDP properties",
"description": "Enable or disable required RDP properties"
},
"defaultValue": []
},
"restrictExternalPeHp_excludedSubIDs": {
"type": "Array",
"metadata": {
"displayName": "Restrict external private endpoint host pools excluded subscriptions effect",
"description": "Enable or disable to restrict external private endpoint host pools excluded subscriptions"
},
"defaultValue": []
},
"restrictExternalPeWs_excludedSubIDs": {
"type": "Array",
"metadata": {
"displayName": "Restrict external private endpoint workspaces excluded subscriptions effect",
"description": "Enable or disable to restrict external private endpoint workspaces pools excluded subscriptions"
},
"defaultValue": []
}
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "configRdpProps",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f0a5beeb-4b9b-4a3f-ba85-4f4b06afb598",
"definitionVersion": "1.*.*",
"parameters": {
"requiredRdpProperties": {
"value": "[parameters('requiredRdpProperties')]"
}
}
},
{
"policyDefinitionReferenceId": "restrictExternalPeHp",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2f21dced-ec00-4ad3-837c-e4cca2b769e3",
"definitionVersion": "1.*.*",
"parameters": {
"excludedSubIDs": {
"value": "[parameters('restrictExternalPeHp_excludedSubIDs')]"
}
}
},
{
"policyDefinitionReferenceId": "restrictExternalPeWs",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/50e1ddbd-eb12-470b-a2a0-a61aa15c5951",
"definitionVersion": "1.*.*",
"parameters": {
"excludedSubIDs": {
"value": "[parameters('restrictExternalPeWs_excludedSubIDs')]"
}
}
}
],
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/684f53ea-e4f7-4973-93cc-da5c8b3bcbeb",
"name": "684f53ea-e4f7-4973-93cc-da5c8b3bcbeb"
}Bylaw684f53ea-e4f7-4973-93cc-da5c8b3bcbeb.bylaw.ps1 · 57 lines
# Converted from AVDInitiative.json by ConvertTo-Bylaw.
Initiative '684f53ea-e4f7-4973-93cc-da5c8b3bcbeb' {
Properties @{
DisplayName = 'Control the use of AVD for Cloud in Mission Platforms'
Description = 'This policy initiative 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 Desktops within the Environment. See the list of policies of the services that are included.'
Version = '1.0.0'
Category = 'Mission'
PolicyVersion = '1.0.0'
}
Parameter RequiredRdpProperties @{
Type = 'Array'
Default = @()
DisplayName = 'Required RDP properties'
Description = 'Enable or disable required RDP properties'
}
Parameter RestrictExternalPeHp_excludedSubIDs @{
Type = 'Array'
Default = @()
DisplayName = 'Restrict external private endpoint host pools excluded subscriptions effect'
Description = 'Enable or disable to restrict external private endpoint host pools excluded subscriptions'
}
Parameter RestrictExternalPeWs_excludedSubIDs @{
Type = 'Array'
Default = @()
DisplayName = 'Restrict external private endpoint workspaces excluded subscriptions effect'
Description = 'Enable or disable to restrict external private endpoint workspaces pools excluded subscriptions'
}
PolicyDefinition @{
Id = 'f0a5beeb-4b9b-4a3f-ba85-4f4b06afb598'
ReferenceId = 'configRdpProps'
Version = '1.*.*'
Parameters = @{
requiredRdpProperties = (Param RequiredRdpProperties)
}
}
PolicyDefinition @{
Id = '2f21dced-ec00-4ad3-837c-e4cca2b769e3'
ReferenceId = 'restrictExternalPeHp'
Version = '1.*.*'
Parameters = @{
excludedSubIDs = (Param RestrictExternalPeHp_excludedSubIDs)
}
}
PolicyDefinition @{
Id = '50e1ddbd-eb12-470b-a2a0-a61aa15c5951'
ReferenceId = 'restrictExternalPeWs'
Version = '1.*.*'
Parameters = @{
excludedSubIDs = (Param RestrictExternalPeWs_excludedSubIDs)
}
}
}Members (3)
- Azure Virtual Desktop Host Pools should restrict RDP property configurations
- Azure Virtual Desktop Host Pools should not allow links to external private endpoints
- Azure Virtual Desktop Workspaces should not allow links to external private endpoints
Source: built-in-policies/policySetDefinitions/Mission/AVDInitiative.json in Azure/azure-policy, under the MIT licence.
Bylaw