azure-sdk

AzureBlobStorage Connector - CreateFile/DeleteFile - Id, relationship with Azure Storage Blobs client library for .NET

廉价感情. 提交于 2021-01-29 09:27:03
问题 I have a powerapp using the AzureBlobStorage Connector(the connector) . However, this app has to interact with data that is being bulk uploaded using the Azure Storage Blobs client library for .NET (the api). When you create a blob using the connector you get and Id which can then be used to Delete the blob. However, when creating blobs with the api I cannot see how I can get that ID (you just use the blobid which is the filename). Hence data that is being bulk created cannot be deleted in

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

别来无恙 提交于 2020-12-15 04:56:00
问题 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, subscription_id) roles = authorizationClient.role_assignments.list() This works, and I get a list of dicts that seems to have every piece of info I need except the principal_name. Example response: {'additional_properties': {}, 'id': '/providers/Microsoft

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

别来无恙 提交于 2020-12-15 04:54:50
问题 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, subscription_id) roles = authorizationClient.role_assignments.list() This works, and I get a list of dicts that seems to have every piece of info I need except the principal_name. Example response: {'additional_properties': {}, 'id': '/providers/Microsoft

How can I get the list of Azure Regions in C#?

∥☆過路亽.° 提交于 2020-07-23 18:08:28
问题 The Azure SDK for Java has an enum with all of the Azure locations, public and national. Is there similar functionality available for C#? It would be cleaner than using strings. 回答1: Is there similar functionality available for C#? Yes, please refer to Microsoft.Azure.Management.ResourceManager.Fluent, we could get source code from github. More details please refer to screenshot. demo code: string region = Region.AsiaEast.ToString(); 来源: https://stackoverflow.com/questions/44770406/how-can-i

How can I get the list of Azure Regions in C#?

余生颓废 提交于 2020-07-23 18:06:50
问题 The Azure SDK for Java has an enum with all of the Azure locations, public and national. Is there similar functionality available for C#? It would be cleaner than using strings. 回答1: Is there similar functionality available for C#? Yes, please refer to Microsoft.Azure.Management.ResourceManager.Fluent, we could get source code from github. More details please refer to screenshot. demo code: string region = Region.AsiaEast.ToString(); 来源: https://stackoverflow.com/questions/44770406/how-can-i

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

情到浓时终转凉″ 提交于 2020-06-28 08:10:22
问题 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 Microsoft, CORS have been enabled on storage account for blobs. I tried finding a way to add custom HTTP Headers however, none worked. Here's the upload code import { Credential, BlobServiceClient} from "@azure/storage-blob/browser/azure-storage-blob.min

Show azure cost analysis data using Azure billing API/SDK

孤街浪徒 提交于 2019-12-25 12:00:14
问题 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 anybody has any experience/idea on this ,please help. After going through replies ,I have gone through the Azure Billing Rest API and I am now able to call the Usage Aggrgate and RateCard related Rest APIs. Following are the results of those REST

How Storage API can be used to get Azure Classic VM metrics?

巧了我就是萌 提交于 2019-12-18 09:18:07
问题 Can we collect metrics for Azure Classic VM using Storage API or is there any other way to get the metrics for Azure Classic VM please suggest. 回答1: To get the Azure VM metrics from a Azure Storage Service, you need to enable Diagnostics and configure the Storage Account on Azure portal. After that, you will find that multi tables will be created to store the metrics. The tables are with the following naming conventions: WADMetrics : Standard prefix for all WADMetrics tables PT1H or PT1M :

Fault tolerance and log the incompatible rows in Azure Blob storage

柔情痞子 提交于 2019-12-13 09:51:03
问题 Customer 's requirements: using use azure data factory to import csv file in blob storage to SQL data warehouse. using the strategy "Fault tolerance and log the incompatible rows in Azure Blob storage" in ADF. And using Azure Function to archive the processed file to other place in blob storage: one place for those files are imported successfully and one for fail files (the files have incompatible data - wrong format, wrong length) => so I need get value of skippedRowCount of Activity Window

Azure function is not triggering on scheduled time

假如想象 提交于 2019-12-12 13:55:17
问题 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 " issue on official "azure-webjobs-sdk-script" git repository on May 24, 2017-but there is no reply yet. So I am re-asking this here. I am using azure function in consumption plan, and have scheduled it to execute at every 4.00 am utc by setting