diff --git a/.azuredevops/templates/template-stage-policy-tests.yml b/.azuredevops/templates/template-stage-policy-tests.yml index bf842e6..9ef3aca 100644 --- a/.azuredevops/templates/template-stage-policy-tests.yml +++ b/.azuredevops/templates/template-stage-policy-tests.yml @@ -62,7 +62,7 @@ stages: - template: ./template-task-install-ps-modules.yml parameters: displayName: "Install AzPolicyTest Module" - moduleNames: "AzPolicyTest`@3.1.1" + moduleNames: "AzPolicyTest`@3.2.0" shouldInstall: ${{ or(eq(parameters.runPolicyJsonPesterTests, true), eq(parameters.runPolicyInitiativePesterTests, true), eq(parameters.runPolicyDefinitionPesterTests, true)) }} - pwsh: | diff --git a/.github/actions/templates/test-policy-def/action.yml b/.github/actions/templates/test-policy-def/action.yml index 445b6f9..1f770fa 100644 --- a/.github/actions/templates/test-policy-def/action.yml +++ b/.github/actions/templates/test-policy-def/action.yml @@ -53,7 +53,7 @@ runs: Write-Output '::group::Install AzPolicyTest Module' $scriptPath = "$env:INPUT_WORKSPACE_DIRECTORY/scripts/pipelines/pipeline-install-moduleFromRepo.ps1" & $scriptPath ` - -modules 'AzPolicyTest@3.1.1' ` + -modules 'AzPolicyTest@3.2.0' ` -repoName 'PSGallery' ` -maxRetry 3 ` -allowPrerelease 'false' diff --git a/policyInitiatives/polset-key-vault.json b/policyInitiatives/polset-key-vault.json index 4f41c4a..362a16f 100644 --- a/policyInitiatives/polset-key-vault.json +++ b/policyInitiatives/polset-key-vault.json @@ -170,6 +170,7 @@ { "policyDefinitionReferenceId": "KV-005", "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0a075868-4c26-42ef-914c-5bc007359560", + "definitionVersion": "2.2.*", "parameters": { "effect": { "value": "[parameters('KV-005_Effect')]" @@ -185,6 +186,7 @@ { "policyDefinitionReferenceId": "KV-006", "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0", + "definitionVersion": "1.0.*", "parameters": { "effect": { "value": "[parameters('KV-006_Effect')]" @@ -197,6 +199,7 @@ { "policyDefinitionReferenceId": "KV-007", "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/98728c90-32c7-4049-8429-847dc0f4fe37", + "definitionVersion": "1.0.*", "parameters": { "effect": { "value": "[parameters('KV-007_Effect')]"