Azure Command-Line Interface Point (CLI) is a bunch of commands that make and oversee Azure assets. Azure CLI is intended to simplify working with your Azure assets and mechanizing your work processes. It may be run on Windows, macOS, Linux, or inside the Azure Cloud Shell, giving adaptability to various working frameworks.Why Use Azure CLI?Azure CLI is a powerful tool that offers several advantages:Effortlessness: Azure CLI orders are natural and transparent, making it simple to oversee Azure assets.Cross-Platform: Azure CLI is accessible on different stages, including Windows, macOS, and Linux.Integration: It coordinates well with different instruments and scripts, taking into account consistent DevOps work processes.PrerequisitesBefore downloading and installing Azure CLI, ensure your system meets the following requirements:Operating System: Windows, macOS, or Linux.Permissions: Administrative or root permissions to install software.Download and InstallationWindowsDownload the Installer: Visit the Azure CLI download page and download the Windows installer (MSI record).Run the Installer: Double-tap the downloaded MSI record to launch the installer.Follow the Installation Steps: Follow the on-screen guidelines to finish the establishment.Verify the Installation: Open Order Brief and type az -- version to confirm that Azure CLI is introduced accurately.MacOSInstall Homebrew: If you don’t have Homebrew installed, open Terminal and run:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install Azure CLI: Run the following command to install Azure CLI using Homebrew:brew update && brew install azure-cliVerify the Installation: Open Terminal and type az--version to ensure Azure CLI is installed correctly.LinuxUpdate Repository Information: Open Terminal and update your package repository information by running:sudo apt-get updateInstall Dependencies: Install necessary packages:sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg Download and Install Microsoft Signing Key:curl -sL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -Add the Azure CLI Repository:sudo add-apt-repository "$(curl -sL https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list)"Install Azure CLI:sudo apt-get update sudo apt-get install azure-cliVerify the Installation: Open Terminal and type “az --version” to confirm the installation.Getting Started with Azure CLIOnce introduced, you can begin utilizing Azure CLI to deal with your Azure assets. Here are some basic steps:Logging InTo utilize Azure CLI, you want to sign in to your Azure record. Open your command interface and run:az loginThis command will open an internet browser window where you can sign in to your Azure record. After signing in, you'll see a rundown of your subscriptions in the command line interface.Basic CommandsHere are some basic Azure CLI commands to get you started:List Subscriptionsaz account listSet a Subscriptionaz account set --subscription "subscription-id"List Resource Groupsaz group listCreate a Resource Groupaz group create --name MyResourceGroup --location eastusDelete a Resource Groupaz group delete --name MyResourceGroupAdvance UsageAzure CLI can be used for more advanced tasks and automation. Here are some examples:Managing Virtual MachinesCreate a Virtual Machine:az vm create \ --resource-group MyResourceGroup \ --name MyVM \ --image UbuntuLTS \ --admin-username azureuser \ --generate-ssh-keysStart a Virtual Machine:az vm start --resource-group MyResourceGroup --name MyVMStop a Virtual Machine:az vm stop --resource-group MyResourceGroup --name MyVMDelete a Virtual Machine:az vm delete --resource-group MyResourceGroup --name MyVMManaging Storage AccountsCreate a Storage Account:az storage account create \ --name mystorageaccount \ --resource-group MyResourceGroup \ --location eastus \ --sku Standard_LRSList Storage Accounts:az storage account list --resource-group MyResourceGroupDelete a Storage Account:az storage account delete --name mystorageaccount --resource-group MyResourceGroupScripting and AutomationAzure CLI is ideal for prearranging and automating. You can compose contents to mechanize undertakings, for example, conveying assets, setting up conditions, from there, the sky is the limit. Here is an illustration of a straightforward Slam content to make a virtual machine:#!/bin/bash # Variables resourceGroupName="MyResourceGroup" location="eastus" vmName="MyVM" image="UbuntuLTS" adminUser="azureuser" Create Resource Groupaz group create --name $resourceGroupName --location $locationCreate Virtual Machineaz vm create \ --resource-group $resourceGroupName \ --name $vmName \ --image $image \ --admin-username $adminUser \ --generate-ssh-keysSave the script to a file, make it executable, and run it:chmod +x create-vm.sh ./create-vm.shUsing Azure Cloud ShellIf you would truly prefer not to introduce Azure CLI on your nearby machine, you can use Azure Cloud Shell, a program-based shell that gives a comparable handiness as Azure CLI. To get to Azure Cloud Shell, sign in to the Azure Entrance and snap the Cloud Shell image at the highest point of the page. From that point, you can run Azure CLI orders straightforwardly in your program.Best PracticesTo make the most out of Azure CLI, think about the accompanying accepted procedures:Use Resource Tags: Tagging assets are put together and overseen effectively. Utilize the label's choice while making assets.Automate with Scripts: Mechanize tedious assignments utilizing scripts. This diminishes manual blunders and saves time.Use Configuration Files: Store frequently involved boundaries in arrangement records to work on order execution.Monitor and Optimize: Routinely screen your Azure assets and enhance their use actually to oversee costs.Azure CLI is a strong and flexible instrument that works on the administration of Azure assets. Whether you are a designer, sysadmin, or DevOps engineer, Azure CLI can assist you with smoothing out your work processes and mechanize undertakings. By following this aide, you ought to now have the option to download, introduce, and utilize Azure CLI successfully. Explore the different orders and elements, and influence prearranging and mechanization to improve your efficiency in overseeing Azure assets.Some new commands recently introduced in the Azure CLICommandDescriptionVersion Introducedaz ad app credential resetResets the credentials for an Azure Active Directory application.2.24.0az vmss createCreates a Virtual Machine Scale Set.2.25.0az network vnet peering createCreates a peering connection between virtual networks.2.26.0az aks update --enable-addonsUpdates an AKS cluster to enable or disable addons.2.27.0az functionapp config appsettings setSets application settings for a Function App.2.28.0az monitor metrics listLists available metrics for a resource.2.29.0az storage blob upload-batchUploads files to a blob storage container in batch.2.30.0az sql db replication link createCreates a replication link for an SQL database.2.31.0Bonus - Important Azure CLI CommandsGeneral CommandsLogin and Account Managementaz login: Log in to Azureaz account show: Show the details of the current subscriptionaz account list: List all subscriptionsaz account set --subscription "My Subscription": Set the active subscriptionResource Groupsaz group create --name MyResourceGroup --location eastus: Create a resource groupaz group list: List all resource groupsaz group delete --name MyResourceGroup: Delete a resource groupVirtual MachinesCreation and Managementaz vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --admin-username azureuser --generate-ssh-keys: Create a VMaz vm start --resource-group MyResourceGroup --name MyVM: Start a VMaz vm stop --resource-group MyResourceGroup --name MyVM: Stop a VMaz vm restart --resource-group MyResourceGroup --name MyVM: Restart a VMaz vm delete --resource-group MyResourceGroup --name MyVM: Delete a VMScaling and Configurationaz vm resize --resource-group MyResourceGroup --name MyVM --size Standard_DS2_v2: Resize a VMaz vm show --resource-group MyResourceGroup --name MyVM: Show VM detailsaz vm list: List all VMs in a subscriptionStorageStorage Accountsaz storage account create --name mystorageaccount --resource-group MyResourceGroup --location eastus --sku Standard_LRS: Create a storage accountaz storage account list: List storage accountsaz storage account delete --name mystorageaccount --resource-group MyResourceGroup: Delete a storage accountBlobsaz storage container create --name mycontainer --account-name mystorageaccount: Create a blob containeraz storage blob upload --container-name mycontainer --file myfile.txt --name myblob: Upload a blobaz storage blob download --container-name mycontainer --name myblob --file myfile.txt: Download a blobaz storage blob delete --container-name mycontainer --name myblob: Delete a blobNetworkingVirtual Networks and Subnetsaz network vnet create --resource-group MyResourceGroup --name MyVnet --address-prefix 10.0.0.0/16: Create a virtual networkaz network vnet subnet create --resource-group MyResourceGroup --vnet-name MyVnet --name MySubnet --address-prefix 10.0.0.0/24: Create a subnetNetwork Security Groupsaz network nsg create --resource-group MyResourceGroup --name MyNSG: Create a network security groupaz network nsg rule create --resource-group MyResourceGroup --nsg-name MyNSG --name MyRule --priority 100 --direction Inbound --access Allow --source-address-prefix '*' --source-port-range '*' --destination-address-prefix '*' --destination-port-range 22 --protocol Tcp: Create an NSG ruleDatabasesSQL Databaseaz sql server create --name myserver --resource-group MyResourceGroup --location eastus --admin-user myadmin --admin-password MyPassword123: Create a SQL serveraz sql db create --resource-group MyResourceGroup --server myserver --name mydatabase --service-objective S0: Create a SQL databaseaz sql db list --resource-group MyResourceGroup --server myserver: List SQL databasesCosmos DBaz cosmosdb create --name mycosmosdb --resource-group MyResourceGroup: Create a Cosmos DB accountaz cosmosdb database create --name mydatabase --resource-group MyResourceGroup --account-name mycosmosdb: Create a database in Cosmos DBKubernetesAKS (Azure Kubernetes Service)az aks create --resource-group MyResourceGroup --name MyAKSCluster --node-count 3 --enable-addons monitoring --generate-ssh-keys: Create an AKS clusteraz aks get-credentials --resource-group MyResourceGroup --name MyAKSCluster: Get credentials for AKS clusteraz aks delete --resource-group MyResourceGroup --name MyAKSCluster: Delete an AKS clusterIdentity and Access ManagementRole Assignmentsaz role assignment create --assignee <principal-id> --role <role-name> --resource-group MyResourceGroup: Assign a role to a user, group, or service principalaz role assignment delete --assignee <principal-id> --role <role-name> --resource-group MyResourceGroup: Remove a role assignmentFunction AppsCreating and Managing Function Appsaz functionapp create --resource-group MyResourceGroup --consumption-plan-location eastus --runtime python --functions-version 3 --name myfunctionapp --storage-account mystorageaccount: Create a function appaz functionapp list: List all function appsaz functionapp delete --name myfunctionapp --resource-group MyResourceGroup: Delete a function appRead Morehttps://devopsden.io/article/boost-your-data-strategy-with-azure-databricksFollow us onhttps://www.linkedin.com/company/devopsden/