Skip to content

Commit 2d56cb0

Browse files
authored
Fix datalake Readme issue (Azure#12269)
Fix Azure#11495 @jongio for notification.
1 parent 77b159f commit 2d56cb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sdk/storage/storage-file-datalake/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,13 @@ main();
512512
### Download a file and convert it to a string (Browsers)
513513

514514
```javascript
515-
const { DefaultAzureCredential } = require("@azure/identity");
516515
const { DataLakeServiceClient } = require("@azure/storage-file-datalake");
517516

518517
const account = "<account>";
519-
const defaultAzureCredential = new DefaultAzureCredential();
518+
const sas="<sas token>"
520519

521520
const datalakeServiceClient = new DataLakeServiceClient(
522-
`https://${account}.dfs.core.windows.net`,
523-
defaultAzureCredential
521+
`https://${account}.dfs.core.windows.net${sas}`
524522
);
525523

526524
const fileSystemName = "<file system name>";

0 commit comments

Comments
 (0)