Questions tagged [azure-python-sdk]

146 questions
0
votes
0 answers

How to create and use a GitHub REST API Service Client in Python?

I'm new-ish to Python. I spend a fair of time working with the Azure Python SDK's. There is a pattern in these SDK's that works well for me. I want to duplicate the pattern below using the GitHub REST API, but can't find a GitHub "Service Client" or…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
0
votes
1 answer

Python azure sdk - Exception has occurred: ModuleNotFoundError No module named 'azure.servicebus'

Package: azure-servicebus: Package version: 7.8.0: OS: WSL 2: Python version: 3.8.10: Describe the bug Unable to import ServiceBusClient from azure-servicebus. To Reproduce Steps to reproduce the behavior: pip install azure-servicebus from…
0
votes
0 answers

Azure Table Storage sync between 2 different storages

I have a list of storage accounts and I would like to copy the exact table content from source_table to destination_table exactly how it is. Which mean if I add an entry to source_table that will be moved to the destination_table same think if I…
0
votes
0 answers

Azure python SDK copy table content to different storage

I hope somebody can help me solve this issue. I have several storage account with some data in table storage. I want to loop over the table and copy their content into another storage account. So far I got this far: source_table_service_client =…
Nayden Van
  • 1,133
  • 1
  • 23
  • 70
0
votes
0 answers

Azure MSAL Python SDK Where is the token stored?

I’m implementing an app using AAD B2C using the MSAL for python. After reviewing the source code and the QuickStart templates it looks like it’s storing the id_token and refresh token in cache AND the session. Is this accurate? If it is why is it…
0
votes
1 answer

How to log custom Python application logs in Databricks and move it to Azure

I have a requirement to develop an application in python. The python application will interact with any database and execute sql statements against it. It can also interact with Databricks instance too and query the tables in databricks. The…
0
votes
1 answer

How to generate azure storage container SAS url using python

I am unable to copy blob(Errror : CopySourceNotVerfied) using the SAS url generated dynamically using this code which I found here How can I generate an Azure blob SAS URL in Python? account_name = 'account' account_key = 'key' container_name =…
0
votes
2 answers

azure copy blobs across storage accounts fails with ErrorCode:CannotVerifyCopySource

I am using python sdk to copy blobs from one container to another, Here is the code, from azure.storage.blob import BlobServiceClient src_blob = '{0}/{1}'.format(src_url,blob_name) destination_client =…
0
votes
1 answer

How to skip a subfolder when reading files from Azure ADLS

I have a ADLS structure as below and I would like to read the files from only the main directory and not the subdirectory. How can I skip the subdirectory in python. Storage Account | |__ sample_container | …
0
votes
0 answers

Azure python sdk authentication using SAS url

I'm using this code to try to check successful connectivity to azure using python sdk tgt_container_url = f'https://{storage_acct_name}.blob.core.windows.net/{container_name}' sas_url = f"{tgt_container_url}?{sas_key}" blob_client =…
mnk
  • 1
0
votes
0 answers

Using the python ADLS Gen 2 SDK to list directory content using directory SAS

I have ADLS Gen 2 SDK directory SAS generated and I am trying to use that SAS to list the directory content (get a list of all files in the directory). I reviewed the ADLS Gen 2 SDK python doc [enter link description here][1] but I was not able to…
0
votes
2 answers

Include only blob 'name' property in list_blobs() response? - Azure Python SDK

Currently, I am using the list_blobs() function in the Azure Python SDK to list all of the blobs within a container. However, in terms of the metadata/info of the blobs, I only require the names of the blobs. In my container, there are over 1M…
pkd
  • 21
  • 4
0
votes
1 answer

How to list blob names from 'a' to 'z' in Azure Python SDK?

Currently I have the following to list all of the blobs in my blob container: blobs = container_client.list_blobs() However, I am looking for a way to list all of the blobs that start with any of the letters from 'a' to 'z'. I've read about the…
pkd
  • 21
  • 4
0
votes
1 answer

Consistent python Scraping to Azure SQL database

I want to scrape a website every minute from now until the end of time. It would roughly be one megabyte in size per scrape, and I wish to scrape it and put the relational data in a SQL managed instance on Azure. My question is does one use Azure…
0
votes
1 answer

Run python function in azure without flask

I want to run a python script in Azure without using flask or jango. I'm thinking about azure functions or something like this. Thank you!