azure

How to use ETag to throw exception on insert if ETag doesn't match (except when it's *)

孤街醉人 提交于 2021-02-18 12:59:27
问题 I need to be able to insert an entity to an azure storage table under these conditions: if it doesn't exist, insert. if it exists, but I specify ETag to be *, then replace. if it exists, but ETag has another value, then throw StorageException with code 409 or 412. (for example I would try to insert an entity I have retrieved, but it has been updated from elsewhere in the meantime) I made this simple program to test, but I can't figure out how to get this to work. it never reaches the

Microsoft.Azure.StorageException: The specified resource name contains invalid characters

荒凉一梦 提交于 2021-02-18 10:29:30
问题 I am creating blob storage to load a file from local path to cloud. Using storage account I have created on portal, I am getting an error: Microsoft.Azure.Storage.StorageException:The specified resource name contains invalid characters . Here is my code below what i am trying to achieve. What is it missing? Please advice using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.Devices.Client; using Microsoft

Azure Web App Deployment error via msdeploy - ERROR_INSUFFICIENT_A CCESS_TO_SITE_FOLDER

放肆的年华 提交于 2021-02-18 08:58:32
问题 I have been deploying to my Azure Web App for about 4 months now, using msdeploy, and everything has been smooth sailing to upload the website. Until recently, there has been no errors with deployment. I now receive a "ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER" error when publishing the website application. The only way for me to successfully update the website is stop the Web App on Azure, then execute a Publish for the Web Application via Visual Studio. But this can be an issue if users are

Asp Core: Azure Ad Auth + custom JWT + custom Identity store

江枫思渺然 提交于 2021-02-18 08:41:21
问题 With ASP.NET Core 2.0 I try to achieve the following: Authentication via Azure AD (registered App) Custom JWT as the authentication scheme to make the the web app auth work across servers/instances be able to save the bearer to login with desktop clients Have a custom identity store to introduce custom roles, policies, and other. All these parts have working examples, but while trying to combine them I stumbled over some problems. The Web Api + Azure Ad Auth example uses JWT Tokens for

How to come from C# stream to OpenCV Mat by using c++/cli?

北慕城南 提交于 2021-02-18 08:36:42
问题 I am reading some image from Azure Blob storage. This is a stream in c#. In c++/cli I need to do this: cv::Mat img_object = imdecode(data, IMREAD_UNCHANGED); where data is of type cv::InputArray so the question is how do I best get from c# to the cv::mat? public ref class Client { public: // TODO: Add your methods for this class here. void Method(Stream ^ img1, Stream ^ img2); }; void Client::Method(...){ } I just put in Stream ^ img1, Stream ^img2, thats not a requirement, just not sure what

How to use Azure Recovery Services Vault azure python package to fetch Disaster Recovery Services details?

若如初见. 提交于 2021-02-18 08:24:03
问题 I am trying to fetch the Disaster Recovery Backup details of azure recovery vault services like VM's details, disk details etc. using azure recovery services/ azure recovery backup services client(python). There are no proper examples anywhere in the azure documentation in order to use the client effectively. There are some ways in power shell but I am not eager to learn it. I have already tried this but it has no proper examples. I also am able to create RecoveryServicesClient from azure

How to use Azure Recovery Services Vault azure python package to fetch Disaster Recovery Services details?

人走茶凉 提交于 2021-02-18 08:23:52
问题 I am trying to fetch the Disaster Recovery Backup details of azure recovery vault services like VM's details, disk details etc. using azure recovery services/ azure recovery backup services client(python). There are no proper examples anywhere in the azure documentation in order to use the client effectively. There are some ways in power shell but I am not eager to learn it. I have already tried this but it has no proper examples. I also am able to create RecoveryServicesClient from azure

Can I assign a reserved IP to Azure Container Instances (ACI)?

浪尽此生 提交于 2021-02-18 05:35:52
问题 ok, I have a requirement from third-part to run a workload from a specific IP (so they can white-list it). Can I assign a reserved IP to my ACI container? 回答1: UPDATE You can now assign a private IP address by joining your container group to a VNET! Check out details at https://aka.ms/aci/vnet. You cannot assign a private IP address to a container group today. We are enabling assignment of private IP addresses to container groups later this year so you can join a container group to a new or

How to access Graph API from Web API in SPA application

♀尐吖头ヾ 提交于 2021-02-18 05:20:29
问题 I have an Angular application that talks to the WebAPI and the users are authenticated against Azure Active Directory I followed the sample here https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi and was able to authenticate user against AD and pass that along to the Web API. However I want to access the Graph API in the Web API and get the current user profile information. How can I set it up? Updated to give more context on the setup: I have a web site

Azure AAD - The audience is invalid

萝らか妹 提交于 2021-02-17 19:21:12
问题 I have create a webapi secured with azure active directory. I need to test this now and trying to use fiddler with an authorization header. I am trying to generate the token with below code. Target obj = (Target)cmbTarget.SelectedItem; AuthenticationResult authenticationResult; string aadInstance = obj.AADInstance; // "https://login.windows.net/{0}"; string tenant = obj.Tenant; //"rudderless.onmicrosoft.com"; string apiResourceId = obj.ApiResourceId; //"15b4ac7f-23a8-4958-96a5-64159254690d";