Skip to content

Tag: azure

Running two files on a single project on PyCharm

I am currently developing a IoT sensor value simulator using the PyCharm IDE (along with pygame). Essentially, I am trying to produce/send data to Microsoft Azure IoT platform while there is a GUI available for users, in which they can see the temperatures of each sensor, change the sensor outputs, etc. Since…

Authenticating Azure CLI with Python SDK

I am writing some functions to extract data from Azure. I am using the Python subprocess library with the Azure CLI commands as they are easier and better documented thank the Python SDK. My question comes whether it is possible to combine the Azure CLI commands with the Python SDK to make the authentication …

How do i use GraphSON v2 instead of v3?

i am trying to run a piece of code in python which uses Cosmos DB from Microsoft Azure. I am currently using gremlinpython 3.2.6 and the latest version of Cosmos (default on microsoft azure) but there seems to be some compatibility issues between the two. When i run my code i get the following error; I have r…

How could I list Azure Virtual Machines using Python?

I’ve used the below code to get the Access Token from my Azure account. https://github.com/AzureAD/azure-activedirectory-library-for-python/blob/dev/sample/certificate_credentials_sample.py It’s working fine, I already got the token. However, how can I use this token to list all VMs running in that subscripti…

Python Azure Data Factory Update Pipeline

I want to use Python to add an activity to a pipeline in Azure Data Factory. With the following code I am replacing the actual activity but not adding a new one: This is the pipeline before running the code : After running the code: Expected : Answer Researched the statements in source code: So when you updat…