PreparedImageSpecificationCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create or update a prepared image specification resource with a client-provided version. Created versions are immutable; provide a different properties.version value to create a new version.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}.
- Operation Id. : PreparedImageSpecifications_CreateOrUpdate.
- Default Api Version. : 2026-05-02-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerServicePreparedImgSpec.PreparedImageSpecificationResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string preparedImageSpecificationName, Azure.ResourceManager.ContainerServicePreparedImgSpec.PreparedImageSpecificationData data, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerServicePreparedImgSpec.PreparedImageSpecificationData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerServicePreparedImgSpec.PreparedImageSpecificationResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerServicePreparedImgSpec.PreparedImageSpecificationData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerServicePreparedImgSpec.PreparedImageSpecificationResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, preparedImageSpecificationName As String, data As PreparedImageSpecificationData, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PreparedImageSpecificationResource))
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.
- preparedImageSpecificationName
- String
The name of the Prepared Image Specification resource.
Resource create parameters.
- matchConditions
- MatchConditions
The content to send as the request conditions of the request.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
preparedImageSpecificationName or data is null.
preparedImageSpecificationName is an empty string, and was expected to be non-empty.