QuestionQ68

VerifiedConnect to and consume Azure services and third-party services

You are developing an application and have an Azure user account with access to two subscriptions.

You need to retrieve a storage account key secret from Azure Key Vault.

In what order should you arrange the PowerShell commands to develop the solution?

Drag & Drop
Explanation

Set-AzContext selects the subscription in which the storage account and Key Vault are accessed. Get-AzStorageAccountKey retrieves the storage key; ConvertTo-SecureString converts it to the secure-string type required by Set-AzKeyVaultSecret; and Get-AzKeyVaultSecret retrieves the resulting Key Vault secret. Get-AzSubscription only lists accessible subscriptions and is not required in this sequence.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!