Az group exists

This article will discuss the syntax and usage of the az group exists command with certain examples of how to use this command.

Az group exists

This command helps you to check if a resource group exists or not.

Syntax

Below is the syntax of the az group exists command.

az group exists --Resource Group name

Az group exists Examples

You can execute the below command to ensure if the specified Resource Group exists or not.

az group exists --name appleinfo

After executing the above command, I got the expected output as false as shown below. Since the Resource Group with the same is not available.

Az group exists

Example-2:

After executing the below Azure PowerShell command, I got the expected output as True as the Resource Group with the same name is available.

az group exists --name Demo1234
az group exists --name

To ensure that the Resource Group with the same name is available, I logged in to Azure Portal and verified. You can check the screenshot below.

az group

You may also like the following articles

Wrapping Up

This article discussed the syntax and usage of the az group exists command. Thanks for reading this article !!!

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!