SnapshotsOperationsExtensions.BeginCreateOrUpdateAsync(ISnapshotsOperations, String, String, Snapshot, CancellationToken) Method

Definition

Creates or updates a snapshot.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.Snapshot> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.ISnapshotsOperations operations, string resourceGroupName, string snapshotName, Microsoft.Azure.Management.Compute.Models.Snapshot snapshot, System.Threading.CancellationToken cancellationToken = null);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.Compute.ISnapshotsOperations * string * string * Microsoft.Azure.Management.Compute.Models.Snapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.Snapshot>

Parameters

operations
ISnapshotsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

snapshotName
System.String

The name of the snapshot within the given subscription and resource group.

snapshot
Snapshot

Snapshot object supplied in the body of the Put disk operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Snapshot>

Applies to