共用方式為


StaticSiteUserProvidedFunctionAppResource.UpdateAsync Method

Definition

Description for Register a user provided function app with a static site

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}
  • Operation Id: StaticSites_RegisterUserProvidedFunctionAppWithStaticSite
  • Default Api Version: 2024-04-01
  • Resource: StaticSiteUserProvidedFunctionAppResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppData data, bool? isForced = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppData * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppData * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As StaticSiteUserProvidedFunctionAppData, Optional isForced As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StaticSiteUserProvidedFunctionAppResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

data
StaticSiteUserProvidedFunctionAppData

A JSON representation of the user provided function app properties. See example.

isForced
Nullable<Boolean>

Specify <code>true</code> to force the update of the auth configuration on the function app even if an AzureStaticWebApps provider is already configured on the function app. The default is <code>false</code>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to