azure

Replacing database connection strings in the Docker image

六眼飞鱼酱① 提交于 2021-02-08 08:18:22
问题 I'm having hard times with the application's release process. The app is being developed in .NET Core and uses 'appsettings.json' that holds connection string to a database. The app should be deployed to Kubernetes cluster in Azure. We have a build and release processes in Azure DevOps so the process is automated, although the problem belongs to a necessity to deploy the same to multiple environments (DEV/QA/UAT) and every env is using its own database. When we build Docker image, the

Unable to exchange auth-code to get access-token using Microsoft identity platform in my node application

不羁的心 提交于 2021-02-08 08:16:22
问题 I am implementing OAuth2 using Microsoft identity platform. For this purpose, I registered my app to Azure Active Directory admin center and got an app-id and other app credentials. Redirect-url also mentioned as well. So first of all, I generated auth-url (code snippet is provided below) and got an auth-code to my redirect endpoint. when I try to exchange auth-code to get access-token, it throws as exception with statuscode 401 with error message "401 Unauthorized". I am using simple-oauth2

Azure Blob Storage successful requests show as failed requests in Application Insights

本小妞迷上赌 提交于 2021-02-08 07:59:24
问题 The following container exists and hence returns failed request code 409 var container = blobClient.GetContainerReference("my-container"); container.CreateIfNotExists(); I do a check to make sure the Blob reference doesn't exist before creating. This returns a 404 response code with a bool. if(container.GetBlockBlobReference("this-file-could-exist").Exists()) { In the first example I expect the container to exist, in the second expect the file not to exist. But in both cases I do a check to

IP whitelisting for logic app

时光毁灭记忆、已成空白 提交于 2021-02-08 07:58:26
问题 How to whitelist the IP address for the logic app. A service which is called by logic App (using HTTP action) but the service needs the whitelisted to be called to it. SO, how to whitelist for logic APP. Can we use Azure API management for whitelisting, which publishes logic App, as api management provides static IP. 回答1: Yes you are correct. You can use API Management to achieve this. This would allow for something like this And in API Management And then in Logic App If you want to read

How to update msbuild on Azure?

别来无恙 提交于 2021-02-08 07:53:05
问题 In Azure SCM Debug Console, when I run msbuild /version I get: msbuild /version D:\home\site\wwwroot Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved. 14.0.23107.0 When I run it on my work machine I get: Microsoft (R) Build Engine version 14.0.25420.1 Copyright (C) Microsoft Corporation. All rights reserved. 14.0.25420.1 Version 14.0.25420.1 of msbuild is installed in "Microsoft Build Tools 2015 Update 3". Is there a way to update the

How to update msbuild on Azure?

醉酒当歌 提交于 2021-02-08 07:52:00
问题 In Azure SCM Debug Console, when I run msbuild /version I get: msbuild /version D:\home\site\wwwroot Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved. 14.0.23107.0 When I run it on my work machine I get: Microsoft (R) Build Engine version 14.0.25420.1 Copyright (C) Microsoft Corporation. All rights reserved. 14.0.25420.1 Version 14.0.25420.1 of msbuild is installed in "Microsoft Build Tools 2015 Update 3". Is there a way to update the

How to get an Azure Webjob to process multiple queue messages?

落花浮王杯 提交于 2021-02-08 07:37:47
问题 In Azure worker roles, you can create a batch job that processes a list of messages. I'm wondering if there is something similar to that for Azure WebJobs? Currently you can trigger a webjob from a queue as follows: public static void ProcessQueueMessage([QueueTrigger("queue")] string message, TextWriter log) Is there some way to pull and process a list of messages? 回答1: No, there is no inbuilt binding for a batch of Queue messages currently. However, someone in the community has recently

Azure function run code on startup for Node

帅比萌擦擦* 提交于 2021-02-08 07:37:25
问题 I am developing Chatbot using Azure functions. I want to load the some of the conversations for Chatbot from a file. I am looking for a way to load these conversation data before the function app starts with some function callback. Is there a way load the conversation data only once when the function app is started? This question is actually a duplicate of Azure Function run code on startup. But this question is asked for C# and I wanted a way to do the same thing in NodeJS 回答1: You can use

How to upload a file in html page, using http trigger in azure functions using python?

安稳与你 提交于 2021-02-08 07:36:17
问题 I would like to have a some way, how to upload a file (could be html without php, or some interactive azure upload page, whatever), and through my URL params I would like to send parameters, which will run the rest of code using this uploaded file (ofc I need to save it to blob at least). I need a rest api, so i chose azure functions. Is there any way how to do it in python? I saw lots of examples in C#, but docs for python are limited. Thx a lot! 回答1: Regarding the issue, you can use Html

How to know the size of an Azure blob object via Python Azure SDK

百般思念 提交于 2021-02-08 07:33:52
问题 Following the Microsoft Azure documentation for Python developers. The azure.storage.blob.models.Blob class does have a private method called __sizeof__() . But it returns a constant value of 16, whether the blob is empty (0 byte) or 1 GB. Is there any method/attribute of a blob object with which I can dynamically check the size of the object? To be clearer, this is how my source code looks like. for i in blobService.list_blobs(container_name=container, prefix=path): if i.name.endswith('.json