Q: How to make Azure Bash CLI commands as parameters based? Azure CLI command should be Parameters based, so that user can enter his any values to parameters and deployment should be proceed.any one know how to set this parameter.
example- I want to create one azure resource group and the value is user-defined.
az group create --name "user-defined" --location "East US 2"

A: In Windows, you could use Read-Host to promote user to input the parameter value.
$groupName = Read-Host -Prompt 'Input your group  name'
az group create --name $groupName --location "East US 2"


In Linux, you could use read -p to promote user to input the parameter value.
read -p "Enter your groupname: " myname
az group create --name $myname --location "East US 2"


