AppServicePlansOperationsExtensions.RestartWebAppsAsync(IAppServicePlansOperations, String, String, Nullable<Boolean>, CancellationToken) Method

Definition

Restart all apps in an App Service plan.

public static System.Threading.Tasks.Task RestartWebAppsAsync (this Microsoft.Azure.Management.WebSites.IAppServicePlansOperations operations, string resourceGroupName, string name, Nullable<bool> softRestart = null, System.Threading.CancellationToken cancellationToken = null);
static member RestartWebAppsAsync : Microsoft.Azure.Management.WebSites.IAppServicePlansOperations * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

operations
IAppServicePlansOperations

The operations group for this extension method.

resourceGroupName
System.String

Name of the resource group to which the resource belongs.

name
System.String

Name of the App Service plan.

softRestart
System.Nullable<System.Boolean>

Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task

Remarks

Restart all apps in an App Service plan.

Applies to