Create an Azure Function using Visual Studio Code Part 5 – Using deployment slots

So now with the Azure Function in Azure we better update our code so it doesn’t say in our local environment.

Create a deployment slot in the Azure portal and give it a name.

Now head over to Visual Studio Code and inside the local project folder change the .cs code to read IN AZURE and save the file.

Right click and deploy to the new slot!

Jump back into Azure and select the deployment slot and fetch the url and append the text and Voila!

You’ve just pushed an new Azure Function app into a dev slot! Remove the -slot1 and you’ll see your old values.

In the final blog post we’ll swap this slot1 to the production slot.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: