question

cthivierge avatar image
0 Votes"
cthivierge asked vipulsparsh-MSFT commented

Azure cloudshell - issues with commands

Hi,

I am running a az cli command from Azure cloudshell (Powershell or Bash) from my personal Azure tenant and it's working perfectly.

When i want to do the same command from our organization Tenant, i receive an error

I want to show a private endpoint on a Keyvault... the commande line is :

$vaultendpoint = az keyvault private-endpoint-connection show --vault-name myvaultname --name myendpointresource-conn | ConvertFrom-Json

From our organization tenant, here is the error:
ERROR: incorrect usage: [--id ID | --name NAME --vault-name NAME | --name NAME --hsm-name NAME]

What could cause this kind of issue ?

windows-server-powershellazure-key-vault
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

cthivierge avatar image
0 Votes"
cthivierge answered vipulsparsh-MSFT commented

Found the issue this morning...

This was an issue within a pipeline execution... The Service Principal of the service connection didn't had the Owner permissions on the KeyVault...

Not very easy to debug with this error message...

Thanks!

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@cthivierge Thanks for sharing the findings with community, I am sure this will help someone who is in similar scenario.

0 Votes 0 ·