Skip to content

Commit c0224a9

Browse files
authored
App password -> secret
1 parent 647afa6 commit c0224a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/azure-databricks/databricks-extract-load-sql-data-warehouse.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.reviewer: jasonh
77
ms.service: azure-databricks
88
ms.custom: mvc
99
ms.topic: tutorial
10-
ms.date: 06/20/2019
10+
ms.date: 01/29/2020
1111
---
1212
# Tutorial: Extract, transform, and load data by using Azure Databricks
1313

@@ -57,7 +57,7 @@ Complete these tasks before you begin this tutorial:
5757

5858
If you'd prefer to use an access control list (ACL) to associate the service principal with a specific file or directory, reference [Access control in Azure Data Lake Storage Gen2](../storage/blobs/data-lake-storage-access-control.md).
5959

60-
* When performing the steps in the [Get values for signing in](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#get-values-for-signing-in) section of the article, paste the tenant ID, app ID, and password values into a text file. You'll need those soon.
60+
* When performing the steps in the [Get values for signing in](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#get-values-for-signing-in) section of the article, paste the tenant ID, app ID, and secret values into a text file. You'll need those soon.
6161

6262
* Sign in to the [Azure portal](https://portal.azure.com/).
6363

@@ -165,23 +165,23 @@ In this section, you create a notebook in Azure Databricks workspace and then ru
165165
```scala
166166
val storageAccountName = "<storage-account-name>"
167167
val appID = "<app-id>"
168-
val password = "<password>"
168+
val secret = "<secret>"
169169
val fileSystemName = "<file-system-name>"
170170
val tenantID = "<tenant-id>"
171171

172172
spark.conf.set("fs.azure.account.auth.type." + storageAccountName + ".dfs.core.windows.net", "OAuth")
173173
spark.conf.set("fs.azure.account.oauth.provider.type." + storageAccountName + ".dfs.core.windows.net", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider")
174174
spark.conf.set("fs.azure.account.oauth2.client.id." + storageAccountName + ".dfs.core.windows.net", "" + appID + "")
175-
spark.conf.set("fs.azure.account.oauth2.client.secret." + storageAccountName + ".dfs.core.windows.net", "" + password + "")
175+
spark.conf.set("fs.azure.account.oauth2.client.secret." + storageAccountName + ".dfs.core.windows.net", "" + secret + "")
176176
spark.conf.set("fs.azure.account.oauth2.client.endpoint." + storageAccountName + ".dfs.core.windows.net", "https://login.microsoftonline.com/" + tenantID + "/oauth2/token")
177177
spark.conf.set("fs.azure.createRemoteFileSystemDuringInitialization", "true")
178178
dbutils.fs.ls("abfss://" + fileSystemName + "@" + storageAccountName + ".dfs.core.windows.net/")
179179
spark.conf.set("fs.azure.createRemoteFileSystemDuringInitialization", "false")
180180
```
181181

182-
6. In this code block, replace the `<app-id>`, `<password>`, `<tenant-id>`, and `<storage-account-name>` placeholder values in this code block with the values that you collected while completing the prerequisites of this tutorial. Replace the `<file-system-name>` placeholder value with whatever name you want to give the file system.
182+
6. In this code block, replace the `<app-id>`, `<secret>`, `<tenant-id>`, and `<storage-account-name>` placeholder values in this code block with the values that you collected while completing the prerequisites of this tutorial. Replace the `<file-system-name>` placeholder value with whatever name you want to give the file system.
183183

184-
* The `<app-id>`, and `<password>` are from the app that you registered with active directory as part of creating a service principal.
184+
* The `<app-id>`, and `<secret>` are from the app that you registered with active directory as part of creating a service principal.
185185

186186
* The `<tenant-id>` is from your subscription.
187187

0 commit comments

Comments
 (0)