Gallery › Video Indexer › Azure Community Policy
Azure AI Video Indexer Should Disable Public Network Access
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
This policy Denies the creation of AI Video Indexer accounts with Public Network Access enabled. Disabling Public Network Access helps to enhance the security of your Video Indexer accounts by restricting access to trusted networks only.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONazurepolicy.json · 45 lines
{
"name": "27e66ba1-7f71-4a8e-b981-ef06d5c78c1b",
"type": "Microsoft.Authorization/policyDefinitions",
"properties": {
"displayName": "Azure AI Video Indexer Should Disable Public Network Access",
"description": "This policy Denies the creation of AI Video Indexer accounts with Public Network Access enabled. Disabling Public Network Access helps to enhance the security of your Video Indexer accounts by restricting access to trusted networks only.",
"metadata": {
"version": "1.0.0",
"category": "Video Indexer"
},
"mode": "Indexed",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Deny, Audit or Disabled the execution of the Policy"
},
"allowedValues": [
"Deny",
"Audit",
"Disabled"
],
"defaultValue": "Deny"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.VideoIndexer/accounts"
},
{
"field": "Microsoft.VideoIndexer/accounts/publicNetworkAccess",
"notEquals": "Disabled"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
}
}Bylaw27e66ba1-7f71-4a8e-b981-ef06d5c78c1b.bylaw.ps1 · 27 lines
# Converted from azurepolicy.json by ConvertTo-Bylaw.
Policy '27e66ba1-7f71-4a8e-b981-ef06d5c78c1b' {
Properties @{
DisplayName = 'Azure AI Video Indexer Should Disable Public Network Access'
Description = 'This policy Denies the creation of AI Video Indexer accounts with Public Network Access enabled. Disabling Public Network Access helps to enhance the security of your Video Indexer accounts by restricting access to trusted networks only.'
Version = '1.0.0'
Category = 'Video Indexer'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Deny', 'Audit', 'Disabled')
Default = 'Deny'
DisplayName = 'Effect'
Description = 'Deny, Audit or Disabled the execution of the Policy'
}
Resource 'Microsoft.VideoIndexer/accounts' {
Require 'publicNetworkAccess is Disabled' {
Field publicNetworkAccess | Must -Be 'Disabled'
}
}
Effect (Param Effect)
}Source: policyDefinitions/Video Indexer/Video Indexer Should Disable Public Network Access/azurepolicy.json in Azure/Community-Policy, under the MIT licence.
Bylaw