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
23
votes
4 answers

How to create ServiceClientCredential to be used with Microsoft.Azure.Management.Compute

I am trying to programmatically retrieve the HostedServices from Microsoft.Azure.Management.Compute using C#. This requires ServiceClientCredential and I do not know how to get it. How can I instantiate this class? I am able to get them using…
user5748653
  • 231
  • 1
  • 2
  • 5
18
votes
3 answers

Using authentication token in azure sdk fluent

To authenticate with Azure in azure sdk fluent nuget, there is a method that uses client id and secret as below var azureCredentials = new AzureCredentials(new ServicePrincipalLoginInformation { ClientId = "ClientId", …
Saravanan
  • 920
  • 9
  • 22
10
votes
1 answer

Is there a limit on the amout of Azure Blob Storage SAS keys generated per hour?

According to this article detailing the limits of Azure Storage, there is a limit on the number of Azure Resource Manager requests that can be made. Additionally, this article details limits of the ARM API. A post here claims they ran into issues…
9
votes
2 answers

Configuring CORS in a Terraform Azure App Service Resource

I have the following Terraform resource for configuring an Azure app service: resource "azurerm_app_service" "app_service" { name = "Test-App-Service-3479112" location =…
Preston Martin
  • 2,789
  • 3
  • 26
  • 42
6
votes
4 answers

Download blob using Azure Blob storage client library v12 for .NET

I am using Azure.Storage.Blobs version=12.4.1. I have a REST endpoint that I want to use to download blobs from a storage account. I need to stream the result to a HttpResponseMessage and I do not want to use a MemoryStream. I want to stream the…
Angela
  • 477
  • 1
  • 10
  • 20
6
votes
1 answer

Azure function is not triggering on scheduled time

Note: Even though it may seem duplicate, My issue is different and I request you to read complete description before hastily marking the question down just by reading Question title. I opened "Azure function is not triggering on scheduled time "…
Karan Desai
  • 3,012
  • 5
  • 32
  • 66
5
votes
2 answers

Create LogicApp and API Connections ARM Template using DotNet SDK

I have created Azure Logic App using Dot.Net SDK. Logic App created successfully but for Trigger and Action i want to use existing Connector. I have manually created connector to Azur Portal. I am passing that Connector's APIConnection or Id to…
5
votes
1 answer

Programmatically get the amount of instances running for a Function App

I'm running an Azure Function app on Consumption Plan and I want to monitor the amount of instances currently running. Using REST API endpoint of format https://management.azure.com/subscriptions/{subscr}/resourceGroups/{rg} …
Mikhail Shilkov
  • 34,128
  • 3
  • 68
  • 107
5
votes
2 answers

How to get public IP of Azure VM using Azure SDK

For a specific VM, I want to be able to retrieve the public IP address. I know how to get all public IP addresses for a resource group, I also know how to get a nic-id for a specific VM - but I can't figure out how to connect the two. This is what I…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
5
votes
3 answers

Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'

I am in the process of creating Azure Resource Manager deployment templates for my project using the Azure Resource Group Project in Visual Studio 2015 project templates. I successfully managed to create the projects before. But today, I updated the…
4
votes
1 answer

How to find out if Azure Virtual machine is (un)managed?

How to tell if Virtual machine is (un)managed? Meaning whether VM has only (un)managed disks since those cannot be mixed (to my knowledge). I was originally using Azure Fluent SDK. But I am having some trouble with that and there are even some…
robot40q
  • 101
  • 5
4
votes
1 answer

Python class self value error, Expected type 'str' got Tuple[str] instead, azure ClientSecretCredential

I've created a class and trying to assign one of its values to something that expects a string, however it is saying it is getting a Tuple[str] instead, and I don't see how? from azure.identity import ClientSecretCredential class…
Ari
  • 5,301
  • 8
  • 46
  • 120
4
votes
1 answer

Creating Azure BlobClient from Uri and connection string

I want to create a Azure SDK BlobClient knowing the blob Uri. I can do it like that : StorageSharedKeyCredential storageCredential = new StorageSharedKeyCredential("devstoreaccount1", "account key"); BlobClient bl = new BlobClient(new…
Sam
  • 13,934
  • 26
  • 108
  • 194
4
votes
1 answer

Is Pulumi that magical when compared to using Azure .NET SDK?

I'm with a dilema here about which SE site to ask this question so please help me out if it should be somewhere else. I've been looking into Infrastructure as Code solutions. Didn't like Terraform too much. The lack of intellisense makes…
Fabio Milheiro
  • 8,100
  • 17
  • 57
  • 96
4
votes
1 answer

Accessing Key Vault with @azure/identity and get error 'Request is missing a Bearer or PoP token Error 401'

I'm trying to retrieve some secrets from Azure's keyvault but I cannot seem to authenticate using @azure/identity module. Versions: "@azure/identity": "^1.0.0-preview.6", "@azure/keyvault-secrets": "^4.0.0-preview.9", I have an azure functions app…
1
2 3
23 24