Azure / azure-cli

Azure Command-Line Interface
MIT License
3.99k stars 2.96k forks source link

az datafactory create #18774

Open amedeogautiero opened 3 years ago

amedeogautiero commented 3 years ago

`az datafactory create newer ending - - CLI version 2.26.0

Describe the bug Using az datafactory create in Azure Cloud Shell work file, but from local it never ending

To Reproduce From Azure Cloud Shell I use: az group create --name $RG --location westeurope az datafactory create --location westeurope --name $datafactory1 --resource-group $RG

It work fine

From local I use: $AzCred = Get-Credential -UserName "....." -Message "Azure Login" az login -u $AzCred.UserName -p $AzCred.GetNetworkCredential().Password --tenant .... az account set --subscription "....." az group create --name $RG --location westeurope az datafactory create --location westeurope --name $datafactory1 --resource-group $RG

Thew command az datafactory create never ending

Expected behavior In local, after az login, it must work as it do in cloud shell

Environment summary

az version { "azure-cli": "2.26.0", "azure-cli-core": "2.26.0", "azure-cli-telemetry": "1.0.6", "extensions": {} }

Additional context

yonzhan commented 3 years ago

datafactory

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shawnxzq, @lmy269.

Issue Details
> ### `az datafactory create newer ending - - CLI version 2.26.0 **Describe the bug** Using az datafactory create in Azure Cloud Shell work file, but from local it never ending **To Reproduce** _From Azure Cloud Shell I use:_ az group create --name $RG --location westeurope az datafactory create --location westeurope --name $datafactory1 --resource-group $RG It work fine From local I use: $AzCred = Get-Credential -UserName "....." -Message "Azure Login" az login -u $AzCred.UserName -p $AzCred.GetNetworkCredential().Password --tenant .... az account set --subscription "....." az group create --name $RG --location westeurope az datafactory create --location westeurope --name $datafactory1 --resource-group $RG _Thew command az datafactory create never ending_ **Expected behavior** In local, after az login, it must work as it do in cloud shell **Environment summary** az version { "azure-cli": "2.26.0", "azure-cli-core": "2.26.0", "azure-cli-telemetry": "1.0.6", "extensions": {} } **Additional context**
Author: amedeogautiero
Assignees: Juliehzl
Labels: `Data Factory`, `Service Attention`
Milestone: Jul 2021 (2021-08-03)
Juliehzl commented 3 years ago

Hi @amedeogautiero , could you add --debug in your command and provide debug information? I just tested locally in location westus and it works fine.

amedeogautiero commented 3 years ago

Hi @Juliehzl , My script is:

$prefix = "lynxpilota1" $RG = "RG_DataFactory"

--------------------------------------------------------------------

$suffix = Get-Date -Format "yyyyMMdd" cls $AzCred = Get-Credential -UserName "amedeo.gautiero......." -Message "Azure Login" az login -u $AzCred.UserName -p $AzCred.GetNetworkCredential().Password --tenant "...." az account set --subscription "Sottoscrizione di Visual Studio Enterprise" az group create --name $RG --location westeurope $datafactory1 = "$($prefix)datafactory$($suffix)" az datafactory create --location westeurope --name $datafactory1 --resource-group $RG --debug

I want you to notice that the resource group RG_DataFactory is greated correctly, but seems that az datafactory create remain waiting. Including --debug show the follow log, but che command not end.

az : DEBUG: cli.knack.cli: Command arguments: ['datafactory', 'create', '--location', 'westeurope', '--name', 'lynxpilota1datafactory20210709', '--resource-group', 'RG_DataFactory', '--debug'] In C:\Users\amedeo.gautiero\Documents\Clienti\Lynx\Azure\Create_DataFactory_old.ps1:17 car:1

DEBUG: cli.knack.cli: init debug log: Cannot enable color. DEBUG: cli.knack.cli: Event: Cli.PreExecute [] DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x03E14268>, <function OutputProducer.on_global_arguments at 0x03E91100>, <function CLIQuery.on_global_arguments at 0x03EA5CD0>] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] DEBUG: cli.azure.cli.core: No module found from index for '['datafactory', 'create', '--location', 'westeurope', '--name', 'lynxpilota1datafactory20210709', '--resource-group', 'RG_DataFactory', '--debug']' DEBUG: cli.azure.cli.core: Loading all modules and extensions DEBUG: cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'config', 'configure', 'consumption', 'container', 'cosmosdb', 'databoxedge', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm'] DEBUG: cli.azure.cli.core: Loading command modules: DEBUG: cli.azure.cli.core: Name Load Time Groups Commands DEBUG: cli.azure.cli.core: acr 0.011 27 113 DEBUG: cli.azure.cli.core: acs 0.240 8 53 DEBUG: cli.azure.cli.core: advisor 0.003 3 6 DEBUG: cli.azure.cli.core: ams 0.008 20 90 DEBUG: cli.azure.cli.core: apim 0.007 9 50 DEBUG: cli.azure.cli.core: appconfig 0.005 7 33 DEBUG: cli.azure.cli.core: appservice 0.017 63 223 DEBUG: cli.azure.cli.core: aro 0.011 1 7 DEBUG: cli.azure.cli.core: backup 0.007 13 50 DEBUG: cli.azure.cli.core: batch 0.040 31 90 DEBUG: cli.azure.cli.core: batchai 0.005 10 32 DEBUG: cli.azure.cli.core: billing 0.013 19 52 DEBUG: cli.azure.cli.core: botservice 0.007 12 42 DEBUG: cli.azure.cli.core: cdn 0.011 39 132 DEBUG: cli.azure.cli.core: cloud 0.004 1 7 DEBUG: cli.azure.cli.core: cognitiveservices 0.004 5 21 DEBUG: cli.azure.cli.core: config 0.004 2 7 DEBUG: cli.azure.cli.core: configure 0.004 3 9 DEBUG: cli.azure.cli.core: consumption 0.006 8 9 DEBUG: cli.azure.cli.core: container 0.004 1 11 DEBUG: cli.azure.cli.core: cosmosdb 0.013 43 150 DEBUG: cli.azure.cli.core: databoxedge 0.008 5 27 DEBUG: cli.azure.cli.core: deploymentmanager 0.005 7 30 DEBUG: cli.azure.cli.core: dla 0.008 23 62 DEBUG: cli.azure.cli.core: dls 0.010 7 41 DEBUG: cli.azure.cli.core: dms 0.018 3 22 DEBUG: cli.azure.cli.core: eventgrid 0.010 18 61 DEBUG: cli.azure.cli.core: eventhubs 0.007 14 51 DEBUG: cli.azure.cli.core: extension 0.003 1 7 DEBUG: cli.azure.cli.core: feedback 0.003 1 1 DEBUG: cli.azure.cli.core: find 0.004 1 1 DEBUG: cli.azure.cli.core: hdinsight 0.005 8 39 DEBUG: cli.azure.cli.core: interactive 0.001 1 1 DEBUG: cli.azure.cli.core: iot 0.032 16 71 DEBUG: cli.azure.cli.core: keyvault 0.012 19 117 DEBUG: cli.azure.cli.core: kusto 0.005 3 14 DEBUG: cli.azure.cli.core: lab 0.007 11 34 DEBUG: cli.azure.cli.core: managedservices 0.004 3 8 DEBUG: cli.azure.cli.core: maps 0.004 3 7 DEBUG: cli.azure.cli.core: marketplaceordering 0.011 1 2 DEBUG: cli.azure.cli.core: monitor 0.011 32 133 DEBUG: cli.azure.cli.core: natgateway 0.004 3 6 DEBUG: cli.azure.cli.core: netappfiles 0.043 13 56 DEBUG: cli.azure.cli.core: network 0.065 135 622 DEBUG: cli.azure.cli.core: policyinsights 0.005 6 12 DEBUG: cli.azure.cli.core: privatedns 0.007 14 66 DEBUG: cli.azure.cli.core: profile 0.004 2 9 DEBUG: cli.azure.cli.core: rdbms 0.166 46 197 DEBUG: cli.azure.cli.core: redis 0.005 4 24 DEBUG: cli.azure.cli.core: relay 0.005 10 37 DEBUG: cli.azure.cli.core: reservations 0.004 5 12 DEBUG: cli.azure.cli.core: resource 0.012 39 181 DEBUG: cli.azure.cli.core: role 0.004 17 61 DEBUG: cli.azure.cli.core: search 0.004 7 22 DEBUG: cli.azure.cli.core: security 0.006 36 81 DEBUG: cli.azure.cli.core: servicebus 0.007 17 64 DEBUG: cli.azure.cli.core: servicefabric 0.006 26 75 DEBUG: cli.azure.cli.core: signalr 0.005 6 20 DEBUG: cli.azure.cli.core: sql 0.015 44 174 DEBUG: cli.azure.cli.core: sqlvm 0.005 4 17 DEBUG: cli.azure.cli.core: storage 0.037 53 247 DEBUG: cli.azure.cli.core: synapse 0.012 34 143 DEBUG: cli.azure.cli.core: util 0.003 2 4 DEBUG: cli.azure.cli.core: vm 0.027 45 235 DEBUG: cli.azure.cli.core: Total (64) 1.048 1070 4281 DEBUG: cli.azure.cli.core: Loaded 1060 groups, 4281 commands. DEBUG: cli.azure.cli.core: Updated command index in 0.012 seconds. DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x044E11D8>] DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\amedeo.gautiero.azure\commands\2021-07-09.13-57-29.unknown_command.40936.log'. INFO: az_command_data_logger: command args: datafactory create --location {} --name {} --resource-group {} --debug DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x04526388>, <function register_global_query_examples_argument..register_query_examples at 0x04535A00>] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x04535A48>, <function register_cache_arguments..add_cache_arguments at 0x04535AD8>] DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x04CAC6E8>]

amedeogautiero commented 3 years ago

Hi, I have a new. If I execute che command az datafactory create.... from powershell it never end, but if I execute it from CMD it shows the message : "The command requires the extension datafactory. Do you want to install it now? The command will continue to run after the extension is installed. (Y/n):". So, after pressing Y it install the extension and then it works in CMD and also in powershell

Thank you

Amedeo
shawnxzq commented 3 years ago

@Juliehzl For this CLI issues, looks like service team (ADF) can't do anything at moment, please let us know if we find anything we can help, or please remove the service attention tag first, thanks!

shawnxzq commented 3 years ago

@Juliehzl Any update on this?