Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone authored Aug 13, 2024
2 parents e85e322 + cbbf394 commit 85621e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/actions-pester/Test-ModifiedPolicies.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ Describe 'UnitTest-ModifiedPolicies' {
}
}

It "Check policy metadata name matches policy filename" {
$ModifiedAddedFiles | ForEach-Object {
$PolicyJson = Get-Content -Path $_ -Raw | ConvertFrom-Json
$PolicyFile = Split-Path $_ -Leaf
$PolicyMetadataName = $PolicyJson.name
$PolicyFileNoExt = [System.IO.Path]::GetFileNameWithoutExtension($PolicyFile)
if ($PolicyFileNoExt.Contains("AzureChinaCloud") -or $PolicyFileNoExt.Contains("AzureUSGovernment"))
{
$PolicyFileNoExt = $PolicyFileNoExt.Substring(0, $PolicyFileNoExt.IndexOf("."))
}
Write-Warning "$($PolicyFileNoExt) - This is the policy metadata name: $($PolicyMetadataName)"
$PolicyMetadataName | Should -Be $PolicyFileNoExt
}
}

}

Context "Validate policy parameters" {
Expand Down
4 changes: 2 additions & 2 deletions eslzArm/eslz-portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6298,7 +6298,7 @@
{
"name": "enableWsKeyVaultSupInitiatives",
"type": "Microsoft.Common.OptionsGroup",
"label": "Key Vault - Supplementry",
"label": "Key Vault - Supplementary",
"defaultValue": "No",
"visible": true,
"toolTip": "If 'Yes' is selected you will have the option to selected additional policy initiatives for regulated industries. Check initiative <a href=\"https://www.azadvertizer.net/azpolicyinitiativesadvertizer/Enforce-Guardrails-KeyVault-Sup.html\">here</a>.",
Expand All @@ -6318,7 +6318,7 @@
{
"name": "wsKeyVaultSupSelectorMG",
"type": "Microsoft.Common.DropDown",
"label": "Select Management Group scopes to assign the Key Vault - Supplementry initiative to:",
"label": "Select Management Group scopes to assign the Key Vault - Supplementary initiative to:",
"toolTip": "",
"multiselect": true,
"selectAll": false,
Expand Down

0 comments on commit 85621e0

Please sign in to comment.