次の方法で共有


ComponentLinkedStorageAccountCollection.CreateOrUpdate メソッド

定義

Application Insights コンポーネントの現在のリンクされたストレージ アカウントを置き換えます。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}
  • 操作IdComponentLinkedStorageAccounts_CreateAndUpdate
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)

パラメーター

waitUntil
WaitUntil

Completed メソッドがサービスで実行時間の長い操作が完了するまで戻るのを待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

storageType
StorageType

リンクされたストレージ アカウントの Application Insights コンポーネント データ ソースの種類。

data
ComponentLinkedStorageAccountData

Application Insights コンポーネントのリンクされたストレージ アカウントを更新するために指定する必要があるプロパティ。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

data が null です。

適用対象