Skip to content

Commit

Permalink
Fix registry aad (#230)
Browse files Browse the repository at this point in the history
* Fix service principal name for aad env

* Minor fix to move BypassObjectValidation for aad

Co-authored-by: Bhuvaneswari Santharam <[email protected]>
  • Loading branch information
Bhuvaneswari-Santharam and Bhuvaneswari Santharam authored Oct 23, 2020
1 parent 87738df commit c977dd7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions registry/Scripts/pre-reqs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,7 @@ function Set-ContainerRegistryPrerequisites
Write-Host "Set access policy on keyvault ($KeyVaultName) for client ($ServicePrincipalId)"
Set-AzureRmKeyVaultAccessPolicy -VaultName $KeyVaultName `
-ServicePrincipalName $ServicePrincipalId `
-PermissionsToSecrets GET, LIST `
-BypassObjectIdValidation
-PermissionsToSecrets GET, LIST
}

# Secret related to registry credentials.
Expand Down

0 comments on commit c977dd7

Please sign in to comment.