We have an Azure DevOps release pipeline with an ARM template deployment as the start of each release. We do this to make sure our Azure resource stays in sync with the ARM template configured in our repository. We observed the azure app service Return HTTP 503 while arm deployment Then we introduce app slot and add all app setting’s there and remove app setting from azure app. We deploy app staging slot as separate resource and then swap with primary slot then all app setting swap between slot Our expectation is to stop web app unavailable time during arm deployment but even we deploy app slot with configurations, primary slot went to unavailable state for some time. swap between slot happen without down time. Is this the way it happening? or something wrong with Arm? This how we configured the arm
{
"apiVersion": "2016-08-01",
"name": "xxnamexx",
"type": "Microsoft.Web/sites",
"location": "xxxlocationxxx",
"copy": {
"name": "webSiteDeployment",
"count": "2"
},
"dependsOn": [
"servicepalnxxx",
"identityproviderxxx"
],
"tags": {
"displayName": "Website"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"": {}
}
},
"properties": {
"name": "namexxx",
"webSocketsEnabled": true,
"clientAffinityEnabled": false,
"httpsOnly": true,
"serverFarmId": "servicepalnxxx",
"netFrameworkVersion": "v5.0",
"siteConfig": {
"http20Enabled": true,
"minTlsVersion": "1.2"
}
}
},
this how slot configured
{
"apiVersion": "2016-08-01",
"type": "Microsoft.Web/sites/slots",
"name": "namexxx",
"kind": "app",
"location": "xxxlocationxxx",
"comments": "This specifies the web app slots.",
"tags": {
"displayName": "WebAppSlots"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"": {}
}
},
"properties": {
"serverFarmId": "serviceplan"
},
"dependsOn": [
"webapp"
],
"resources": [
{
"name": "appsettings",
"type": "config",
"apiVersion": "2016-08-01",
"dependsOn": [
"depend onslot"
],
"tags": {
"displayName": "appSetting"
},
"properties": {
"name": "value",
"name": "value",
"name": "value"
}
}
],
"copy": {
"name": "webSiteDeployment",
"count": "2"
}
}