From abb7d9d14c75e8da3ddb7824e3c160de73a37aa4 Mon Sep 17 00:00:00 2001 From: Pawel1985 Date: Tue, 25 Jun 2024 11:39:17 +0200 Subject: [PATCH] Update Update-ALZ-Custom-Policies-to-Latest.md (#1685) Co-authored-by: Jared Holgate Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com> --- docs/wiki/Update-ALZ-Custom-Policies-to-Latest.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/Update-ALZ-Custom-Policies-to-Latest.md b/docs/wiki/Update-ALZ-Custom-Policies-to-Latest.md index 75b9553784..fd55dd5cec 100644 --- a/docs/wiki/Update-ALZ-Custom-Policies-to-Latest.md +++ b/docs/wiki/Update-ALZ-Custom-Policies-to-Latest.md @@ -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