Share via


WebAppsOperationsExtensions.CopySlotSlotAsync Method

Definition

Copies a deployment slot to another deployment slot of an app.

public static System.Threading.Tasks.Task CopySlotSlotAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations operations, string resourceGroupName, string name, Microsoft.Azure.Management.AppService.Fluent.Models.CsmCopySlotEntity copySlotEntity, string slot, System.Threading.CancellationToken cancellationToken = default);
static member CopySlotSlotAsync : Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations * string * string * Microsoft.Azure.Management.AppService.Fluent.Models.CsmCopySlotEntity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function CopySlotSlotAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, copySlotEntity As CsmCopySlotEntity, slot As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IWebAppsOperations

The operations group for this extension method.

resourceGroupName
String

Name of the resource group to which the resource belongs.

name
String

Name of the app.

copySlotEntity
CsmCopySlotEntity

JSON object that contains the target slot name and site config properties to override the source slot config. See example.

slot
String

Name of the source slot. If a slot is not specified, the production slot is used as the source slot.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Description for Copies a deployment slot to another deployment slot of an app.

Applies to