次の方法で共有


Database.SourceResourceId プロパティ

定義

このデータベースの作成操作に関連付けられているソースのリソース識別子を取得または設定します。

sourceResourceId を指定する場合、sourceDatabaseId、recoverableDatabaseId、restorableDroppedDatabaseId、sourceDatabaseDeletionDate を指定せず、CreateMode を PointInTimeRestore、Restore、または Recover にする必要があります。

createMode が PointInTimeRestore の場合、sourceResourceId は既存のデータベースまたは既存の SQL プールのリソース ID である必要があり、restorePointInTime を指定する必要があります。

createMode が Restore の場合、sourceResourceId は、復元可能な削除されたデータベースまたは復元可能な削除された SQL プールのリソース ID である必要があります。

createMode が Recover の場合、sourceResourceId は回復可能なデータベースまたは回復可能な SQL プールのリソース ID である必要があります。

このプロパティを使用すると、DataWarehouse エディションでのみサポートされているサブスクリプション間で復元できます。

ソース サブスクリプションがターゲット サブスクリプションとは異なるテナントに属している場合、"x-ms-authorization-auxiliary" ヘッダーにはソース テナントの認証トークンが含まれている必要があります。 "x-ms-authorization-auxiliary" ヘッダーの詳細については、次を参照してください。 https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant

[Newtonsoft.Json.JsonProperty(PropertyName="properties.sourceResourceId")]
public string SourceResourceId { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="properties.sourceResourceId")>]
member this.SourceResourceId : string with get, set
Public Property SourceResourceId As String

プロパティ値

属性
Newtonsoft.Json.JsonPropertyAttribute

適用対象