My goal is to transfer the name and location of the site and create a new site, get the appropriate credentials / URLs and deploy my site using WebDeploy.
I use the Azure Powershell Tools here: http://www.windowsazure.com/en-us/downloads/
I can create a new website using
New-AzureWebsite -Name site-name -Location "West US"
In response to this, I get detailed information about the created site, including the publication username and password (PublishingUsername and PublishingPassword), one part of the information I do not receive is the publication URL (which I can get from the Azure Management Portal in the file XML format). In the XML file, this is the publishUrl attribute in the publishProfile node file.
My question is whether there is a way through PowerShell to get the publication URL or through the REST API, but I would prefer PowerShell.
This is a similar question that sounds like it is not yet possible, at least at the time of writing: How do I get the FTP URL for my Azure website through the management API?
source share