This is a two step process.

First you need to ensure that, from the properties of the App Service, you click on Deployment Credentials and introduce a username and password there.

After that, on the Overview of the App service –> More –> Get publish profile