Azure PowerShell Documentation

Start-AzWebApp

Starts an Azure Web App.

SYNOPSIS

Starts an Azure Web App.

SYNTAX


Start-AzWebApp
    [-ResourceGroupName] <String>
    [-Name] <String>
    [-DefaultProfile] <IAzureContextContainer>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
            

DESCRIPTION

The Start-AzWebApp cmdlet starts an Azure Web App. A Web App can be in a running or stopped state.

This cmdlet is useful for restarting an application that has been stopped or to ensure an application is running after a deployment.

EXAMPLES

Example 1: Start a Web App

This command starts the Web App named "MyWebApp" in the resource group "MyResourceGroup".


Start-AzWebApp -ResourceGroupName "MyResourceGroup" -Name "MyWebApp"
            

Example 2: Start a Web App using pipeline

This command retrieves the Web App object and pipes it to the Start-AzWebApp cmdlet.


Get-AzWebApp -ResourceGroupName "MyResourceGroup" -Name "MyWebApp" | Start-AzWebApp
            

PARAMETERS

Name Type Description
-ResourceGroupName String The name of the resource group.
-Name String The name of the Web App.
-DefaultProfile IAzureContextContainer The credentials, account, tenant, and subscription that are used for communication with Azure.
-WhatIf SwitchParameter Runs the cmdlet without actually executing the actions. This will show you what would happen if the cmdlet runs.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.

RELATED LINKS