Skip to content

Commit

Permalink
Update Update-ALZ-Custom-Policies-to-Latest.md (#1685)
Browse files Browse the repository at this point in the history
Co-authored-by: Jared Holgate <[email protected]>
Co-authored-by: Jack Tracey <[email protected]>
  • Loading branch information
3 people authored Jun 25, 2024
1 parent ff05e4a commit abb7d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/wiki/Update-ALZ-Custom-Policies-to-Latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ For this scenario we will use the ALZ custom initiative _Deploy Diagnostic Setti
if ($policyDefId -match '(\/\w+\/\w+\.\w+\/\w+\/)(\w+)(\/.+)') {
$policyDefinitionName = $policyDefId.substring($policyDefId.lastindexof('/') + 1)
$policyDefinitionPath = "./$($policyDefinitionName).json"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure/Enterprise-Scale/main/src/resources/Microsoft.Authorization/policyDefinitions/$($policyDefinitionName).json" -OutFile $policySetDefinitionPath
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure/Enterprise-Scale/main/src/resources/Microsoft.Authorization/policyDefinitions/$($policyDefinitionName).json" -OutFile $policyDefinitionPath
$policyDef = Get-Content $policyDefinitionPath | ConvertFrom-Json -Depth 100
$policyName = $policyDef.name
$displayName = $policyDef.properties.displayName
Expand Down

0 comments on commit abb7d9d

Please sign in to comment.