From time to time you need a virtual machine for troubleshooting purposes. At current client these VMs have to be removed when not in use, so I usually go via the portal to deploy a new one when needed, which is not too bad.
However, to speed things up a little bit, I created the same VM as I usually deploy as an ARM template. I have uploaded the files to Github (vm-srv-001-win2k19.json).
It's a Windows Server 2019. Sku is Standard_B2s with 2 vCPUs and 4 GB memory.
It requires an existing VNet and subnet (which is specified in the parameters file).
For the local administrator password, this references a key vault in Azure (this can be replaced by adding the password directly in the ARM template if needed).
User is: localadmin
Auto shutdown is enabled every day at 19.00 hrs CET, no email notification.
No public IP, so to access this VM you need access to the VNet and subnet from somewhere.
RDP port 3389 is enabled/opened in the local firewall.
No NSG as expecting to have an NSG associated with the subnet.
Remember to update path to correct subscription and key vault.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.