How to install Azure CLI and create a virtual machine using Azure CLI commands
To Install Azure CLI and create a virtual machine using Azure CLI commands.
Installation Procedure:
Step 1: Login to Microsoft Azure portal
Step2: Select virtual machine and click Create
Step 3: Enter the Project details Instance Details and Administration account details
Step 4: Enter the Disk Details and click next
Step 5: Enter the Networking Interface Details
Step 6: Set to default configuration in management, advanced and tags tab
Step 7: Review and Click Create to create the virtual machine
Step 8: The Deployment is successful
Step9: Click connect, select RDP and Download the RDP file
Step 10: Open the RDP file and Enter the Username and password
Through RDP we can use windows virtual machine
Next Go to the browser browses the azure cli installation and install package.
After install go to command prompt at run for Run as administrator.
First Run the following Command. You can see azure install or not
Now login to the Microsoft Azure at CLI using the following commands. Then, open prompt windows and enter the mail id and password. Finally, you can view the Azure login in CLI image.
Next run the Microsoft Azure help command
Next go to command prompt show for group list in Jason format and table format
Go to interactive mode add the new resource group in command line.
Next create Recourse Group New Linux Virtual machine in command prompt and list the virtual machine by using following commands.
Go to Azure portal refresh the page. Here you can see the New Created Virtual machine.
Next take SSH and Login the New virtual machine and show for virtual machine OS version.
Finally, go to the Azure CLI and exit from the CLI mode using following commands.
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Azure CLI and create a virtual machine using Azure CLI commands. Your feedback is much welcome.
Q
How to check azure command line is installed or not?
A
Open the command prompt and run the az command.
Q
What language does Azure CLI use?
A
Then you will be able to run Azure CLI commands. Azure CLI can be run in both PowerShell and CMD, but PowerShell gives you more tab-completion features.
Q
Is Azure CLI open source?
A
The Azure CLI, as the name suggests is a cross-platform and open-source command-line tool that we can use to create or manage resources in the Azure Portal.
Q
What is Azure CLI vs PowerShell?
A
Azure CLI has an installer that makes its commands executable in all four shell environments.
Azure PowerShell is a set of cmdlets packaged as a PowerShell module named Az; not an executable.
Windows PowerShell or PowerShell must be used to install the Az module
Azure PowerShell is a set of cmdlets packaged as a PowerShell module named Az; not an executable.
Windows PowerShell or PowerShell must be used to install the Az module
Q
What is a good reason to use the Azure CLI?
A
Because installing it on your local computer allows greater control, a better typing experience, an environment and shell you can customize to your liking, etc. You can install Azure CLI on Mac, Windows, or Linux. Or, if you prefer, you can even run it as a Docker image.