Share via


IWebAppsOperations.CreateOrUpdateSwiftVirtualNetworkConnectionWithHttpMessagesAsync Method

Definition

Integrates this Web App with a Virtual Network. This requires that

  1. "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in use by another App Service Plan other than the one this App is in.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.SwiftVirtualNetworkInner>> CreateOrUpdateSwiftVirtualNetworkConnectionWithHttpMessagesAsync (string resourceGroupName, string name, Microsoft.Azure.Management.AppService.Fluent.Models.SwiftVirtualNetworkInner connectionEnvelope, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateSwiftVirtualNetworkConnectionWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.AppService.Fluent.Models.SwiftVirtualNetworkInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.SwiftVirtualNetworkInner>>
Public Function CreateOrUpdateSwiftVirtualNetworkConnectionWithHttpMessagesAsync (resourceGroupName As String, name As String, connectionEnvelope As SwiftVirtualNetworkInner, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SwiftVirtualNetworkInner))

Parameters

resourceGroupName
String

Name of the resource group to which the resource belongs.

name
String

Name of the app.

connectionEnvelope
SwiftVirtualNetworkInner

Properties of the Virtual Network connection. See example.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Remarks

Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in use by another App Service Plan other than the one this App is in.

Applies to