Publish-AzWebApp

Publish-AzWebApp is an Azure PowerShell cmdlet that helps you upload content to an existing Azure Web App. The only thing is the content should be packaged in a ZIP file.

It helps you to deploy the Azure Web App from a ZIP or WAR file with the help of Zip deploy.

Table of Contents

Syntax

Publish-AzWebApp
 [-ResourceGroupName] <String>
 [-Name] <String>
-ArchivePath <String>
 

Example

Connect-AzAccount
Publish-AzWebApp -ResourceGroupName Demo1234 -Name azurelessonswebapp -ArchivePath "C:\Raj\tsinfoapp.zip.zip"

Once you execute the above Azure PowerShell cmdlet, it deploys the content inside the tsinfoapp.zip file to the web app named azurelessonswebapp, which belongs to the resource group Demo1234. After running the above script, we got the expected output, as shown in the screenshot below. Click on the Yes button.

Publish-AzWebApp PowerShell
Publish-AzWebApp

Similarly, you can use New-AzWebApp to create a new Azure Web App.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!