333 questions
0
votes
0
answers
38
views
Can't list blobs in azure blob container even with shared access signature token
I already managed to create an account shared access token not a user delegated token
from azure.identity import DefaultAzureCredential, ClientSecretCredential
from azure.storage.blob import ...
0
votes
1
answer
166
views
How to Monitor Azure Automation Python Runbook Status via Python Code?
I'm looking for a way to monitor the status of an Azure Automation Python runbook through code, so I can create a function to send alerts using a specific template like this:
Azure Automation Runbook ...
0
votes
1
answer
329
views
Filter on Azure Search AI vector db based on metadata using Python SDK
I am using Azure Search AI service to store my documents chunk along with some information inside the metadata. However when I try to filter on metadata the filter does not work.
Here is an example of ...
0
votes
1
answer
915
views
Is there a safer way to use the WorkloadIdentityCredential Python class in Azure SDK?
I previously was using the ClientSecretCredential class to authenticate with the Azure SDK but the Service principals changed to a workload identity federation model, because of this I switched to ...
0
votes
1
answer
292
views
Azure Python SDK - how can I know the latest API version for a resource ID?
I'm using the python Azure SDK, and for things like subnets, ipConfiguration objects will have a generic resource ID for the attached device - sometimes it's a NIC, or a PEP or something else. I know ...
2
votes
1
answer
2k
views
Azure Container access via Python SDK fails with AuthorizationPermissionMismatch but I am owner
I'm trying to list the blobs in a container in Azure Storage in a python script using the Azure SDK.
However, I'm getting the error "AuthorizationPermissionMismatch".
This surprises me, ...
0
votes
2
answers
245
views
Get all VMs with Monitoring Insights enabled
In the Azure portal, I can check/enable VM Monitoring Insights:
In the portal, we can get a list of VMs that are monitored here: https://portal.azure.com/#view/Microsoft_Azure_Monitoring/...
1
vote
1
answer
573
views
Update Azure Machine Learning Compute Instances with Python SDKv2
At first, I have some terraform code that will deploy compute instances for AML. But there's a lack of update of the terraform code so we can not add the option of schedules and auto shutdown. 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 ...
0
votes
1
answer
539
views
How do I set up the default LLM_RAG_CRACK_AND_CHUNK_AND_EMBED setup for my existing services from a python script?
I see that there is a default setup for this here. How can I set this up for my existing services? Could anybody point to the right tutorial/template? I have the following piece of code:
from msrest ...
0
votes
1
answer
710
views
How to set authority to request token for the Microsoft Graph API?
I am using azure.identity.aio python SDK to get access_token. For that I use ClientSecretCredential() class. This is current code that I have:
credential = ClientSecretCredential(tenant_id=tenant_id, ...
0
votes
1
answer
542
views
Consumption Client Usage Details Using Python SDK for Python
I am using the below code to fetch Usage details from Azure according to my requiremnet. I want to fetch usage details for last year but it is fetching from Jan 1 2024 by default. Can anyone tell me ...
1
vote
2
answers
335
views
Can´t import "ApplicationsRequestBuilder" method in python using Azure SDK
Following the official documentation, to list app registrations que must use "ApplicationsRequestBuilder", but there is no info about how to import it.
My imports are:
import pyodbc
import ...
0
votes
1
answer
1k
views
Queue connect issue. QueueServiceClient.from_connection_string(conn_str=connect_str). The MAC signature... not the same as any computed signature
I am trying to follow the Microsoft queue quickstart that can be found here.
Since I get an error creating a queue, I am attempting to use this method:
connect_str = "<my connection string ...
0
votes
1
answer
642
views
How can we write something like unit tests for testing Azure policies without actually creating resources?
I am currently working on a project where the goal is to test Azure policies before deploying them, the closest I came across this article https://charotamine.medium.com/azure-policy-what-if-you-test-...
0
votes
1
answer
184
views
How to specify availability zone when creating VM through Azure SDK
I'm using the ComputeManagementClient in Azure's Python SDK to create a virtual machine. (Specifically, begin_start in VirtualMachinesOperations, found here.) However, I don't see an option to specify ...
0
votes
1
answer
214
views
Issues with serialization of pipeline json from Azure SDK for python
I'm trying to extract the JSON for pipelines in a certain resource group. The issue I'm running into is when I look at the JSON given by the code below (specifically the JSON for the activities in the ...
0
votes
1
answer
920
views
Azure Python SDK: Get Role Assignment Type (eligible vs active)
Using the Azure Python SDK, for each role assignment to a resource, I want to get the assignment type i.e. eligible assignment or active assignment.
The RoleAssignment Class does not provide this ...
2
votes
1
answer
2k
views
ImportError: cannot import name 'RequestsTransport' from 'azure.core.pipeline.transport'
I have a python program I am trying to run in a Docker container, that is consistently throwing an import error.
The program file looks like this:
import logging
import sys
from azure.storage.blob ...
0
votes
1
answer
90
views
Is it possible to create a dataflow without giving script lines using azure sdk in python?
Is it possible to create a dataflow without giving script lines using azure sdk in python? if yes please share a sample code creating a dataflow contains source, transformation and sink.
I need ...
1
vote
1
answer
8k
views
Managed Identity Not Assigned to the resource
I want to do various VM operations like starting a VM, deallocating it without manual login step using Azure python SDK. To do that, I have to use an user-assigned managed identity. So I created an ...
0
votes
1
answer
433
views
Azure Datalake Gen2 Rename File Issue
Describe the bug:
Utilizing the DataLakeServiceClient, I am trying to rename files after they have been unzip in Azure Synapse notebooks, but I have been successful up until the point of renaming (...
0
votes
1
answer
217
views
How to unzip a blob programmatically using Azure Data Factory
I am following the quickstart tutorial on using the python azure sdk to copy a blob from one container to the next. This works in transferring the blob, but I'd like the blob in the receiving/sink ...
2
votes
1
answer
2k
views
Using the right api_version of the azure SDK
I am trying to verify the existence of some resources in my tenant.
I use the ResourceManagementClient to do so, either the check_existence_by_id method or get_by_id as described in this issue.
My ...
0
votes
1
answer
597
views
Create an AzureBlobDatastore() with SDK-V2
I am trying to create an AzureBlobDatastore() via the azure-sdk-v2. Previously, I successfully managed to perform the same operation via azure-sdk-v1 (from tutorial link in the next paragraph).
I am ...