Restart-​Azure​Rm​Web​App

Restarts an Azure Web App.

Syntax

Restart-AzureRmWebApp
       [-ResourceGroupName] <String>
       [-Name] <String>
       [<CommonParameters>]
Restart-AzureRmWebApp
       [-WebApp] <Site>
       [<CommonParameters>]

Description

The Restart-AzureRmWebApp cmdlet stops and then starts an Azure Web App. If the Web App is in a stopped state, use the Start-AzureRmWebApp cmdlet.

Examples

Example 1: Restart a Web App

PS C:\>Restart-AzureRmWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoSite"

This command stops the Azure Web App named ContosoSite that belongs to the resource group named Default-Web-WestUS and then restarts it.

Required Parameters

-Name

WebApp Name

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WebApp

WebApp Object

Type:Site
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False