Udostępnij za pośrednictwem


MsixPackageCollection.CreateOrUpdateAsync Method

Definition

Create or update a MSIX package.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}
  • Operation Id: MSIXPackages_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: MsixPackageResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.MsixPackageResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string msixPackageFullName, Azure.ResourceManager.DesktopVirtualization.MsixPackageData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.MsixPackageData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.MsixPackageResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.MsixPackageData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.MsixPackageResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, msixPackageFullName As String, data As MsixPackageData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MsixPackageResource))

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.

msixPackageFullName
String

The version specific package full name of the MSIX package within specified hostpool.

data
MsixPackageData

Object containing MSIX Package definitions.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

msixPackageFullName or data is null.

Applies to