diff --git a/docs/preview/02-Features/powershell/azure-sql.md b/docs/preview/02-Features/powershell/azure-sql.md index 6a216be1..b76569d2 100644 --- a/docs/preview/02-Features/powershell/azure-sql.md +++ b/docs/preview/02-Features/powershell/azure-sql.md @@ -42,14 +42,14 @@ Make sure that the credentials that you provide can write tables to the database **Example with defaults** ```powershell -PS> RunDatabaseScript -ServerName "my-server-name" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" +PS> Invoke-AzSqlDatabaseMigration -ServerName "my-server-name.database.windows.net" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" # Looking for SQL scripts in folder: ./sqlScripts ``` **Example with custom values** ```powershell -PS> RunDatabaseScript -ServerName "my-server-name" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" -ScriptsFolder "$PSScriptRoot/sql-scripts" -ScriptsFileFilter "*.MyScript.sql" -DatabaseSchema "custom" +PS> Invoke-AzSqlDatabaseMigration -ServerName "my-server-name.database.windows.net" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" -ScriptsFolder "$PSScriptRoot/sql-scripts" -ScriptsFileFilter "*.MyScript.sql" -DatabaseSchema "custom" # Looking for SQL scripts in folder: ./sql-scripts ``` diff --git a/docs/versioned_docs/version-v0.5/02-Features/powershell/azure-sql.md b/docs/versioned_docs/version-v0.5/02-Features/powershell/azure-sql.md index d48d6896..530b30ae 100644 --- a/docs/versioned_docs/version-v0.5/02-Features/powershell/azure-sql.md +++ b/docs/versioned_docs/version-v0.5/02-Features/powershell/azure-sql.md @@ -42,14 +42,14 @@ Make sure that the credentials that you provide can write tables to the database **Example with defaults** ```powershell -PS> RunDatabaseScript -ServerName "my-server-name" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" +PS> Invoke-AzSqlDatabaseMigration -ServerName "my-server-name.database.windows.net" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" # Looking for SQL scripts in folder: ./sqlScripts ``` **Example with custom values** ```powershell -PS> RunDatabaseScript -ServerName "my-server-name" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" -ScriptsFolder "$PSScriptRoot/sql-scripts" -ScriptsFileFilter "*.MyScript.sql" -DatabaseSchema "custom" +PS> Invoke-AzSqlDatabaseMigration -ServerName "my-server-name.database.windows.net" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" -ScriptsFolder "$PSScriptRoot/sql-scripts" -ScriptsFileFilter "*.MyScript.sql" -DatabaseSchema "custom" # Looking for SQL scripts in folder: ./sql-scripts ```