sudo ufw allow 1433/tcp
sudo ufw reload
Test SQL Server Connection:
Use sqlcmd to connect and verify SQL Server:
sqlcmd -S localhost -U SA -P 'YourPassword'
Creating a Golden Image:
Generalize the VM (De-provision):
Remove VM-specific information and make it suitable for duplication.
Run: sudo waagent -deprovision+user -force
Deallocate and Generalize the VM:
In the Azure portal, stop the VM and deallocate it.
Run: az vm deallocate -g YourResourceGroup -n YourVMName
Generalize the VM: az vm generalize -g YourResourceGroup -n YourVMName
Create a VM Image:
Create a VM image from the generalized VM:
az image create -g YourResourceGroup -n YourImageName --source YourVMName
Deploying New VM Instances using Golden Image:
Create New VM from the Image:
To deploy new VM instances, create a VM from the image you created:
css
Copy code
az vm create -g YourResourceGroup -n NewVMName --image YourImageName --admin-username YourUsername --ssh-key-value ~/.ssh/id_rsa.pub
Configure Networking and Access:
Configure networking, security groups, and access rules as needed for your new VM instances.
Watch video Part 1 SQL Server in Azure VM Linux Ubuntu 20 04 online without registration, duration hours minute second in high quality. This video was added by user cloudphix 21 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 74 once and liked it 0 people.