Questions tagged [azure-sdk]

Use this tag for questions that has to do with the several SDKs and command-line tools, provided by Microsoft Azure.

Azure SDK is an additional set of templates and tools that help you access even more cloud resources and services to improve your Azure development experience. Use these tools to deploy infinitely-scalable applications and APIs, configure diagnostics, create and manage app service resources, and more.


Source: Microsoft Azure

353 questions
1
vote
1 answer

How to view list of azure subscriptions a Service principal has contributor access to?

I have a SPN/AppRegistration, that has contributor access to subscription 1, 2. This SPN will be used by an external service to access the subscriptions1,2 to deploy resources. How can this external service list all the subscriptions that the SPN…
1
vote
1 answer

What is Azure track2 SDK?

In release notes of Azure CLI, I see references to "track2 SDK", which I don't understand. When I tried googling, I found Azure SDK API review process, which mentions that only track 2 libraries are reviewed by architecture board, but that does not…
Palec
  • 12,743
  • 8
  • 69
  • 138
1
vote
1 answer

List all file share from storage account using azure .net SDK or Fluent API?

I want to show all file share from storage account. I have storage account dropdown so whenever user will select particular storage account name i want to fetch all file share name associated with selected storage account. I want any Fluent API or…
DnyaneshSurya
  • 187
  • 1
  • 1
  • 14
1
vote
1 answer

Get Azure Active Directory refresh token for ACR

I've been trying to use the AAD interactive authentication flow in order to list the images in a given Azure Container Registry instance (as detailed here), which requires both the AAD access token and the AAD refresh token in order to get the…
1
vote
1 answer

ITrustFrameworkPolicyCollectionPage "Can not be resolved to a type"

I am trying to use Graph APIs to get list of "Azure B2C AD TrustFrameworkPolicy" in Java These are my dependencies in the POM com.microsoft.graph
1
vote
1 answer

How to generate Security PIN from Recovery Services vault using .Net SDK?

Currently I am trying with below code but getting System.NullReferenceException: 'Object reference not set to an instance of an object.'. using Microsoft.Azure.Management.RecoveryServices.Backup; public static ISecurityPINsOperations SecurityPINs {…
DnyaneshSurya
  • 187
  • 1
  • 1
  • 14
1
vote
2 answers

Create and Delete Availability Test using Azure SDK C#

Cannot find a way how to create or delete Availability Test with C# Azure SDK. I don't see anything in the fluent SDK and traditional either. I've managed to create Availability Test programmatically by using ARM template and running it with C#…
elklusek
  • 49
  • 7
1
vote
1 answer

How do I successfully enable the diagnostic settings of windows virtual machine using Rest API?

Enable diagnostic by Azure REST API: I'm using the Azure REST API to enable diagnostic. Below is the request that I send to Azure. Method: PUT HEADERS: Authorization:Bearer {Access_token} Content-Type:application/json Request…
Param
  • 41
  • 1
  • 12
1
vote
1 answer

Which Azure ServiceBus SDK should be used?

At the time of this post there are two Azure Service bus SDKs sitting within sdk/servicebus: Microsoft.Azure.ServiceBus Azure.Messaging.ServiceBus They have both been updated very recently (past week). This ms doc (written two weeks ago)…
Mark Cooper
  • 6,738
  • 5
  • 54
  • 92
1
vote
2 answers

Unable to access the azure data lake contents through network proxy using Azure SDK for Java

I am trying to list out the files in azure data lake Gen 2 container using azure sdk for java API through network proxy, but getting connection timed out errors every time. Followed the sample code from azure website itself. Sample Code Link::…
1
vote
2 answers

How do you turn a principal_id into a username using the Azure Python SDK

Using the Azure Python SDK I'm trying to build a script that will audit our various user role authorizations. I'm able to pull a list of role assignments using the following: authorizationClient = AuthorizationManagementClient(credential,…
1
vote
0 answers

Azure Function App Cannot Read Base64 Encoded Message with Queue Trigger

I have two applications. The first one is a service written in C++ that produces messages to an Azure queue and a function app written in C# that consumes those messages. I write to the queue with Azure SDK void send_to_queue (const string &…
1
vote
1 answer

Is there a way to skip errors when doing Azure Move Resources?

I'm trying to move a large number of Azure Resources from Azure Resource Group to Azure Resource Group. My code looks like this: for i in resource_client.resources.list(filter=f"tagName eq 'run_id' and tagValue eq '{RUN_ID}'"): print_item(i) …
aronchick
  • 6,786
  • 9
  • 48
  • 75
1
vote
1 answer

How to upload a batch of images to Azure Custom Vision using JavaScript

I want to upload a batch of 64 images to Custom Vision using the JavaScript SDK. const files: ImageFileCreateEntry[] = [] while (i < 64) { const data = fs.readFileSync(`${sampleDataRoot}/${tag.name}/${file}`) const fileEntry:…
1
vote
1 answer

Display files from Azure Blob Storage by Azure function

I'm trying to get files and display them in my browser from Azure Blob Storage via an Azure function. I could manage to download the files when I navigate to the url but I couldn't display them as a static file/image in my browser. I just want to…