QuestionQ27

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 Key Vault secret.

Does this accomplish the goal?

Explanation

notebookutils.credentials.getSecret retrieves the value of a named Azure Key Vault secret when supplied with the fully qualified Key Vault URL and the secret name. It can be used to retrieve the stored application ID and application secret at runtime. NotebookUtils credentials utilities for Fabric

Learn more

Community Discussion

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