Share via


ComponentLinkedStorageAccountCollection.CreateOrUpdate Method

Definition

Replace current linked storage account for an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}
  • Operation Id: ComponentLinkedStorageAccounts_CreateAndUpdate
  • Default Api Version: 2020-03-01-preview
  • Resource: ComponentLinkedStorageAccountResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.ComponentLinkedStorageAccountResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.ApplicationInsights.Models.StorageType storageType, Azure.ResourceManager.ApplicationInsights.ComponentLinkedStorageAccountData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.ApplicationInsights.Models.StorageType * Azure.ResourceManager.ApplicationInsights.ComponentLinkedStorageAccountData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.ComponentLinkedStorageAccountResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.ApplicationInsights.Models.StorageType * Azure.ResourceManager.ApplicationInsights.ComponentLinkedStorageAccountData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.ComponentLinkedStorageAccountResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, storageType As StorageType, data As ComponentLinkedStorageAccountData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ComponentLinkedStorageAccountResource)

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.

storageType
StorageType

The type of the Application Insights component data source for the linked storage account.

data
ComponentLinkedStorageAccountData

Properties that need to be specified to update linked storage accounts for an Application Insights component.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to