azure-deployment-slots

ARM Templates for Azure Functions with many appSettings for different environments and slots

▼魔方 西西 提交于 2020-01-10 05:34:08
问题 I've got two Azure Function apps that use deployment slots, stage and production. These two Azure Function apps have about 50~ key:value pairs in Application Settings to define various API keys, application behavior, connection strings, etc. I want to deploy these two Azure Function apps to five different environments (CI, DEV, QA, STG, PROD). I believe that deploying these resources to Azure using ARM templates is the better choice over Azure CLI. I will create tasks in my Azure DevOps

Azure Web App deployment slots with database migration

好久不见. 提交于 2019-12-21 20:31:44
问题 I'm currently running a webApp with several deployment slots (e.g. dev, staging, production). Every Slot is connected to a database (db_dev, db_staging, db_production). I want to deploy to the staging slot and then switch with production. How do database migrations fit in here? I mean, if i deploy a new build with db migrations to staging the db_staging gets updated. What happens if I switch the slots? Do the migrations get applied to db_production? What about downtimes? From my understanding

Requested value 'VS2015' was not found. - Azure powershell

烂漫一生 提交于 2019-12-12 08:53:18
问题 I am trying to get my slot info through azure powershell. To retrieve the info i used Get-AzureWebsite -Name mywebsite -Slot staging but azure powershell throws the below error: Get-AzureWebsite : Requested value 'VS2015' was not found. At line:1 char:1 + Get-AzureWebsite -Name mywebsite -Slot staging + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureWebsite], ArgumentException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites

Deployment slots on Azure WebApp

孤人 提交于 2019-12-12 03:38:26
问题 What exactly are deployment slots on Azure WebApp's? Are they separate websites on the same VM/IIS hosting the main webapp? We currently use them and I understand what they do. Just want to understand what's behind the scenes. 回答1: You are right. Deployment slots are separate websites on the same VM that hosts your App service. That is why usage on one slot affects all other slots on the same app service as they are working under shared resources. 回答2: The underlying Infrastructure layer of

Allow traffic from a webjob in a staging slot in Azure

大憨熊 提交于 2019-12-11 13:39:43
问题 I'm using a staging slot in Azure, where I just allow some IP's to have access to it. I have written the below rule in the web.config file: <rule name="Block unauthorized traffic to staging sites" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^mydomain\-mydomainslot1\."/> <!-- white listed IP addresses --> <add input="{REMOTE_ADDR}" pattern="ip1" negate="true"/> <add input="{REMOTE_ADDR}" pattern="ip2" negate="true"/> </conditions> <action type=

Azure deployment slot not updating with new code from VSTS

ⅰ亾dé卋堺 提交于 2019-12-11 07:06:08
问题 I have a deployment slot demo that I want to update with the new application. Both Azure and VSTS confirm the release to the slot was successful. Via the Continous Delivery tab and the Release page respectively. However, when I click on the URL of the deployment slot I am taken to the old application. Any help is appreciated. 来源: https://stackoverflow.com/questions/46395014/azure-deployment-slot-not-updating-with-new-code-from-vsts

How to know if an Azure function is running in a slot

你离开我真会死。 提交于 2019-12-10 15:34:50
问题 Can a function know if it's running in a slot? I would like to prevent a function to be executed if in "staging" slot. Updated Base on the answer from Bruce (thanks again buddy), I wrote that blog post http://www.frankysnotes.com/2017/09/how-to-know-when-azure-function-is.html 回答1: Can a function know if it's running in a slot? Per my understanding, you could check the APPSETTING_WEBSITE_SLOT_NAME environment variable in your code, and the value would be Production when your function is under

Deployment slot specific appsettin in ARM template?

我们两清 提交于 2019-12-05 23:08:11
问题 I'm trying to get into that Visual Studio Resource Group template. So far it's looking good, and I have added some appsettings for a web app, but my question is, how can I make them deployment slot specific? Is there something in the json for the template or the parameter file? 回答1: Please have a try to add the json code snipped in the ARM template. I have tested it. It works successfully. "resources": [ { "apiVersion": "2015-08-01", "name": "appsettings", "type": "config", "dependsOn": [ "

Azure Web App deployment slots with database migration

不打扰是莪最后的温柔 提交于 2019-12-04 14:07:27
I'm currently running a webApp with several deployment slots (e.g. dev, staging, production). Every Slot is connected to a database (db_dev, db_staging, db_production). I want to deploy to the staging slot and then switch with production. How do database migrations fit in here? I mean, if i deploy a new build with db migrations to staging the db_staging gets updated. What happens if I switch the slots? Do the migrations get applied to db_production? What about downtimes? From my understanding only the URLs are switched, so after the switch the app in the staging slot would point to the db

Requested value 'VS2015' was not found. - Azure powershell

可紊 提交于 2019-12-04 06:14:51
I am trying to get my slot info through azure powershell. To retrieve the info i used Get-AzureWebsite -Name mywebsite -Slot staging but azure powershell throws the below error: Get-AzureWebsite : Requested value 'VS2015' was not found. At line:1 char:1 + Get-AzureWebsite -Name mywebsite -Slot staging + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureWebsite], ArgumentException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand When i try only with Get-AzureWebsite -Name mywebsite it perfectly shows data