CopyPastor

Detecting plagiarism made easy.

Score: 0.8591411281377077; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2021-10-14
by HariKrishnaRajoli-MT

Original Post

Original - Posted on 2021-04-05
by Jim Xu



            
Present in both answers; Present only in the new answer; Present only in the old answer;

If you want to manage Azure blob with python3 in Azure runbook, we need to import package `azure.storage.blob` with its dependencies.
**Step 1:** ***a) Download this package:***
pip3 download -d <output dir name> azure-storage-blob==12.8.0
***b) Import these packages*** ![enter image description here](https://i.imgur.com/DqT2ndn.png)
**Step 2:**
***Runbook - connect code***
```python from azure.storage.blob import BlobServiceClient
connect_str = '' blob_service_client = BlobServiceClient.from_connection_string(connect_str) container_client=blob_service_client.get_container_client('test') blobs = container_client.list_blobs( ) for blob in blobs: print(blob.name) ``` ***Test and Output:***
![enter image description here](https://i.stack.imgur.com/uXEgC.png)

If you want to manage Azure blob with python3 in Azure runbook, we need to import package `azure.storage.blob` with its dependencies.
For example
1. Manual Download packages ``` pip3 download -d <output dir name> azure-storage-blob==12.8.0 ``` 2.Import these packages [![enter image description here][1]][1]
3.Runbook
a.code ``` from azure.storage.blob import BlobServiceClient
connect_str = '' blob_service_client = BlobServiceClient.from_connection_string(connect_str) container_client=blob_service_client.get_container_client('test') blobs = container_client.list_blobs( ) for blob in blobs: print(blob.name) ```
b.test [![enter image description here][2]][2]

[1]: https://i.stack.imgur.com/wyjoN.png [2]: https://i.stack.imgur.com/uXEgC.png

        
Present in both answers; Present only in the new answer; Present only in the old answer;