Update Update-ALZ-Custom-Policies-to-Latest.md (#1685)
Co-authored-by: Jared Holgate <jaredholgate@microsoft.com> Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com>
This commit is contained in:
Родитель
ff05e4ad29
Коммит
abb7d9d14c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче