Forum Discussion
JasonYeung
Oct 17, 2025Brass Contributor
Creating Azure SQL VM with same name as VM
Hi, Currently we have a resource group, which contains a Virtual Machine and SQL Virtual Machine (and a few other resources). The VM and SQL VM has the same name: I want to move this resourc...
JasonYeung
Oct 20, 2025Brass Contributor
Hi Kidd_Ip​ ,
Thanks for your help! I ran the command:
Register-AzSqlVM -ResourceGroupName "YourRG" -Name "YourVMName" -LicenseType PAYG
I received the following error:
Register-AzSqlVM : The term 'Register-AzSqlVM' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
I gather I have to import a module to run this command. I was wondering what module do I have to import or if I need to do something else?
Jason