QuestionQ28

VerifiedImplement and manage an analytics solution

You have an Azure key vault named KeyVault1 that contains secrets.

You have a Fabric workspace named Workspace1. The workspace contains a notebook named Notebook1 that does the following:

  • Loads stage data into the target tables in a lakehouse
  • Triggers semantic model refreshes

You plan to extend Notebook1 so it will use the Fabric API to monitor semantic model refreshes.

You need to retrieve the registered application ID and secret from KeyVault1 to generate the authentication token.

Solution: You use the following code segment:

Use notebookutils.credentials.putSecret and specify the key vault URL and key vault secret.

Does this achieve the goal?

Explanation

notebookutils.credentials.putSecret stores or updates a secret in the specified Azure Key Vault; it is not a retrieval operation. Retrieving the registered application ID and secret requires notebookutils.credentials.getSecret with the Key Vault URL and the relevant secret name. NotebookUtils credentials utilities for Fabric

Learn more

Community Discussion

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