Restart-AzWebApp

Restarts an Azure App Service Web App.

The Restart-AzWebApp cmdlet restarts an Azure App Service Web App. This cmdlet can be used to apply configuration changes or to recover from a hung state.

SYNTAX

Restart-AzWebApp [-Name] <String> [-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

DESCRIPTION

The Restart-AzWebApp cmdlet restarts an Azure App Service Web App. You can use this cmdlet to apply configuration changes that require a restart or to recover from an unresponsive Web App.

PARAMETERS

Name Type Description Required?
-Name String The name of the Web App. Yes
-ResourceGroupName String The name of the resource group for the Web App. Yes
-DefaultProfile IAzureContextContainer The Azure context, used by the Azure PowerShell module to determine which subscription to use. No

NOTES

This cmdlet is part of the Azure App Service module. To use it, you need to have the module installed and imported.

You can verify if your Web App is running by using the Get-AzWebApp cmdlet.

RELATED LINKS

EXAMPLES

Restart a Web App named 'MyWebApp' in the 'MyResourceGroup' resource group.

Restart-AzWebApp -Name "MyWebApp" -ResourceGroupName "MyResourceGroup"