Az.Websites PowerShell Reference

Get-AzWebApp

Retrieves information about Azure Web Apps.

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

Parameters

Name Type Description
-Name [String] The name of the Web App.
-ResourceGroupName [String] The name of the resource group.
-DefaultProfile [IAzureContextContainer] The Azure context to use.

New-AzWebApp

Creates a new Azure Web App.

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

Parameters

Name Type Description
-Name [String] The name for the new Web App. Must be globally unique.
-ResourceGroupName [String] The name of the resource group to create the Web App in.
-Location [String] The Azure region where the Web App will be created.
-DefaultProfile [IAzureContextContainer] The Azure context to use.

Set-AzWebApp

Updates an existing Azure Web App.

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

Parameters

Name Type Description
-Name [String] The name of the Web App to update.
-ResourceGroupName [String] The name of the resource group containing the Web App.
-Location [String] The new Azure region for the Web App.
-DefaultProfile [IAzureContextContainer] The Azure context to use.

Remove-AzWebApp

Deletes an Azure Web App.

Remove-AzWebApp -Name <String> -ResourceGroupName <String> [-Force] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Parameters

Name Type Description
-Name [String] The name of the Web App to delete.
-ResourceGroupName [String] The name of the resource group containing the Web App.
-Force [Switch] Do not ask for confirmation.
-AsJob [Switch] Run cmdlet as a background job.
-DefaultProfile [IAzureContextContainer] The Azure context to use.

Start-AzWebApp

Starts an Azure Web App.

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

Stop-AzWebApp

Stops an Azure Web App.

Stop-AzWebApp -Name <String> -ResourceGroupName <String> [-Force] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Restart-AzWebApp

Restarts an Azure Web App.

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

Get-AzWebAppSlot

Retrieves information about deployment slots for an Azure Web App.

Get-AzWebAppSlot [[-Name] <String>] -WebAppName <String> -ResourceGroupName <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

New-AzWebAppSlot

Creates a new deployment slot for an Azure Web App.

New-AzWebAppSlot -Name <String> -WebAppName <String> -ResourceGroupName <String> [-Slot <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Set-AzWebAppSlot

Updates an existing deployment slot for an Azure Web App.

Set-AzWebAppSlot -Name <String> -WebAppName <String> -ResourceGroupName <String> [-Slot <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Remove-AzWebAppSlot

Deletes a deployment slot for an Azure Web App.

Remove-AzWebAppSlot -Name <String> -WebAppName <String> -ResourceGroupName <String> [-Force] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Swap-AzWebAppSlot

Swaps deployment slots for an Azure Web App.

Swap-AzWebAppSlot -Name <String> -ResourceGroupName <String> -SourceSlot <String> -TargetSlot <String> [-PreserveVnet] [-SwapWithPreview] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Get-AzWebAppConfig

Retrieves the configuration settings of an Azure Web App.

Get-AzWebAppConfig -Name <String> -ResourceGroupName <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Set-AzWebAppConfig

Updates the configuration settings of an Azure Web App.

Set-AzWebAppConfig -Name <String> -ResourceGroupName <String> -JavaVersion <JavaVersion> [-JavaContainer <JavaContainer>] [-Runtime <String>] [-StartupCommand <String>] [-AlwaysOn] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]