I want to deploy app services from Powershell. I would like to use only publish profile (no password for azure account).
I tried FTP
service, but sometimes files are blocked by running users.
I think I have to stop app service.
There is powershell command like:
Publish-AzWebApp
However first I need login with:
Connect-AzAccount
and pass credentials what I want to avoid.
There is any way to call Publish-AzWebApp
based on only publish profile (no login by account)?
Connect-AzAccount
has other options to login (token or certificate).
Unfortunately I don't know how to generate it.
BTW There was a topic about it: How do I deploy to Azure App Service with PowerShell? But it is old and now module "az" is recommended.