Azure / autorest.cli

Autorest plugin to Azure CLI command modules and other tooling
MIT License
8 stars 11 forks source link

fail to create factory if not specify location parameter #97

Open arrownj opened 4 years ago

arrownj commented 4 years ago

Meet error when create resource group

Command:

az datafactory create -g RESOUCE_GROUP --name testdatafactory1

Expected:

data factory is created, use the resource group default location

Actual:

below error reported

The location property is required for this definition.

arrownj commented 4 years ago

Also meet problem while update location value.

Command:

az datafactory create -g RESOURCE_GROUP --name testdatafactory1 --location eastus az datafactory update -g RESOURCE_GROUP --name testdatafactory1 --location westus

Expected:

testdatafactory1's location value is update from eastus to westus

Actual:

below error reported

The resource 'testdatafactory1 ' already exists in location 'eastus' in resource group 'RESOURCE_GROUP'. A resource with the same name cannot be created in location 'westus'. Please select a new resource name.