You work as a Security Engineer for MDFT Pro, a well-known training agency that provides cloud certification courses to thousands of students worldwide. Mark, the Chief Security Officer, has implemented a policy requiring all sensitive credentials and connection strings to be stored in Azure Key Vault rather than in application configuration files or environment variables.
You are developing a course management application that needs to access an Azure Storage account to store student course materials, training videos, and certificate templates. The application requires secure access to the storage account keys, which must be retrieved from Azure programmatically and stored in Key Vault for the application to reference.
You have an Azure user account with appropriate permissions to both the storage account and the Key Vault. You need to retrieve the account key from the storage account and then store it securely in the key vault under the name ‘secret1’.
Which PowerShell commands should you use in sequence to retrieve the storage account key and store it in Key Vault?
Choose all correct answers from the options below.
Explanations for each answer: