RequiredArgumentMissingError the following arguments are required --location -l in Azure

0 votes

Hi Team,

I am trying to create a group in Azure with the CLI command. But it is showing me the below error.

$ az group create -n MyResourceGroup
RequiredArgumentMissingError: the following arguments are required: --location/-l
Nov 10, 2020 in Azure by akhtar
• 38,170 points
193 views

1 answer to this question.

0 votes

Hi@akhtar,

Group in Azure is region-specific. You need to tell where you want to create the group. You can take help with the az group --help command or, you can modify your command, as shown below.

$ az group create -l westus -n MyResourceGroup
answered Nov 10, 2020 by MD
• 95,060 points

Related Questions In Azure

0 votes
2 answers

In Azure powershell Select-AzureSubscription command fetching error: the subscription name doesn't exist

The problem you're having is that the ...READ MORE

answered Aug 16, 2018 in Azure by Priyaj
• 58,100 points
4,578 views
0 votes
2 answers

How can I view the deployed files in Azure?

In Visual Studio, in the window "Server ...READ MORE

answered Aug 21, 2018 in Azure by Priyaj
• 58,100 points
2,019 views
0 votes
1 answer

Are Docker and Azure Service Fabric both the same?

It's confusing since Docker (the company) is ...READ MORE

answered Jun 1, 2018 in Azure by null_void
• 3,220 points
1,385 views
+1 vote
10 answers

How can the NuGet packages be used in Azure Functions?

Yes! Although the Azure Functions portal does ...READ MORE

answered Jun 8, 2018 in Azure by club_seesharp
• 3,450 points
10,853 views
0 votes
1 answer

What is Azure Cloud Service?

Azure Cloud Services is an example of ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 58,990 points
224 views
0 votes
2 answers

Azure DevOps and its need?

Azure DevOps is a hosted service providing ...READ MORE

answered Aug 28, 2020 in Azure by nbavis
• 380 points
338 views
0 votes
1 answer

What is Azure stack?

Azure Stack is a hybrid cloud computing software solution ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 58,990 points
198 views
0 votes
1 answer

How is Azure Cosmos db different from an Azure SQL db?

Azure Cosmos DB is Microsoft’s globally distributed database ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 58,990 points
938 views
0 votes
1 answer

error retrieving default location: Resource group 'MyResourceGroup' could not be found in Azure.

Hi@akhtar, I think you don't have the group ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,060 points
222 views
0 votes
1 answer

How to set the subcription in the Azure account?

Hi@akhtar, You can set your required subscription to ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,060 points
31 views