I have an Azure App Service that is running under linux, and at times when I issue a CLI command in my GitHub action pipelines for CI/CD I get the following error that is not very helpful:
"ERROR: Operation returned an invalid status 'Expectation Failed'
INFO: Command ran in 1387.892 seconds (init: 0.156, invoke: 1387.736)"
What can I look at to get more details on why these failures occur? Many times re-running the pipeline works, but I'd rather know why the failures happen in the first place (especially since it takes 23 minutes on average to get the failure, and cannot re-try until the failure comes back)
here is the command:
az webapp deployment slot swap \
--name {APP_NAME} \
--resource-group {RG} \
--slot blue \
--target-slot production \
--verbose
and --verbose does not really help that much give me a better understanding of what is going on...
and it's almost always in centralus, I also deploy to eastus2 and those tend not to have any problems.