terraform-azure
terraform-azure copied to clipboard
Admin User access policy setup error
Hi,
Without Azure AD we can't use this script, also this create resources on every execution.
WARNING: The provided information does not map to an AD object id. WARNING: Access policy is not set. No user or application has access permission to use this vault. This can happen if the vault was created by a service principal. Please use Set-AzKeyVaultAccessPolicy to set access policies. SUCCESS!
Setting KeyVault Access Policy for Admin User: [TERRALADM].....................ERROR! Set-AzKeyVaultAccessPolicy : Cannot validate argument on parameter 'ObjectId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At /home/rubik/Desktop/DocumentM/terraform-azure/scripts/ConfigureAzureForSecureTerraformAccess.ps1:264 char:58
- ... olicy -BypassObjectIdValidation @azKeyVaultAccessPolicyParams | Out-S ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - CategoryInfo : InvalidData: (:) [Set-AzKeyVaultAccessPolicy], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultAccessPolicy