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

Unable to upload to blob storage, missing Access-Control-Allow-Origin header

Using the @azure/storage-blob module in the browser, it's not possible to upload to azure storage directly. It complains about a missing request header. The upload is done from within a ReactJS app running as an Office Add-in. As required by…
4
votes
5 answers

Python Azure sdk: How to retrieve secrets from keyvault?

I need to retrieve secrets from keyvault. This is my code so far: from azure.mgmt.keyvault import KeyVaultManagementClient from azure.common.credentials import ServicePrincipalCredentials subscription_id = 'x' # See above for details on creating…
90abyss
  • 7,037
  • 19
  • 63
  • 94
4
votes
1 answer

Obtaining Azure Access Token for German Cloud

I have a small program which fails while trying to obtain the Access Token for the Azure German Cloud public static String generateAccessToken(AzureAccount accountValue) throws MalformedURLException, InterruptedException, …
4
votes
3 answers

Show azure cost analysis data using Azure billing API/SDK

In Azure portal ,if one subscription is selected ,the cost analysis can be viewed like the following screenshot I want to programmatically fetch the information the like the one displayed above may be using using some python SDK API/REST API. If…
Soumen
  • 121
  • 1
  • 3
  • 14
3
votes
2 answers

Running Azure SDK for Go return an error: MSI not available

I am trying to run Golang Azure SDK code to get a list of RGs in my subscriptions but I am getting the following error: 2022/01/22 20:25:58 MSI not available exit status 1 import ( "context" "fmt" …
Renm
  • 717
  • 3
  • 10
  • 20
3
votes
1 answer

Azure : Permission for Service Principal to get list of Service Principals

I am using the Fluent Azure SDK for .NET to try fetching the list of all service principals in the tenant. var authenticatedContext = Azure.Authenticate( await SdkContext.AzureCredentialsFactory.FromServicePrincipal(aadClientId,…
Kiran Ramesh
  • 345
  • 3
  • 15
3
votes
1 answer

NodeJS for Azure CLI command: az resource show $resourceID

I'm trying to figure out if resources exist in Azure by using their resource ID. The Azure CLI command would be az resource show $resourceID. My application is in NodeJS. Is there some equivalent in NodeJS I can use in my application? If not, is…
3
votes
0 answers

How to find backup policy details attached to a VM in Azure using Azure python SDK?

How can I fetch the VM backup policy details for VM running in Azure cloud using Azure python SDK? Also, Is there any way we can fetch VM start/stop schedule? In Azure portal, I can see backup policy detail inside VM operations section.
3
votes
5 answers

Using Azure Key Vault and Active Directory to Retrieve Secrets

For a Python code base I would like to have developers accessing application secrets using Azure Key Vault, with the idea that when we deploy, the application also should be able to connect. Hence, I'm thinking Active Directory. However, I can not…
3
votes
2 answers

Microsoft Azure Functions Nuget Package Prevent NET Library From Packing Into A Nuget

I have a NET Library project that targets net462 that includes a Microsoft.NET.SDK.Functions Nuget package. Problem is that when I pack my project into a Nuget library, it all succeeds (clean,restore,build,pack) except no .nupkg is created. If I…
jn1kk
  • 5,012
  • 2
  • 45
  • 72
3
votes
1 answer

Gathering information about vm's in a resource group

Would someone be able to share or point to some sample code which basically extracts the information in the following link (https://learn.microsoft.com/en-us/rest/api/compute/virtualmachinesizes/list) from each vm in a resource group? Thanks!
crypticgamer
  • 101
  • 7
3
votes
1 answer

How to specify CORS settings when creating Azure Storage account from Azure Management Fluent

I'm using Azure Management Fluent library to create storage account. Something like that: var storageAccount = await azure.StorageAccounts.Define(accountName) .WithRegion(azureDefaults.Location) …
trailmax
  • 34,305
  • 22
  • 140
  • 234
3
votes
1 answer

Cannot package Microsoft Cloud Service project, causes "Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService' error

I am running Visual Studio 2013 and a cloud service project using Microsoft Azure SDK version 2.5 that can't be upgraded to 2.9. It can't be upgraded because it uses Azure In-Role Caching which no longer works in Azure 2.9. It appears that it can't…
3
votes
1 answer

Azure KeyVault iterate over all secrets in a vault

For the sake of simplicity let assume I want to build a dictionary from all the secrets in specific vault with the Secret Name and the Secret Value, using Azure REST API. The problem I'm facing is that the Get Secrets API call returns…
Shai Asher
  • 80
  • 6
3
votes
1 answer

Azure SDK for Node JS not working in Azure worker Role

I am using this piece of code to call the service bus queue from my node.js file running in Azure Worker Role . var azure = require('azure'), config = require('./config'); var serviceBusClient =…
1
2
3
23 24