Online Help > PowerShell Scripting

Invoke-RDMCreateDataSourceDatabase

SYNOPSIS

Create a new Database

 

SYNTAX

Invoke-RDMCreateDataSourceDatabase -AzureDatabaseEdition [AzureDatabaseEdition] <AzureDatabaseEdition> -AzureDatabaseMaxSize [AzureDatabaseMaxSize] <AzureDatabaseMaxSize> -AzureDatabaseServiceObjective [AzureDatabaseServiceObjective] <AzureDatabaseServiceObjective> -DataSource [DataSource] <PSDataSource> [<CommonParameters>]

 

DESCRIPTION

 

 

PARAMETERS

  -AzureDatabaseEdition <AzureDatabaseEdition>

Azure database edition.

 

  -AzureDatabaseMaxSize <AzureDatabaseMaxSize>

Azure database maximum size.

 

  -AzureDatabaseServiceObjective <AzureDatabaseServiceObjective>

Azure database service objective.

 

  -DataSource <PSDataSource>

(Required) PSSession object, must be retrieved from Get-RDMSession or created via New-RDMSession that you want to unparented.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help Invoke-RDMCreateDataSourceDatabase -detailed". For technical information, type "Get-Help Invoke-RDMCreateDataSourceDatabase -full".

 

EXAMPLE 1

PS C:\> $ds = New-RDMDataSource -SQLServer -Database 'PSTestCreation5' -Name 'PSSQLServerCreation' -Server 'localhost' -Username 'sa' -Password (ConvertTo-SecureString 'masterkey' –asplaintext –force); Invoke-RDMCreateDataSourceDatabase -DataSource $ds

 

Create a SQL Server data source and create the database

 

RELATED LINKS