InterconnectBlockCollection.CreateOrUpdateAsync Method

Definition

Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}.
  • Operation Id. : InterconnectBlocks_CreateOrUpdate.
  • Default Api Version. : 2026-03-01.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.InterconnectBlockResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string interconnectBlockName, Azure.ResourceManager.Compute.InterconnectBlockData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.InterconnectBlockData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.InterconnectBlockResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.InterconnectBlockData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.InterconnectBlockResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, interconnectBlockName As String, data As InterconnectBlockData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of InterconnectBlockResource))

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.

interconnectBlockName
String

The name of the Interconnect Block.

data
InterconnectBlockData

Parameters supplied to the Create Interconnect Block.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

interconnectBlockName or data is null.

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

Applies to