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

How to get users in a group by group name in AZURE AD SDK java

I need to get users from a group, i get a group name instead of group id from UI. Is there a java sdk api to get users directly from group through the group name. I have the below code to get the users through the group id public List
Avinash Reddy
  • 2,204
  • 3
  • 25
  • 44
2
votes
2 answers

Azure ARM deployment access a resource from a different subscription when deploying a new resource

I am using an Azure service principal and C# Azure SDK to deploy this ARM template. The publicIPPrefixResourceId I am passing as a parameter is the ARM Id of the resource that is in a different subscription from where I am currently deploying to.…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
2
votes
1 answer

How to send a json object instead of a string with Azure Client SDK

I'm struggling with creating a message from a device to the IotHub in the correct format. I'm using the Azure Client SDK (Microsoft.Azure.Devices.Client) For better understanding lets start with a small example, we have the following string: var…
chris
  • 181
  • 2
  • 18
2
votes
1 answer

Writing file to Azure Storage (File Share)

Since Microsoft.Azure.Storage.File is deprecated we are trying to upgrade to Azure.Storage.Files.Shares. We were able to port our existing code to read files from the file share, but we are not being able to save changes to an existing file. Using…
Gustavo
  • 105
  • 1
  • 8
2
votes
1 answer

Azure IoT - resetting and clearing device twin

I am using the Azure IoT SDK for C. I need my device to be able to completely clear the reported properties on the device twin from time to time. In my device twin I have a small hierarchy in the reported properties which contains a list of items.…
Engineer999
  • 3,683
  • 6
  • 33
  • 71
2
votes
0 answers

Azure QnA maker fails to create a knowledge base by raising ExtractionFailure error code

We have the following code snippet that is supposed to create a knowledge base: var createKbDto = new CreateKbDTO { Name = request.Name, QnaList = new List(), Urls = new List
2
votes
2 answers

Can you add more Event Hub rules to a Shared Access Policy than one?

After I create my Event Hub, I am applying rules. Am I able to apply, for example, and Send and a Listen rule to the same shared access policy? The code I am trying to use seems to "overwrite" the previous rule. Is there a better way I should be…
TyngeOfTheGinge
  • 524
  • 1
  • 4
  • 14
2
votes
1 answer

Programmatically determining the child resources of an Azure resource

Given an Azure resource, e.g. a storage account: /subscriptions/.../resourceGroups/myresources/providers/Microsoft.Storage/storageAccounts/mystorageaccount Is there any way to programmatically determine that there are child resources under it, e.g.…
Mike Goatly
  • 7,380
  • 2
  • 32
  • 33
2
votes
2 answers

How to get the outputResources of a deployment using the fluent Resource Manager SDK?

When using the GET Deployments endpoint of the Azure REST API, it's possible to get details of a given deployment including the outputResources which lists the actual resources created from an ARM template deployment Unfortunately, I can't seem to…
chivano
  • 603
  • 1
  • 5
  • 13
2
votes
1 answer

Azure Usage and Cost of resources in a subscription

Is there any way we can get the cost of individual resources using Azure Python SDK[https://learn.microsoft.com/en-us/python/api/overview/azure/?view=azure-python]? I have used…
Varun
  • 119
  • 1
  • 1
  • 6
2
votes
1 answer

Get azure subscription id by storage uri

I need to check whether the provided blob is assigned to the organisation represented by tenant ID. Provided information is: - storage URI - SAS token My solution is to list all the subscription within the organisation, get the subscription of…
pawelen
  • 133
  • 1
  • 1
  • 5
2
votes
2 answers

Is it possible to return a KeyVaultClient with the Azure Python SDK method get_client_from_auth_file using a Service Principal?

Using the Azure Python SDK, I would like to return a KeyVaultClient using the get_client_from_auth_file method in order to get secrets from a KeyVault without going through a KeyVaultManagementClient. According to the documentation, it appears to…
2
votes
1 answer

Metadata fields not received from azure java sdk on a blob

In our Azure portal I have created a storage account and inside created a blob container and inside that a blob which is just a simple text file. I have also set the some random metadata fields on the blob seen here. In my java code when I access…
2
votes
3 answers

Retrieve custom data from azure linux VM

I have a question regarding accessing custom data from a Azure Linux VM after boot up. I am currently using the Azure GO SDK to programmatically create VMs which are based on CentOS Linux 7.5. For each VM, I am attaching a unique set of environment…
2
votes
1 answer

How do I upgrade an existing Cloud Service Project to use Azure SDK 3.0?

I'm migrating from VS2015 to VS2017, and updating a repo's solutions to be able to be compatible with VS2017. In the process, I'm also updating the Azure SDK version from 2.7 to 3.0. I'm setting up a fresh dev environment, and installed Azure SDK…
BobbyA
  • 2,090
  • 23
  • 41
1 2
3
23 24