Megosztás a következőn keresztül:


GalleryImageVersionCollection.CreateOrUpdate Method

Definition

Create or update a gallery image version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}
  • Operation Id: GalleryImageVersions_CreateOrUpdate
  • Default Api Version: 2023-07-03
  • Resource: GalleryImageVersionResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.GalleryImageVersionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string galleryImageVersionName, Azure.ResourceManager.Compute.GalleryImageVersionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Compute.GalleryImageVersionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.GalleryImageVersionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Compute.GalleryImageVersionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.GalleryImageVersionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, galleryImageVersionName As String, data As GalleryImageVersionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of GalleryImageVersionResource)

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.

galleryImageVersionName
String

The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>.

data
GalleryImageVersionData

Parameters supplied to the create or update gallery image version operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

galleryImageVersionName or data is null.

Applies to