azure-web-app-service

How to get Principal Id in app service using Arm template?

只愿长相守 提交于 2021-02-11 12:28:58
问题 Hi I am writing ARM templates to deploy my app service. I want to create system identity in my arm template. In app service arm template section I have below code. "identity": { "principalId": "[reference(variables('identity_resource_id'), '2017-12-01', 'Full').identity.principalId]", "tenantId": "[parameters('tenantId')]", "type": "SystemAssigned" } Then in variable section I added "appServiceNameFrontEnd": "[concat(variables('defaultConvention'),'03-','FrontEnd')]" "identity_resource_id": "

How can I share a directory between Azure App Service slots?

我是研究僧i 提交于 2021-02-11 08:51:41
问题 I have an Azure App Service with two slots. Is it possible to have these slots share a directory via Path Mappings or something along those lines? 回答1: As far as I know it's not possible. You should use Azure Storage for it. 来源: https://stackoverflow.com/questions/59583863/how-can-i-share-a-directory-between-azure-app-service-slots

Is it possible to see the restart history of an Azure App Service?

倾然丶 夕夏残阳落幕 提交于 2021-02-11 08:48:26
问题 Is it possible to see the restart history of an Azure App Service? I mean to see it in the GUI, not an API. 回答1: Yes, you can see it from Activity log in azure portal. Screenshot as below: 来源: https://stackoverflow.com/questions/59678953/is-it-possible-to-see-the-restart-history-of-an-azure-app-service

Azure-Web-sites: How to cancel a deployment?

半腔热情 提交于 2021-02-11 07:56:12
问题 I have an Azure Function App / Azure Website setup with continuous deployment from source-control. This App has a custom deployment script that takes quite a bit of time to run. Occasionally I push out a change to git which was a mistake, and I want to cancel that one deployment (While still allowing future git pushes to cause a deployment). Is there a PowerShell command I can run, or some option which will cancel my current deployment? 回答1: I was able to figure this out eventually, and

Purchase a domain name for static web applications

亡梦爱人 提交于 2021-02-11 07:01:08
问题 I have deployed a static web application (Gatsby) now I want purchase a domain. If the web was deployed to Azure App Service there is some instructions on how to do that. But for static web applications the "custom domain" button gives different options. For a Static Web Site I see For an App Service web application I see So how do I add/purchase a custom domain for a static web appication? 回答1: Document reference: You can refer to the offical document to solve your issue. Steps: Step 1.

Unable to load static file once it has been published to Azure, using ASP.NET Core 2.1

二次信任 提交于 2021-02-10 18:56:12
问题 Using ASP.NET Core 2.1 , I'm trying to load the same static file locally on my dev machine (through Visual Studio 2017) and after the website has been published to the hosting environment (Azure Web Apps). Consider the directory hierarchy in which the static file ( file.xml ) to be served resides inside the web root: wwwroot css images js xml file.xml Here's my controller to load the file: public class DevelopmentController : Controller { private readonly IHostingEnvironment _env; public

Unable to load static file once it has been published to Azure, using ASP.NET Core 2.1

风格不统一 提交于 2021-02-10 18:55:55
问题 Using ASP.NET Core 2.1 , I'm trying to load the same static file locally on my dev machine (through Visual Studio 2017) and after the website has been published to the hosting environment (Azure Web Apps). Consider the directory hierarchy in which the static file ( file.xml ) to be served resides inside the web root: wwwroot css images js xml file.xml Here's my controller to load the file: public class DevelopmentController : Controller { private readonly IHostingEnvironment _env; public

Unable to load static file once it has been published to Azure, using ASP.NET Core 2.1

一个人想着一个人 提交于 2021-02-10 18:54:28
问题 Using ASP.NET Core 2.1 , I'm trying to load the same static file locally on my dev machine (through Visual Studio 2017) and after the website has been published to the hosting environment (Azure Web Apps). Consider the directory hierarchy in which the static file ( file.xml ) to be served resides inside the web root: wwwroot css images js xml file.xml Here's my controller to load the file: public class DevelopmentController : Controller { private readonly IHostingEnvironment _env; public

Successful deployment still leads to default page

吃可爱长大的小学妹 提交于 2021-02-10 15:44:05
问题 I followed the contents of three different tutorials in deploying a slightly-modified boilerplate React app to Azure App Services. The primary issue I'm having is that while all deployment pipelines and releases have been successful on Azure DevOps, navigating to the page results in the default landing page for non-deployed app services; Hey, Node developers! Your app service is up and running. Time to take the next step and deploy your code. I'll briefly describe the steps I took to get to

Are the live connections dropped on azure while doing Blue Green deployment

旧街凉风 提交于 2021-02-10 14:40:41
问题 I am deploying my java rest services on Azure App services, I am trying to understand blue green deployment on azure, I read this official blog on Azure Blue Green : https://azure.microsoft.com/en-in/blog/blue-green-deployments-using-azure-traffic-manager/ I got the initial idea, but what if there are many live connections on Blue instance and new code is deployed on the green instance and after sanity testing, we swap blue with green. If there is any live connection on blue will it die or