Unable to set a SAS definition in Key Vault #22828
Labels
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
KeyVault
az keyvault
Milestone
Azure CLI fails at setting a SAS definition in Key Vault as part of a setup to create a manages storage account.
Related command
Describe the bug
The bug occurs when setting a SAS definition in a KeyVault as part of a setup where a Storage Account is managed by such Key Vault:
https://docs.microsoft.com/en-us/azure/key-vault/secrets/overview-storage-keys
To Reproduce
Create a Storage Account that is managed by a KeyVault by following the steps described in the following documentation page:
https://docs.microsoft.com/en-us/azure/key-vault/secrets/overview-storage-keys
The error occurs when setting the SAS definition in the KeyVault.
The command fails with the following error message:
Expected behavior
The command should create a SAS definition in Key Vault.
As an example, it should create an object that looks like the following one:
Environment summary
Running in PowerShell 7.2.4, the command
az version
returns:Existing workaround
This errors occurs only with Azure CLI, but it completes successfully using the Azure PowerShell commands, i.e. the following command works correctly and the SAS definition is created correctly:
Once the SAS definition is created using Azure PowerShell, then Azure CLI can successfully verify the SAS definition creation through the following command:
The text was updated successfully, but these errors were encountered: