Megosztás a következőn keresztül:


AppServicePlanResource.RestartWebAppsAsync Method

Definition

Description for Restart all apps in an App Service plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites
  • Operation Id: AppServicePlans_RestartWebApps
  • Default Api Version: 2023-12-01
  • Resource: AppServicePlanResource
public virtual System.Threading.Tasks.Task<Azure.Response> RestartWebAppsAsync (bool? softRestart = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RestartWebAppsAsync : Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RestartWebAppsAsync : Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RestartWebAppsAsync (Optional softRestart As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

softRestart
Nullable<Boolean>

Specify <code>true</code> to perform 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
CancellationToken

The cancellation token to use.

Returns

Applies to