How it works...
The script is an example of creating a Ubuntu 18.04-LTS virtual machine. At the beginning of the script, we define its parameters and their values.
This script is nothing but a collection of the commands you ran for the Provisioning a Ubuntu 18.04 LTS virtual machine using AzureRM.NetCore cmdlets recipe, with the difference being the initial declaration of the parameters. These parameters can be declared in the beginning, just like in this script, or be configured to take in input based on your requirements.
How it works is simple: the commands are run one line after another, while retaining the values of the variables. Once the script finishes running and the virtual machine is created, the buffer is returned for further ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access