You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the SQL VM resource provider has been registered to your subscription, you can then register your SQL Server VM with the resource provider using Azure CLI.
159
159
160
160
#### With Azure CLI
161
-
Register SQL Server VM using Azure CLI with the following code snippet:
161
+
162
+
Register SQL Server VM using Azure CLI with the below code snippet:
162
163
163
164
```azurecli
164
165
# Register your existing SQL Server VM with the new resource provider
165
-
az sql vm create -n <VMName> -g <ResourceGroupName> -l <VMLocation>
166
+
az sql vm create -n <VMName> -g <ResourceGroupName> -l <VMLocation> --license-type <AHUB or PAYG>
166
167
```
168
+
167
169
#### With PowerShell
168
170
Register SQL Server VM using PowerShell with the following code snippet:
0 commit comments