KeyVault getting a secret out fails

Here is my code, this was working a few days ago and now it throws the error when trying to fetch the secret out of the vault. I am using the latest version of Azure's Python SDK which was...

ImportError: cannot import name 'BlobService' when using Azure Backend

I followed these instructions to set up Azure as my backend service: http://django-storages.readthedocs.io/en/latest/backends/azure.html Also added additional packages per this...

Cannot import name 'BlockBlobService'

I got the following error: from azure.storage.blob import BlockBlobService ImportError: cannot import name 'BlockBlobService' when trying to run my python project using command prompt. (The...

Docker build taking too long when installing grpcio via pip

I have a Dockerfile which installs a few packages via pip. Some of them are requiring grpcio, and it takes a few minutes only to build this part. Does anyone have a tip to speed up this...

Azure storage's Python module not found when running in PyCharm debugger

When I debug some code in PyCharm I encounter a module not found error, even though the package is installed and the import is valid: from azure.storage.blob.blockblobservice import...

The installed version of WinRM does not support transport(s) [u'']

I'm trying to configure a bunch of Windows machines through Ansible and installed pywinrm correctly but Ansible is throwing an error message. Command: ansible-playbook -i inventory/hosts...

How to fix ModuleNotFoundError in azureml-sdk when installed inside conda environment

I'm setting up a conda environment on Windows 10 Pro x64 using Miniconda 4.5.12 and have done a pip install of azureml-sdk inside the environment but get a ModuleNotFoundError when attempting to...

How to correctly import Azure SDK for Python 3.6

I am creating a flask app that can upload files to my azure blob. When I test the code locally on my python virtualenv, the app works perfectly. When I create a docker container and push the image...

Install azure-storage in Docker

I'm compiling some python code on a Docker file with some azure blob storage function (and therefore importing azure.storage.blob), but docker fails to install it. The line I'm using in the...

How to get rid of the error message in Powershell when listing more than 5000 blobs with Azure CLI?

For a cleanup script on some (+10k) blobs in a container in an Azure Storage account, we first select all blobs and count them using the following command: (az storage blob list --num-results *...

Version clash of pip packages, when doing conda env export

I am having problems when creating a conda environment from a .yml file I created previously. When running conda env create -f myenv.yml I get an error: Pip subprocess error: Could not find a...

Azure Functions Python blobTrigger How do I fix "Microsoft.Azure.WebJobs.Extensions.Storage: Object reference not set to an instance of an object."?

Update below with more detailed debug output I have successfully run Azure Functions using the local dev host in the past. I have not been able to get the blobTrigger working recently. I have...

How can I use GPUs on Azure ML with a NVIDIA CUDA custom docker base image?

In my dockerfile to build the custom docker base image, I specify the following base image: FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu16.04 The dockerfile corresponding to the nvidia-cuda base...

Azure BlobServiceClient gives import error (occasionally)

I get an ImportError with from azure.storage.blob import BlobServiceClient I realised however that the error occurs when I install the dependencies as pip install azure-storage-blob pip install...

Error: "Make sure to create your workspace using a client which support MSI" when deploying Azure ARM template for Machine Learning Services Workpsace

I'm currently trying to script our Azure Machine Learning infrastructure, using ARM templates and running through Terraform. In order to ensure that the template works, I'm first running it from...

Mounting of azure file share to azure devops pipeline is very slow

It currently takes me about a minute to mount an azure file share to the azure DevOps pipeline. I think, this is too long. My pipelines contains two steps for the mount operation: retrieve the...

Conda does not create environment

I am working on a shared project stored in bitbucket. I am trying to import the environment that it is used there. After I git clone, I have everything that I need in my PyCharm project folder....

python async upload_blob -- TypeError: object AccessToken can't be used in 'await' expression

I'm using Python 3.6.8 and the following packages: azure-common 1.1.25 azure-core 1.3.0 azure-identity 1.3.0 azure-nspkg 3.0.2 azure-storage-blob 12.3.0 The following line...

Azure python asyncio memory exhaustion in upload_blob function

I have an asyncio python azure script that uses multiple tasks to upload files to blobs from an asyncio queue. It works fine, at least up until the point where it uses up all available memory on...

ImportError: cannot import name 'BlockBlobService' from 'azure.storage.blob'

I am trying to convert the text files in my Azure blob container from ANSI to UTF-8 encoding without downloading the files locally using python. I am getting the following error when I try to...

Async walk_blobs throws "object AccessToken can't be used in 'await' expression"

I would like to asynchronously download blobs but even the very first step to list blobs throws exception. However listing blobs works if not asynchronous. Using Python 3.7.6 on Windows 10 and...

Import Module error in Azure Python function (Linux)

I have created Python queue trigger in my Windows machine using VS Code. To install modules I have created virtual environment and pip installed all required modules. I deployed this functionApp...

Error Installing Pyarrow with Python 3.7.4

I'm developing a python script to deploy an Azure Function App. For this reason I can't use another Python version to make this easier. In azure portal I get this error: Azure Function app pyarrow...

Error from Azure function: ModuleNotFoundError

I followed the official documentation to set up my requirements.txt file. My understanding was that the function should be able to use modules if they are in requirements.txt. Here is an example...

Getting error No module named 'azure.storage.blob.blockblobservice' while executing on server

I have a script that runs perfectly fine on my local machine using Anaconda from azure.storage.blob.blockblobservice import BlockBlobService I installed it via: pip install azure-storage-blob. I...

Unresolved import 'azure.storage.blob' when trying to use Python library azure-storage-blob

Following this URL as example: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python#list-the-blobs-in-a-container I'm trying to use Python library,...

Paginating Azure CosmosDB with Python SDK using continuation tokens

I am trying to implement pagination using APIs with Azure Cosmos Python SDK. From what I have read and understand, we need continuation tokens. However, I cannot find any function in the SDK...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

ImportError: cannot import name 'ServiceBusClient' from 'azure.servicebus'

I wanna run a simple Azure service bus program, I received the below error: ImportError: cannot import name 'ServiceBusMessage' from 'azure.servicebus' As I search on the internet, I should...

Incorrect SAS URL produced for blob when using generate_blob_sas()?

I am trying to retrieve the URL of a blob in a container of a storage account for an Azure US Government account. In particular, I am trying to return the URL of the most recently updated/uploaded...