SharedLimitCapCollection.CreateOrUpdate Method

Definition

Creates or replaces the shared limit cap configuration for a VM family.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}.
  • Operation Id. : SharedLimitCaps_CreateOrUpdate.
  • Default Api Version. : 2026-07-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeLimit.SharedLimitCapResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string vmFamilyName, Azure.ResourceManager.ComputeLimit.SharedLimitCapData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ComputeLimit.SharedLimitCapData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeLimit.SharedLimitCapResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ComputeLimit.SharedLimitCapData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeLimit.SharedLimitCapResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, vmFamilyName As String, data As SharedLimitCapData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SharedLimitCapResource)

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.

vmFamilyName
String

The name of the SharedLimitCap.

data
SharedLimitCapData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vmFamilyName or data is null.

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

Applies to