Bagikan melalui


ArcExtensionCollection.CreateOrUpdate Method

Definition

Create Extension for HCI cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}
  • Operation Id: Extensions_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.ArcExtensionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string extensionName, Azure.ResourceManager.Hci.ArcExtensionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.ArcExtensionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.ArcExtensionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.ArcExtensionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.ArcExtensionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, extensionName As String, data As ArcExtensionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ArcExtensionResource)

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.

extensionName
String

The name of the machine extension.

data
ArcExtensionData

Details of the Machine Extension to be created.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

extensionName or data is null.

Applies to