Ensure that you are logged in to the exc CLI. If you haven’t logged in yet, please refer to the Login and Registration Guide to complete the login process.
Verify Login Status
To verify if you are logged in, run the following command:
If you receive a 401 Unauthorized error, please log in again.
SSH key
To verify if you have a key associated:
If there are no keys create a new key using this guide and come back.
Use the following one-liner command to create a new n1.2c VM with the Ubuntu image. This command will automatically pass all the required parameters for a hassle-free experience.
Command Explanation:
The command uses awk to extract the necessary IDs for subnet, SSH key, and security group.
The --allocate_public_ipv4 flag is used to allocate a public IP address to your VM.