QuestionQ29

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.getSecret and specify the key vault URL and the name of a linked service.

Does this meet the goal?

Explanation

notebookutils.credentials.getSecret requires the fully qualified Azure Key Vault URL and a secret name. Supplying a linked service name in place of the secret name does not identify either stored secret, so it cannot retrieve the registered application ID and secret. NotebookUtils credentials utilities for Fabric

Learn more

Community Discussion

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