The "Get-AzKeyVault" but not returning as expected on Azure CLI even on the latest version of az #25509
Labels
customer-reported
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Hello Team,
I have a cx query the "Get-AzKeyVault" but not returning as expected on Azure CLI.
The cmd “Get-AzKeyVault -ResourceGroupName $ccoeKvResourceGroupName -VaultName $ccoeKeyVaultName -SubscriptionId $ccoeKvSubscriptionId” returned with error to Connect-AzAccount with the service principal.
It should pick the subscription as stated in the variables but doesn't it only works when we force it and actually specify the subscription again in the variables .
"Connect-AzAccount -ServicePrincipal -TenantId $Tenantid -Credential -Subscription "belfius-spoke-dev-001" which return as expected.
Get-AzKeyVault (Az.KeyVault) | Microsoft Learn
Thanks for your assistance.
Script or Debug output
No response
Environment data
No response
Module versions
No response
Error output
No response
The text was updated successfully, but these errors were encountered: