Azure portal allows swap for azure functions but not azure pipelines

Vinod Kumar 25 Reputation points
2024-09-05T03:53:50.08+00:00

I am able to swap a deployment slot in azure portal for an azure function. But I am unable to find that functionality in Azure pipelines. Why?

Azure pipelines has swap functionality for Azure app service but not azure function.

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

1 answer

Sort by: Most helpful
  1. Dan Rios 2,010 Reputation points MVP
    2024-09-05T08:27:53.9766667+00:00

    Hi @vinod kumar ,

    That task works for Azure Functions. They are just a type of app service. Example below that I use often in pipelines for functions & web apps alike, no issues:

              - task: AzureAppServiceManage@0
                displayName: 'Swap Slots'
                inputs:
                  azureSubscription: Your_Az_ARM_Connection
                  Action: 'Swap Slots'
                  WebAppName: Your_Function_Name
                  ResourceGroupName: Your_RG_Name
                  SourceSlot: 'staging'
    
    
    

    Read more on the options for this task here: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-app-service-manage-v0?view=azure-pipelines

    If this solves your issue, please mark as accepted.

    0 comments No comments

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.