Skip to content

Commit 304429f

Browse files
[Blob]Migration Guide (Azure#21082)
* [Blob]Migration Guide * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * Update sdk/storage/azure-storage-blob/migrationGuides.md Co-authored-by: tasherif-msft <[email protected]> * rename Co-authored-by: tasherif-msft <[email protected]>
1 parent 84b3839 commit 304429f

File tree

2 files changed

+1648
-0
lines changed

2 files changed

+1648
-0
lines changed

sdk/storage/azure-storage-blob/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ The `credential` parameter may be provided in a number of different forms, depen
123123
from azure.storage.blob import BlobServiceClient
124124
service = BlobServiceClient(account_url="https://<my_account_name>.blob.core.windows.net", credential="<account_access_key>")
125125
```
126+
127+
If you are using **customized url** (which means the url is not in this format `<my_account_name>.blob.core.windows.net`),
128+
please instantiate the client using the credential below:
129+
```python
130+
from azure.storage.blob import BlobServiceClient
131+
service = BlobServiceClient(account_url="https://<my_account_name>.blob.core.windows.net",
132+
credential={"account_name": "<your_account_name>", "account_key":"<account_access_key>"})
133+
```
126134

127135
4. To use [anonymous public read access](https://docs.microsoft.com/azure/storage/blobs/storage-manage-access-to-resources),
128136
simply omit the credential parameter.

0 commit comments

Comments
 (0)