SqlDatabase.DefinitionStages.WithImportFrom<ParentT> Interface

Type Parameters

ParentT

the stage of the parent definition to return to after attaching this definition

public static interface SqlDatabase.DefinitionStages.WithImportFrom

The SQL Database definition to import a BACPAC file as the source database.

Method Summary

Modifier and Type Method and Description
abstract WithAuthentication<ParentT> importFrom(StorageAccount storageAccount, String containerName, String fileName)

Creates a new database from a BACPAC file.

abstract WithStorageKey<ParentT> importFrom(String storageUri)

Creates a new database from a BACPAC file.

Method Details

importFrom

public abstract SqlDatabase.DefinitionStages.WithAuthentication importFrom(StorageAccount storageAccount, String containerName, String fileName)

Creates a new database from a BACPAC file.

Parameters:

storageAccount - an existing storage account to be used
containerName - the container name within the storage account to use
fileName - the exported database file name

Returns:

The next stage of the definition.

importFrom

public abstract SqlDatabase.DefinitionStages.WithStorageKey importFrom(String storageUri)

Creates a new database from a BACPAC file.

Parameters:

storageUri - the source URI for the database to be imported

Returns:

The next stage of the definition.

Applies to