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

Azure Recovery Backup Recovery: {CloudError}AzureError Resource Not Found

with respect to Azure Recovery Services Question, I am using this code to fetch details of all vaults inside resource vault services: all_vault_in_rsv = [] def all_vaults(): for rsv in res_vault_grps: all_resources =…
1
vote
2 answers

Setting UserRights in Azure AD MIP SDK doesn't let me add a global "AuthenticatedUsers"

We are using the Azure MIP SDK to encrypt documents. The API is pretty simple and the samples are good when you use the template functionality. But... We want to generate the Protection Descriptor ourselves. Works well with users emails. But in all…
1
vote
1 answer

Create a Azure Functions with the Java SDK

I want to create an Azure Functions with the Java SDK but I have some problem defining the trigger, my code to create the functions app is: FunctionApp function = azure.appServices().functionApps().manager() …
Victor
  • 31
  • 3
1
vote
1 answer

Azure Spot Instance Creation issue

I am trying to create a spot Instance on Azure Cloud using the python-sdk , I followed the documentation to set the priority and billing profile and eviction_policy , but when I check on the console it give Azure Spot: N/A , attached my log so you…
AhMaD AbUIeSa
  • 805
  • 1
  • 12
  • 21
1
vote
1 answer

UE4 and Azure storage sdk

I am trying to use Azure storage sdk C++ library with Unreal Engine 4 to upload images to the Azure cloud. Library is built with vcpkg and dlls are linked dynamically. Here is a simplified example of the code I…
1
vote
0 answers

Azure Java SDK: container with multiple volumes

I need to mount 2 separate directories as volumes to a newly creted container. So far I've found the way to mount only one volume since there's no way to add a file share volume via withNewAzureFileShareVolume more than once. Here's my…
iozee
  • 1,339
  • 1
  • 12
  • 24
1
vote
4 answers

How to obtain QueueDetails from a servicebus queue?

I'm using azure-sdk-js for reading and sending messages to Azure Service Bus Queues. I've successfully managed to connect to queues, reading messages, reading DLQ and sending messages. I would like to extend this to show information about how many…
simonauner
  • 1,021
  • 1
  • 8
  • 10
1
vote
1 answer

Is it possible to create a new CosmosDB account using @azure/cosmos sdk?

Pretty sure this is a trivial question but couldn`t find any clue on the @azure/cosmos package documentation. I'm searching for something like we have in Azure CLI, this is a sample, but in @azure/cosmos package. More help of what I want in az…
jaloplo
  • 941
  • 2
  • 12
  • 32
1
vote
1 answer

Scrambled code in Azure Blob static website

I'm recently trying to deploy my Angular site to Azure Static Website but found some problems. As far as I can test, using ng build and upload all the files to Blob storage and the site works well, but if I compress my files to save more spaces,…
Tim Lyi
  • 11
  • 1
1
vote
1 answer

Arguments are passed incorrectly using argparse

I do not understand why arguments are passed incorrectly: import argparse parser = argparse.ArgumentParser() parser.add_argument('--start_date', type=str, default='2016-07-01T00:00:00Z', dest='start_date') parser.add_argument('--end_date',…
Fluxy
  • 2,838
  • 6
  • 34
  • 63
1
vote
2 answers

Using Python packages in Azure function code

I've created an Azure function and want to be able to use various packages in the Python code for the function; take Numpy, for example. Obviously, the code is not going to run from my local machine once it's published to Azure. This means I can't…
supernova
  • 149
  • 4
  • 17
1
vote
2 answers

Get private IP addresses for VMs in a Scale Set via Python SDK (no public IP addresses in Scale Set)

I'm trying to get a list of private IP addresses for all VMs in a Scale Set (none of the VMs deliberately has any public IP addresses). I've found how to get this from az cli as follows: az vmss nic list -g ResourceGroup --vmss-name ScaleSetName…
VS_FF
  • 2,353
  • 3
  • 16
  • 34
1
vote
1 answer

module 'azure.common.credentials' has no attribute 'signed_session'

I need help understanding the exception I'm getting from Azure SDK for Python. So I'm trying to use the following code to get a list of public IPs from Azure: import azure.common.credentials as creds from azure.mgmt.subscription import…
supernova
  • 149
  • 4
  • 17
1
vote
1 answer

Saving output while tasking is running in Azure Batch (using python SDK)

I want to save the output of a task while it is running. I was able to save the output only after the task completion. I found in the C# azure sdk documentation that it has a SaveTrackedAsync function that enables to track a file and save it to a…
Gustavo
  • 58
  • 5
1
vote
1 answer

Azure SDK C# - Plan Virtual Machine Auto Shutdown

I'm looking for documentation / examples on how to plan the shutdown of an Azure virtual machine from the Azure C# SDK. The idea is that on creating a VM from the SDK I want set a time when the VM will automatically shutdown. I don't seem to be…
kyuz0
  • 101
  • 4