Skip to content

Latest commit

 

History

History
52 lines (28 loc) · 2.28 KB

README.md

File metadata and controls

52 lines (28 loc) · 2.28 KB

Azure-ARM-Diagnostic-Policies

ARM documents to deploy diagnostic policies for specific resources

Please find my blog post with additional information here:

https://markusmeyer.hashnode.dev/configure-azure-diagnostic-settings-with-azure-policies

Policies

Initiative

image

Initiative - Policies

image

Policy Cosmos DB

image

Assign Policy Cosmos DB

image

Assign Policy Cosmos DB - Parameters

image

Diagnostic Setting - Cosmos DB

image

image

Deployment

Azure CLI

az deployment sub create  --location westeurope --template-file .\Policy.json --parameters "@Policy.parameters.json"

Powershell

New-AzDeployment -Name "diagPolicies" -location "West Europe" -TemplateFile .\Policy.json  -verbose -TemplateParameterFile .\Policy.parameters.json

Deploy To Azure Visualize