Delen via


Database.SourceResourceId Property

Definition

Gets or sets the resource identifier of the source associated with the create operation of this database.

When sourceResourceId is specified, sourceDatabaseId, recoverableDatabaseId, restorableDroppedDatabaseId and sourceDatabaseDeletionDate must not be specified and CreateMode must be PointInTimeRestore, Restore or Recover.

When createMode is PointInTimeRestore, sourceResourceId must be the resource ID of an existing database or existing sql pool, and restorePointInTime must be specified.

When createMode is Restore, sourceResourceId must be the resource ID of restorable dropped database or restorable dropped sql pool.

When createMode is Recover, sourceResourceId must be the resource ID of recoverable database or recoverable sql pool.

This property allows to restore across subscriptions which is only supported for DataWarehouse edition.

When source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see 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

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Applies to