Questions tagged [azure-deployment-slots]

167 questions
2
votes
0 answers

Azure swap slots exlude files

How to swap slots and at the same time exclude specific files? In my case I need to exclude the robots.txt file during a swap from staging to production. There is a feature "slot setting" that I'm using for an application setting but this doesn't…
PussInBoots
  • 11,028
  • 9
  • 52
  • 84
1
vote
1 answer

Azure deployment slot swap - both slots use production settings

I am using deployment slot settings to distinguish between my main (production) slot and the staging slot. When I perform a swap, the new production app (that was in staging before the swap) properly reads app settings. However, the new staging app…
Aviad P.
  • 32,036
  • 14
  • 103
  • 124
1
vote
1 answer

How do deployment slots work in Azure Static Web App

I've created a Static Web App in Azure Portal, to host my Angular app. The creation wizard automatically generated a pipeline in my Azure Repo. If I go to Azure DevOps, I can see the pipeline's YAML which looks like this: name: Azure Static Web Apps…
1
vote
1 answer

How to debug Azure app service slot swap failure

I am getting the following error when trying to do a slot swap for our app service: ##[error]Error: Failed to swap App Service 'service1' slots - 'staging' and 'production'. Error: BadRequest - Cannot swap slots for site 'service1' because the…
Greg
  • 3,861
  • 3
  • 23
  • 58
1
vote
1 answer

Microsoft Azure Webapp deployment error in Production slot

Since the end of August since July we have had problems deploying on WebApps via Azure DevOps or kudu. the errors that emerge is not really explicit: 2022-09-06T16:11:48.4467209Z Using the following command to generate deployment script: 'azure site…
1
vote
0 answers

Functions missing in production slot after deploying to staging slot

I have a function app with 2 slots - staging and production. Both staging and production slots have some functions. I have the following YAML task to deploy to staging deployment slot: - task: AzureFunctionApp@1 displayName: 'deploy ${{…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
0 answers

RunAsync does not handle the function execution status FunctionsHostStoppingError causing Orchestrations to fail

I’m trying to use deployment slots so that end users experience while swapping and deploying my changes to production. While I try to swap while running orchestrations, some of them intermittently fail with an exception: Orchestrator function 'x'…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
0 answers

Non-Deterministic workflow detected while running Orchestrator

When I run orchestrations, most of them fail with an exception: The orchestrator function 'x' failed: "Failed to deserialize exception from TaskActivity: Unhandled exception while executing orchestration:…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
0 answers

Intermittent RunAsync does not handle the function execution status FunctionsHostStoppingError causing Orchestrations to fail

When I run orchestrations, some of them intermittently fail with an exception: Exception while executing function: Orchestrator function 'x' failed: The activity function 'x' failed: "Failed to deserialize exception from TaskActivity: Unhandled…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
1 answer

Changes are deployed to production slot directly

I'm trying to learn about deployment slots. I have an Azure Function with a production slot. I already have the function deployed to production slot using the following yaml task: - task: AzureFunctionApp@1 displayName: 'deploy ${{…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
1 answer

Disable azure durable function in staging slot

I have a function app (a service bus trigger function and it is a durable function containing a starter, orchestrator, activity functions) with a production and a staging slot. I do not want the functions in the staging slot to be tripped by the…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
1 answer

Grant Azure Function in staging slot MSI access to the SQL Server Database

I have an Azure Function (function-name) for which I granted MSI access to the SQL Server Database using the following sql query: IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'function-name') BEGIN CREATE USER [function-name]…
user989988
  • 3,006
  • 7
  • 44
  • 91
1
vote
0 answers

How detect if slot swapping is in progress

Im using .net sdk fluent azure API to change slots. I have two slots, prod and maintenance. I use azure queue trigger function to update appsettings, restart function and swap slots. This is code: //TODO:checking if swapping is in progress, if not…
1
vote
0 answers

Cannot deploy to app service deployment slot with private endpoint using azure pipeline (Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC)

I have an app service with a production (default) and test slot, and each slot has a private endpoint preventing public access to the apps. I'm able to use an azure pipeline to deploy to the production slot but I receive an error like below when I…
1
vote
1 answer

Stop deployment slot after X time - Azure YAML Pipelines

To save memory in a development environment I would like to shutdown/stop a given deployment slot X time after a deployment has finished. What is the best/easiest way to do that?