I have a .Net 6 Web API application, I am able to publish it via Visual Studio 2022 to Azure Application service and then use the application.
Now I want to automate it. My powershell creates a zip file with all the necessary files inside.
Then I call
Publish-AzWebApp -ResourceGroupName MyResourceGroup -Name MyWebApi -ArchivePath D:\projects\MyWebApi\publish\8044a70f-f3fc-4271-b37a-f0b2658d9192.zip
But after it finishes I go to Azure ftp and wwwroot folder is empty and the application does not work.
Am I using the cmdlet the wrong way?



