StorageConnectorCollection.CreateOrUpdate Method

Definition

Create a Storage Connector if it does not already exist; otherwise, error out. This API will not allow you to replace an already existing resource.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/connectors/{connectorName}.
  • Operation Id. : Connectors_Create.
  • Default Api Version. : 2025-08-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.StorageConnectorResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string connectorName, Azure.ResourceManager.Storage.StorageConnectorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Storage.StorageConnectorData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.StorageConnectorResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Storage.StorageConnectorData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.StorageConnectorResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, connectorName As String, data As StorageConnectorData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of StorageConnectorResource)

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.

connectorName
String

The name of the Storage Connector.

data
StorageConnectorData

Create a Storage Connector if it does not already exist; otherwise, error out. This API will not allow you to replace an already existing resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

connectorName or data is null.

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

Applies to