Renaming Standalone Dedicated SQL Pool with PowerShell

PS 401 Reputation points
2023-08-07T04:38:17.1566667+00:00

Hello,

I need to rename an existing Standalone Dedicated SQL Pool(formerly SQL DW) using PowerShell scripts. Is there any way to do this?

Thank you for your help in advance.

Azure SQL Database
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,317 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,922 questions
{count} votes

Accepted answer
  1. Limitless Technology 44,686 Reputation points
    2023-08-07T10:27:10.31+00:00

    Hello there,

    Renaming a Standalone Dedicated SQL Pool (formerly known as SQL Data Warehouse) in Azure Synapse Analytics can be achieved using PowerShell and the Azure PowerShell module. Here's a general outline of the steps you can follow to rename a dedicated SQL pool:

    Install Azure PowerShell Module:

    If you haven't already, install the Azure PowerShell module. You can install it using the following command:

    Install-Module -Name Az -AllowClobber -Scope CurrentUser

    Connect to Azure:

    Use the Connect-AzAccount cmdlet to sign in to your Azure account:

    Connect-AzAccount

    Rename Dedicated SQL Pool:

    Use the Set-AzSqlDatabase cmdlet to rename the dedicated SQL pool. You need to provide the resource group name, dedicated SQL pool name (old name), and the new name you want to assign. Here's the PowerShell command:

    Set-AzSqlDatabase -ResourceGroupName <ResourceGroupName> -ServerName <ServerName> -DatabaseName <OldDatabaseName> -NewName <NewDatabaseName>

    Replace <ResourceGroupName>, <ServerName>, <OldDatabaseName>, and <NewDatabaseName> with your actual resource group name, server name, old database name, and the new name you want to assign.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.