#azcli #Azure
Azure CLI is a cross-platform command-line tool which helps to manage Azure resources.
Some resources managed by Azure CLI e.g. Resource Group natively support the exists command to check if the resource exists.
In this video, we see how to use a trick to check if a resource exists in Azure based on the JSON output.
This trick can be applied to any CLI not just Azure CLI.
00:00 Introduction
0:45 - Azure CLI docs link
1:35 - Install Azure CLI
2:00 - Azure CLI in action in Azure Cloud Shell
4:00 - Install Azure CLI using Chocolatey
5:00 - Az help command
6:00 - Check Resource Group using Azure CLI
8:20 - Az CLI global help command
9:00 - JMESPath Query
11:00 - Customize output of command using --output option
14:55 - Check ResourceGroup Exists command
16:45 - Check for SQL server using Azure CLI
21:55 - Trick to check for existence using --query filter
28:13 - Check for Azure KeyVault
-------------------------------------------------------------------------------------------------------------------------------------------------------------
References
Overview of Azure CLI - https://docs.microsoft.com/en-us/cli/...
Install Azure CLI - https://docs.microsoft.com/en-us/cli/...
YouTube video on installing software using Chocolatey - • How to Install and Upgrade software with C...
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Connect with me here:
Subscribe: / @nilesh-gule
GitHub: https://github.com/nileshgule
Twitter: / nileshgule
Website: https://www.HandsOnArchitect.com/
LinkedIn : / nileshgule