Azure Virtual Machine PowerShell samples

The following table includes links to PowerShell scripts samples that create and manage Linux virtual machines.

Create virtual machines
Create a fully configured virtual machine Creates a resource group, virtual machine, and all related resources.
Create a VM with Docker enabled Creates a virtual machine, configures this VM as a Docker host, and runs an NGINX container.
Create a VM and run configuration script Creates a virtual machine and uses the Azure Custom Script extension to install NGINX.
Create a VM with WordPress installed Creates a virtual machine and uses the Azure Custom Script extension to install WordPress.
Monitor virtual machines
Monitor a VM with Operations Management Suite Creates a virtual machine, installs the Operations Management Suite agent, and enrolls the VM in an OMS Workspace.