MalcolmChalmers.com

Azure Tips and Tricks

HOME
Create Postgres Database or Server

========== CREATE A Postgres Database/Servers ===============

# create a resource group
az group create --name rg-postgres --location centralindia                                                                                                     

# create a database / server, using a template and parameters files (created via the web console and saved to disk)
az deployment group create --resource-group rg-postgres --template-file .\template.json --parameters parameters.json                                           

# remove the rg-postgres resource group and everything in it
az group delete --name rg-postgres --yes

Linux Grub Menu Options

In Linux the fine /etc/default/grub controls if and how long the grub menu is visible.
It is only visible if GRUB_TIMEOUT_STYLE=menu
If GRUB_TIMEOUT_STYLE is set to hidden or countdown the system will wait the value
in GRUB_TIMEOUT but NOT show any menu.
In Azure, you may see a count down in the top left of the 'Serial Console' screen

NOTE: if you change either of these vaules, dont forget to rebuild the actual boot
menu using grub2-mkconfig

Start and Stop VM

# Stops a VM and deallocates it
Stop-AzVM -ResourceGroupName "rg-sandbox" -Name "vm-redhat-01" -Force

# Starts a VM
Start-AzVM -ResourceGroupName "rg-sandbox" -Name "vm-redhat-01"


HOME