Determine Properties to Rotate Resource Provider's Secrets | Azure Stack Hub | Exam AZ-600

Retrieve List of Secret Types for Resource Provider

Question

You have an Azure Stack Hub Integrated System.

You need to determine the properties needed to rotate the resource provider's secrets.

Which of the following cmdlet would you run to retrieve the list of secret types being utilized by the resource provider?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: C

Get-AzsProductSecret -PackageId cmdlet is used to retrieve the list of secret types being utilized by the resource provider.

Option A is incorrect.

There is no command like Retrieve-AzsProductSecret -PackageId.

Rather, it is Get-AzsProductSecret -PackageId.

Option B is incorrect.

There is no command like Retrieve-AzsProductSecretTypes -PackageId in Azure.

Option C is correct.

Get-AzsProductSecret -PackageId cmdlet is used to retrieve the list of secret types being utilized by the resource provider.

Option D is incorrect.

Get-AzsProductSecretTypes -PackageId is not a valid cmdlet in Azure.

To know more about rotating secrets for Event Hubs, please visit the below-given link:

The cmdlets mentioned in the question are all related to Azure Stack Hub (ASH) Integrated System and are used to manage product secrets. Product secrets are confidential information, such as keys and certificates, used to secure communication and data in ASH.

To rotate the resource provider's secrets, we first need to determine the secret types being utilized by the resource provider. The secret types can be retrieved using the Get-AzsProductSecretTypes cmdlet or the Retrieve-AzsProductSecretTypes cmdlet.

Option D. Get-AzsProductSecretTypes -PackageId, is the correct answer.

The Get-AzsProductSecretTypes cmdlet retrieves the list of all secret types being utilized by Azure Stack Hub. This cmdlet requires the PackageId parameter, which specifies the name of the product to retrieve secret types for.

In this case, since we want to retrieve the secret types being utilized by the resource provider, we would need to specify the appropriate PackageId for the resource provider.

Option A. Retrieve-AzsProductSecret -PackageId, is incorrect because this cmdlet is used to retrieve the specified product secrets for the specified ASH product.

Option B. Retrieve-AzsProductSecretTypes -PackageId, is incorrect because this cmdlet does not exist.

Option C. Get-AzsProductSecret -PackageId, is incorrect because this cmdlet retrieves a specified product secret for the specified ASH product.