다음을 통해 공유


VirtualApplicationGroupCollection.CreateOrUpdate Method

Definition

Create or update an applicationGroup.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
  • Operation Id: ApplicationGroups_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: VirtualApplicationGroupResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string applicationGroupName, Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.VirtualApplicationGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, applicationGroupName As String, data As VirtualApplicationGroupData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of VirtualApplicationGroupResource)

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.

applicationGroupName
String

The name of the application group.

data
VirtualApplicationGroupData

Object containing ApplicationGroup definitions.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

applicationGroupName is an empty string, and was expected to be non-empty.

applicationGroupName or data is null.

Applies to