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.