Gallery › Health Bot › Azure built-in policies
Azure Health Bots should use Azure RBAC as their access control method
Converted Policy Audit Disabled Mode Indexed Version 1.0.0
Have a more precise and robust control over access control for your healthcare agents, by setting Azure RBAC as your access control method. Roles are assigned through the Access Control blade in your resource page, groups can be leveraged to share permissions, and custom roles can be authored to cater for specific use cases. Learn more at https://docs.microsoft.com/azure/health-bot/cmk
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONUseAzureRBACAccessControl_Audit.json · 57 lines
{
"properties": {
"displayName": "Azure Health Bots should use Azure RBAC as their access control method",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Have a more precise and robust control over access control for your healthcare agents, by setting Azure RBAC as your access control method. Roles are assigned through the Access Control blade in your resource page, groups can be leveraged to share permissions, and custom roles can be authored to cater for specific use cases. Learn more at https://docs.microsoft.com/azure/health-bot/cmk",
"metadata": {
"version": "1.0.0",
"category": "Health Bot"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The desired effect of the policy"
},
"allowedValues": [
"Audit",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.HealthBot/healthBots"
},
{
"anyOf": [
{
"field": "Microsoft.HealthBot/healthBots/accessControlMethod",
"exists": "false"
},
{
"field": "Microsoft.HealthBot/healthBots/accessControlMethod",
"notEquals": "AzureRBAC"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/96561daf-13ae-4008-9300-638df7e6a11a",
"name": "96561daf-13ae-4008-9300-638df7e6a11a"
}Bylaw96561daf-13ae-4008-9300-638df7e6a11a.bylaw.ps1 · 32 lines
# Converted from UseAzureRBACAccessControl_Audit.json by ConvertTo-Bylaw.
Policy '96561daf-13ae-4008-9300-638df7e6a11a' {
Properties @{
DisplayName = 'Azure Health Bots should use Azure RBAC as their access control method'
Description = 'Have a more precise and robust control over access control for your healthcare agents, by setting Azure RBAC as your access control method. Roles are assigned through the Access Control blade in your resource page, groups can be leveraged to share permissions, and custom roles can be authored to cater for specific use cases. Learn more at https://docs.microsoft.com/azure/health-bot/cmk'
Version = '1.0.0'
Category = 'Health Bot'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'The desired effect of the policy'
}
Resource 'Microsoft.HealthBot/healthBots' {
Require 'accessControlMethod exists' {
Field accessControlMethod | Must -Exist
}
Require 'accessControlMethod is AzureRBAC' {
Field accessControlMethod | Must -Be 'AzureRBAC'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Health Bot/UseAzureRBACAccessControl_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw