0

In Prod environment for AZURE SQL database, I have S3 DTU and data max size is 10 GB. I want it to modify to 200GB, which I want to do by azure powershell script via pipeline(as other team members don't have access to PROD, so a pipeline can help).

Please help me on this. Thanks

1

1 Answer 1

1

First, please install the Azure PowerShell module

Then, you can use the Set-AzSqlDatabase command as following:

Connect-AzAccount
$GB = 1024*1024*1024
Set-AzSqlDatabase -ResourceGroupName "JackSQL" -ServerName "jacksql268" -DatabaseName "demodb" -MaxSizeBytes $(10*$GB)

Update

If you do not want to connect to Azure interactively, you can sign in with a service principal. This will be suitable for automation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.