211 questions
0
votes
0
answers
97
views
Why does it take several minutes to start a job in Azure Machine Learning using the python SDK v2?
In the last months I have been using Azure Machine Learning using the Python SDK v2 to launch jobs on remote Compute Instances, sometimes exploiting the GPU-enabled computes. However, I noticed that ...
0
votes
1
answer
54
views
Azure - Python client for listing key vaults
I found 4 python libraries for working with key vaults:
admin
keys
certs
secrets
but I am missing an API in python to list all vaults. Samples and tests for the aforementioned libs always provide an ...
0
votes
1
answer
70
views
How to get existing OS disk & multiple data disk id for multiple vms with for loop from Azure Python SDK
How to get existing OS disk & multiple data disk id for multiple vms with for loop from Azure Python SDK
I tried different ways to get. But no luck
0
votes
1
answer
330
views
How to use both Service Principal and System Assigned Identity in Django on Azure Container Apps?
Before using Azure Container Apps (ACA), I deployed my applications on Kubernetes (AKS). In AKS, I only had to set environment variables for authentication, and the Python SDK for Azure would connect ...
0
votes
0
answers
68
views
Working with labeled dataset on azure ml studio and how to pass it to train yolo model
I am working on training yolov8 model using azure ml studio and I use data labeling tool to label my dataset but after this I have difficulty in understanding how this labeled dataset when exported (...
0
votes
1
answer
75
views
On Azure ML python 3.10-SDK V2 jupyter note, installation of XGBoost & sentence_transformers gets successful but import fails
pip install sentence_transformers, XGBoost & BS4, etc., are successful in the Azure ML Python 3.10-SDK V2 kernel Jupyter notebook, but importing the packages is failing.
pip install ...
0
votes
1
answer
64
views
How to enable replication for multiple VMs with existing OS disk & data disk using Azure SDK
How to enable replication for multiple VMs with existing OS disk & data disk using Azure SDK.
I tried to get details from multiple blogs. but its not helped out.
0
votes
0
answers
129
views
Is Microsoft Bot Framework Python SDK being retired?
Languages on Bot Framework SDK Documentation
Bot Framework SDK documentation
I'm reading the Microsoft Bot Framework SDK documentation and found this title confusing that communicates about the ...
0
votes
1
answer
321
views
Graph Api error : "Content type text/html does not have a factory registered to be parsed"
"I'm receiving this response. Could you please assist me in resolving the issue? I have already enabled Advanced settings and allowed public client flows.
Exception: Content type text/html does ...
0
votes
2
answers
100
views
Deployed Azure Python via github-actions does not find any package
When deployed via github-actions deploy.yaml
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Azure Login'
uses: azure/login@v2
with:
client-...
0
votes
1
answer
264
views
How to use Azure App Service Auth in web app to control blob access
Hoping someone can help me with some gaps in my understanding of how to use the azure app service authentication component. I'm trying to write a simple web app (in this case python/flask) that allows ...
1
vote
1
answer
68
views
Get all users and applications with Reader role under subscription in Azure Python SDK
I need to fetch users and applications assigned the "Reader" role under a specific Azure subscription using the Azure Python SDK. The AuthorizationManagementClient is being used along with ...
0
votes
3
answers
173
views
How to assign Reader role to user in Azure Subscription using Python SDK?
I’m trying to assign "Reader" role to user under Azure subscription using Azure Python SDK. I’ve found a way to do it using Azure REST API following MS documentation https://learn.microsoft....
0
votes
1
answer
931
views
How read excel file format in pyspark databricks notebook
How to read the xlsx file format in azure databricks notebook with pyspark programming. we are tried as below code but getting error.
import pandas as pd
spark.createDataFrame(pd.read_excel("/...
0
votes
1
answer
113
views
What API should I use to manage Alerts and Alert Rules in Azure?
Looking in Azure portal I see this:
Further I have run with great success the following cli commands:
az monitor metrics alert list --subscription "$sub"
az monitor activity-log alert list ...
0
votes
2
answers
523
views
Azure still using my old tenant ID for authentication
I had been using my Microsoft account for Azure and successfully authenticated using its credentials. I also created an Entra app in that account and set up permissions for it.
Recently, I created a ...
1
vote
1
answer
829
views
How can I keep alive Azure Service Bus client and sender instances for more than 10 minutes in Python SDK?
I'm currently working on integration of Azure Service Bus queue and custom gateway service. Every time service receives an event, it should send message to the dedicated queue.
I've managed to ...
0
votes
1
answer
244
views
Could not load file or assembly 'System.IdentityModel.Tokens.Jwt Azure function python
I have a python azure function app.
It was working fine, until this morning.
func start runs fine, but when I run the listed endpoints, it throws this error:
An unhandled host error has occurred.
[...
0
votes
1
answer
362
views
How to pass environment variables for a AzureML pipeline job using python sdk v2?
I am following the example from this link: https://github.com/Azure/azureml-examples/blob/main/sdk/python/jobs/pipelines/1a_pipeline_with_components_from_yaml/pipeline_with_components_from_yaml.ipynb
...
0
votes
1
answer
221
views
Adding members to MS Entra Group via MS Graph API fails via Python Azure Function App
Setting the scene: I'm trying to add members to a MS Entra Group by calling the MS Graph API from a Python application hosted on an Azure Functions App instance. The application runs on behalf of an ...
-1
votes
1
answer
363
views
How do i create an Azure function w. a blob triggered python function, from an Azure function
I am trying to automate the creation of a new Azure resource group, with storage and Azure function, from an admin Azure function.
So whenever i get a new customer, i want to send a http request, with ...
0
votes
1
answer
474
views
Create Pool in azure batch with user assigned managed identity
We are migrating our Python solution from Service Principal Name (SPN) to Managed Identity (MI) based authentication. We have made the necessary changes to the python code to enable authentication ...
0
votes
1
answer
181
views
how to update device twin using python?
I am currently trying to update a property in device twin using python. but unable to do it due to SSL error.
below is the code
from azure.iot.hub import IoTHubRegistryManager
import certifi
import ...
0
votes
1
answer
711
views
Azure pipeline exits with this error ##[error]Bash exited with code '5'. for python repo
I've created an azure pipeline by following the https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops#3-customize-your-pipeline
I've used same script mentioned ...
0
votes
1
answer
1k
views
Is there any way to read and process an azure blob as a stream using the python sdk without loading the whole blob into memory?
I'd like to be able to treat an azure blob like an IO object using the python SDK. As far as I can tell, this requires me to either:
a) use .readinto() to read the blob into an IO object (thus loading ...
0
votes
1
answer
560
views
Attempting to use the Azure Web App 'Identity provider' feature with a web app that uses the Python Azure SDK (azure.identity)
I'm attempting to build a web app for end users to manage their VMs in Azure (giving them access/visibility to VMs based on their existing permissions). I'd like to take advantage of the identity ...
0
votes
1
answer
109
views
Is there any azure api which returns the compatibility of VM Size to disk supported
I am writing a code to create dynamic VM's on azure based on certain values of CPU/Memory selection, so I have written code to hit
"https://management.azure.com/subscriptions/{SUB_ID}/providers/...
0
votes
2
answers
408
views
Cannot get Azure subscriptions using Azure Python SDK
I can get Azure subscriptons list using REST API.
However, when I'm switching to Azure Python SDK, there seems to be some problems.
This is the code so far:
from azure.identity.aio import ...
0
votes
1
answer
160
views
How to get log analytics workspace usage details via api
I want to fetch the usage details for each month of an azure log analytics workspace, same as below. Is there any API or which 'metric' that can be used to get the details? I checked the 'ingestion ...
0
votes
1
answer
278
views
Azure storage account shared access key used in ChainedTokenCredential for client authentication in Python SDK?
I've managed to authenticate into my data lake in my storage account fro python using shared access key, but now I'm trying to chain together multiple authentication methods, namely the Managed ...
0
votes
1
answer
99
views
How to filter virtual machines by running state in Python SDK?
I have a Python script that lists all VMs in a specific Azure resource
group. The script collects and prints details such as VM name,
location, size, and OS type.
Here is the current script:
from ...
1
vote
3
answers
408
views
Can I use Azure's Python SDK to control a UAMI and interact with VMs?
I am developing a command line tool which will work across different cloud platforms to read, start and stop (deallocate) virtual machines. I have this working in AWS with EC2 instances, using boto3, ...
0
votes
1
answer
188
views
How to trigger the `Blob Renamed` EventGrid Event using Azure Python SDK?
When looking at the possible event types for an EventGrid Subscription, one is Blob Renamed.
How is this event triggered when using the Azure Python SDK?
I don't see a Rename Blob method in the SDK.
0
votes
1
answer
545
views
Azure DevOps Python correct scopes for getting a token
I'm trying to get pull requests via the Azure DevOps Python API. The code below works, but I'd rather not use the /.default scope because I only need a read-only call. The issue is if I put any other ...
1
vote
1
answer
318
views
Create Azure service principal using python SDK
Is there currently any way to create a service principal using python SDK in azure?
I have tried doing it with azure-graphrbac but it currently is deprecated and it fails to load ...
1
vote
1
answer
2k
views
Connect to Azure DevOps using Python with InteractiveBrowserCredential
I'm trying to read pull requests using the Azure DevOps Python API. I want to run something like this from the command line. The code below opens up a browser, but I don't know if I'm going about this ...
0
votes
1
answer
79
views
Csv files getting uploaded to local drive rather than storage account using python function app
I have an azure function app in python with a blob trigger. It will trigger a function when a db file is uploaded in the following path in my storage account:
abc360/sqlite_db_file/{name}.db
The ...
0
votes
1
answer
1k
views
Azure Python Function V2 Programing Model not showing function even after Deployment in Azure
I wanted to deploy CRON Timer Trigger using Azure Function in Python. I tried to deploy it using VS Code.
Here are the steps I followed:
Step 1: Installed all the following prerequisites:
Installed ...
0
votes
1
answer
167
views
Can I define a node preference for each task?
So here is my scenario:
Let's say I have 3 nodes in my batch pool. I submit 1 job with 9 tasks.
I want task 1,2 and 3 to be executed one after each other on the same node. The same goes for task 4-6 ...
0
votes
1
answer
216
views
Append Filename to File in Azure Storage
I am a bit stuck in a simple problem but I seem to have lost grey matter and keep looping (which is exactly a problem here). I am trying to upload the files from local to azure storage and then append ...
0
votes
1
answer
117
views
How to use parameter in Azure sql_input with LIKE SQL command
Working in V2 Python Cloud Function in Azure, I am trying to implement a parameter from URL to a query to Azure SQL database. I am unable to do so when using SQL LIKE.
I have managed to set up a ...
1
vote
1
answer
904
views
Error on Hybrid Search using Azure AI Search
I've been getting the following error using python sdk and front end although I believe I have my schema set up "Searchable" correctly. Please advice, thank you.
"The 'search' ...
0
votes
1
answer
93
views
Azure hide not mine logs - see only my logs
I write in python and use logging.info() to print my logs.
When I enter log stream in azure functions I see many other logs among my logs.
It makes the debugging harder.
For example I have those ...
0
votes
1
answer
214
views
Why do we need to open a file to upload it to Azure Blob storage?
I'm new to Azure and am trying to upload files (in tens of thousands) to Azure blob storage using their Python SDK. All examples that I came across on the web open a file before uploading it:
https://...
3
votes
2
answers
1k
views
Invoke AzureML Batch Endpoint from ADF
We have deployed our ML pipeline (using SDKV2) on batch endpoints using PipelineComponentBatchDeployment. This pipeline takes multiple arguments (all of str type). How can we trigger or invoke the ...
1
vote
1
answer
145
views
Get the Services and it names List By Location in Azure Subscription
I'm able to get all the available locations in my current subscription using REST API now iam trying to get the services and it names in specified location including Resources Groups, Vnets, Vm's etc ...
0
votes
1
answer
255
views
Cannot mimic manual document split in Azure, programatically, using Azure SplitSkill
I am going from a manual setup of my RAG solution in Azure to setting up everything programmatically using the azure python sdk. I have a container with a single pdf. When setting up manually is see ...
0
votes
1
answer
2k
views
Error adding skillset to Azure Search Indexer
I am trying to add a custom skillset to my indexer. I am however facing some issues which I don't know how to solve. My skills:
# https://learn.microsoft.com/en-us/python/api/azure-search-documents/...
0
votes
2
answers
180
views
Azure python api for compute images get(). Adding special character * to the argument 'image_name'
I am using Azure ComputeManagementClient.images.get() function to search and match images based on 'resource_group_name' and 'image_name' parameter and print the image details.
Azure python sdk
Azure ...
0
votes
1
answer
739
views
Collecting data for Custom Events of Application Insights using Python
I am doing project on Python. Currently it uses OpenCensus AzureMonitorTraceExporter as logging handler to write data to Application Insights. It is important for the client to use Usage section of ...