A data engineer must read Parquet files from an ADLS Gen2 storage account named contosodatalake. The account is not registered in Unity Catalog. An administrator created a service principal and stored its client secret in the Databricks secret scope storage-secrets. The engineer adds the following code to a notebook. The application ID is already set in the client.id property.
secret = dbutils.secrets.get(scope="storage-secrets", key="sp-client-secret")
acct = "contosodatalake.dfs.core.windows.net"
spark.conf.set(f"fs.azure.account.auth.type.{acct}", "OAuth")
spark.conf.set(f"fs.azure.account.oauth.provider.type.{acct}", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider")
spark.conf.set(f"fs.azure.account.oauth2.client.id.{acct}", "6b1f2c3d-0000-4a5b-9c8d-1e2f3a4b5c6d")
spark.conf.set(f"fs.azure.account.oauth2.client.secret.{acct}", secret)
spark.conf.set(f"fs.azure.account.oauth2.client.endpoint.{acct}", "https://login.microsoftonline.com/<missing-value>/oauth2/token")
Which value should replace <missing-value> in the token endpoint URL?
Choose one answer.
- The service principal object ID
- The directory (tenant) ID
- The Azure subscription ID
- The application (client) ID
- The storage account name