Share via


MsixPackageCollection.CreateOrUpdate 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
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.MsixPackageResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string msixPackageFullName, Azure.ResourceManager.DesktopVirtualization.MsixPackageData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.MsixPackageData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.MsixPackageResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.MsixPackageData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.MsixPackageResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, msixPackageFullName As String, data As MsixPackageData, Optional cancellationToken As CancellationToken = Nothing) As 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