About seamless function deployment

mrym 1 Reputation point
2022-08-03T05:48:47.513+00:00

hello. If you 'publish' from an Azure project or 'swap' from a 'deployment slot', the following error will occur if you make a request to an already deployed function before the function app is fully deployed.

///
Invocation of cloud script function FunctionRequest failed with HTTP status ServiceUnavailable and response body The service is unavailable.
///

If your production environment requires critical updates, you don't want a temporary outage during deployment. Is there a way around this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,002 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,811 Reputation points Microsoft Employee
    2022-08-11T01:27:46.687+00:00

    Hello @mrym - Welcome & thanks for posting on MS Q&A! Could you clarify the order of steps described in your statement below?

    If you 'publish' from an Azure project or 'swap' from a 'deployment slot', the following error will occur if you make a request to an already deployed function before the function app is fully deployed.

    Blue/green deployment pattern for Functions is indeed achieved through the use of deployment slots, and once configured correctly & between swaps, there shouldn't be any outage though.

    Referencing the following resources as they may be helpful:


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.