Set-AzSqlDatabase throws "You cannot call a method on a null-valued expression" when renaming a 18TB Hyperscale Gen5 database

Dom-Su BoChum 20 Reputation points
2024-01-17T13:31:15.4333333+00:00

I am trying to rename an 18TB Hyperscale Gen5 database using Set-AzSqlDatabase, but it throws an error "You cannot call a method on a null-valued expression". This issue occurs with larger databases, as we did not face any issues with smaller sized ones. Can anyone suggest any solutions to overcome this error? Thank you.

Azure SQL Database
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,793 questions
{count} votes

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.