-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Azure PS TeamKeyVaultTrackingWe will track status and follow internallyWe will track status and follow internallycustomer-reportedfeature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.
Description
Description of the new feature
Because Key Vault secrets have a global unique ID and it's just a URL.
We tend to paste that URL around the place, e.g. in app configuration. It would be convenient if the Get-AzKeyVaultSecret supported those URLs.
What I'd like to do
Get-AzKeyVaultSecret -Id https://myvault.vault.azure.net/secrets/MySecret
Get-AzKeyVaultSecret -Id https://myvault.vault.azure.net/secrets/MySecret/03d6fd62056a4790a8982b1a75f320f8Alternatives
- Helper class. The .NET client provides KeyVaultSecretIdentifier
- Do it manually ... Kinda ugly:
$token = Get-AzAccessToken -ResourceUrl https://vault.azure.net
$headers = @{"Authorization" = "Bearer $($token.Token)"}
$response = Invoke-RestMethod -Uri https://myvault.vault.azure.net/secrets/MySecret/03d6fd62056a4790a8982b1a75f320f8?api-version=7.1 -Headers $headersProposed implementation details (optional)
No response
Metadata
Metadata
Assignees
Labels
Azure PS TeamKeyVaultTrackingWe will track status and follow internallyWe will track status and follow internallycustomer-reportedfeature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.