Open huqianghui opened 4 years ago
@huqianghui Thanks for your feedback! We will investigate and update as appropriate.
@huqianghui It's listed in the API spec as "The name of the Deployment resource." and is indeed a required parameter. I will assign this to the doc author to add to the cli docs.
Hi, I tried to use azure-cli to create deployment. I have set the --name parameter but still get the validation error: Parameter 'deployment_name' can not be None.
Please see detail trace log below.
chnmct0504C74:piggymetrics huqianghui$ az spring-cloud app deployment create --app gateway --name gateway-deployment --jar-path ./gateway/target/gateway.jar --debug --verbose Command arguments: ['spring-cloud', 'app', 'deployment', 'create', '--app', 'gateway', '--name', 'gateway-deployment', '--jar-path', './gateway/target/gateway.jar', '--debug', '--verbose'] Event: Cli.PreExecute [] Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x10825a8c0>, <function OutputProducer.on_global_arguments at 0x108325710>, <function CLIQuery.on_global_arguments at 0x108354320>] Event: CommandInvoker.OnPreCommandTableCreate [] Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm'] Loaded module 'acr' in 0.007 seconds. Loaded module 'acs' in 0.010 seconds. Loaded module 'advisor' in 0.002 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'ams' in 0.006 seconds. Loaded module 'apim' in 0.003 seconds. Loaded module 'appconfig' in 0.003 seconds. Loaded module 'appservice' in 0.022 seconds. Loaded module 'backup' in 0.004 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'batch' in 0.012 seconds. Loaded module 'batchai' in 0.004 seconds. Loaded module 'billing' in 0.003 seconds. Loaded module 'botservice' in 0.004 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'cdn' in 0.006 seconds. Loaded module 'cloud' in 0.003 seconds. Loaded module 'cognitiveservices' in 0.003 seconds. Loaded module 'configure' in 0.002 seconds. Loaded module 'consumption' in 0.004 seconds. Loaded module 'container' in 0.003 seconds. Loaded module 'cosmosdb' in 0.008 seconds. Loaded module 'deploymentmanager' in 0.003 seconds. Loaded module 'dla' in 0.006 seconds. Loaded module 'dls' in 0.005 seconds. Loaded module 'dms' in 0.003 seconds. Loaded module 'eventgrid' in 0.003 seconds. Loaded module 'eventhubs' in 0.006 seconds. Loaded module 'extension' in 0.001 seconds. Loaded module 'feedback' in 0.001 seconds. Loaded module 'find' in 0.002 seconds. Loaded module 'hdinsight' in 0.003 seconds. Loaded module 'interactive' in 0.000 seconds. Loaded module 'iot' in 0.005 seconds. Loaded module 'iotcentral' in 0.004 seconds. Loaded module 'keyvault' in 0.007 seconds. Loaded module 'kusto' in 0.003 seconds. Loaded module 'lab' in 0.004 seconds. Loaded module 'managedservices' in 0.002 seconds. Loaded module 'maps' in 0.002 seconds. Loaded module 'monitor' in 0.009 seconds. Loaded module 'natgateway' in 0.002 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'netappfiles' in 0.006 seconds. Loaded module 'network' in 0.032 seconds. Loaded module 'policyinsights' in 0.003 seconds. Loaded module 'privatedns' in 0.005 seconds. Loaded module 'profile' in 0.002 seconds. Loaded module 'rdbms' in 0.008 seconds. Loaded module 'redis' in 0.003 seconds. Loaded module 'relay' in 0.004 seconds. Loaded module 'reservations' in 0.003 seconds. Loaded module 'resource' in 0.008 seconds. Loaded module 'role' in 0.005 seconds. Loaded module 'search' in 0.003 seconds. Loaded module 'security' in 0.004 seconds. Loaded module 'servicebus' in 0.009 seconds. Loaded module 'servicefabric' in 0.003 seconds. Loaded module 'signalr' in 0.002 seconds. Loaded module 'sql' in 0.008 seconds. Loaded module 'sqlvm' in 0.004 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'storage' in 0.032 seconds. Loaded module 'vm' in 0.019 seconds. Loaded all modules in 0.344 seconds. (note: there's always an overhead with the first module loaded) Extensions directory: '/Users/huqianghui/.azure/cliextensions' Found 1 extensions: ['spring-cloud'] Extensions directory: '/Users/huqianghui/.azure/cliextensions' Extension compatibility result: is_compatible=True cli_core_version=2.0.77 min_required=None max_required=None Extensions directory: '/Users/huqianghui/.azure/cliextensions' Loaded extension 'spring-cloud' in 0.046 seconds. Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x108382200>] az_command_data_logger : command args: spring-cloud app deployment create --app {} --name {} --jar-path {} --debug --verbose metadata file logging enabled - writing logs to '/Users/huqianghui/.azure/commands'. Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x1084fb0e0>]
Configured default 'azure-springcloud' for arg resource_group
Configured default 'azure-springcloud' for arg service
Event: CommandInvoker.OnPostArgumentLoad []
Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x108517d40>, <function register_cache_arguments..add_cache_arguments at 0x108517f80>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x109459b00>]
Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x1083257a0>, <function CLIQuery.handle_query_parameter at 0x1083543b0>, <function register_ids_argument..parse_ids_arguments at 0x108517dd0>, <function handler at 0x1095c5e60>]
Extensions directory: '/Users/huqianghui/.azure/cliextensions'
Extensions directory: '/Users/huqianghui/.azure/cliextensions'
az_command_data_logger : extension name: spring-cloud
az_command_data_logger : extension version: 0.1.0
Command group 'spring-cloud' is in preview. It may be changed/removed in a future release.
Getting management service client client_type=AppPlatformManagementClient
msrest.universal_http.requests : Configuring retry: max_retries=4, backoff_factor=0.8, max_backoff=90
msrest.async_paging : Paging async iterator protocol is not available for DeploymentResourcePaged
attempting to read file /Users/huqianghui/.azure/accessTokens.json as utf-8-sig
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - Authority:Performing instance discovery: ...
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - Authority:Performing static instance discovery
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - Authority:Authority validated via static instance discovery
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - TokenRequest:Getting token from cache with refresh if necessary.
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'}
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'}
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - CacheDriver:Found 4 potential entries.
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - CacheDriver:Resource specific token found.
adal-python : 6d32c762-3ea7-478f-b90c-77c651a5a394 - CacheDriver:Returning token from cache lookup, AccessTokenId: b'SoHljSm7myDVUmnfbfS6W5EpQpg5lZowpsob1ejZxvk=', RefreshTokenId: b'TWwcld0hzM1QaIRhcw47fXmwVoQfruY40jdw1e9dhVk='
msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions/xxxxxxxx/resourceGroups/azure-springcloud/providers/Microsoft.AppPlatform/Spring/azure-springcloud/apps/gateway/deployments?api-version=2019-05-01-preview'
msrest.http_logger : Request method: 'GET'
msrest.http_logger : Request headers:
msrest.http_logger : 'Accept': 'application/json'
msrest.http_logger : 'accept-language': 'en-US'
msrest.http_logger : 'User-Agent': 'python/3.7.5 (Darwin-18.7.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-appplatform/0.2.0 Azure-SDK-For-Python AZURECLI/2.0.77'
msrest.http_logger : Request body:
msrest.http_logger : None
msrest.universal_http : Configuring redirects: allow=True, max=30
msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http : Configuring proxies: ''
msrest.universal_http : Evaluate proxies against ENV settings: True
urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/xxxxxxx/resourceGroups/azure-springcloud/providers/Microsoft.AppPlatform/Spring/azure-springcloud/apps/gateway/deployments?api-version=2019-05-01-preview HTTP/1.1" 200 None
msrest.http_logger : Response status: 200
msrest.http_logger : Response headers:
msrest.http_logger : 'Cache-Control': 'no-cache'
msrest.http_logger : 'Pragma': 'no-cache'
msrest.http_logger : 'Transfer-Encoding': 'chunked'
msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8'
msrest.http_logger : 'Content-Encoding': 'gzip'
msrest.http_logger : 'Expires': '-1'
msrest.http_logger : 'Vary': 'Accept-Encoding,Accept-Encoding'
msrest.http_logger : 'x-ms-request-id': '014317ec-efa9-4e75-8580-74b71de6f856'
msrest.http_logger : 'x-ms-ratelimit-remaining-subscription-reads': '11996'
msrest.http_logger : 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
msrest.http_logger : 'X-Content-Type-Options': 'nosniff'
msrest.http_logger : 'x-ms-client-request-id': '3d48aef8-1ca2-11ea-834f-60f81dba2e62'
msrest.http_logger : 'x-rp-server-mvid': '2b8843b7-c476-44a2-b26a-5b9e6d159b2d'
msrest.http_logger : 'Server': 'openresty/1.15.8.1'
msrest.http_logger : 'x-ms-correlation-request-id': '014317ec-efa9-4e75-8580-74b71de6f856'
msrest.http_logger : 'x-ms-routing-request-id': 'SOUTHEASTASIA:20191212T054254Z:014317ec-efa9-4e75-8580-74b71de6f856'
msrest.http_logger : 'Date': 'Thu, 12 Dec 2019 05:42:54 GMT'
msrest.http_logger : Response content:
msrest.http_logger : {"value":[{"properties":{"source":{"type":"Jar","relativePath":""},"appName":"gateway","provisioningState":"Succeeded","deploymentSettings":{"cpu":1,"memoryInGB":1,"instanceCount":1,"environmentVariables":null,"runtimeVersion":"Java_8"},"status":"Running","active":false,"instances":[{"name":"gateway-default-7-59c4dfdd85-njlt2","status":"Running","discoveryStatus":"OUT_OF_SERVICE"}]},"type":"Microsoft.AppPlatform/Spring/apps/deployments","id":"/subscriptions/xxxxxx/resourceGroups/azure-springcloud/providers/Microsoft.AppPlatform/Spring/azure-springcloud/apps/gateway/deployments/default","name":"default"}]}
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - Authority:Performing instance discovery: ...
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - Authority:Performing static instance discovery
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - Authority:Authority validated via static instance discovery
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - TokenRequest:Getting token from cache with refresh if necessary.
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'}
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'}
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - CacheDriver:Found 4 potential entries.
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - CacheDriver:Resource specific token found.
adal-python : 2a4d13aa-c40d-4517-9fc3-f31285fdcda7 - CacheDriver:Returning token from cache lookup, AccessTokenId: b'SoHljSm7myDVUmnfbfS6W5EpQpg5lZowpsob1ejZxvk=', RefreshTokenId: b'TWwcld0hzM1QaIRhcw47fXmwVoQfruY40jdw1e9dhVk='
msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions/xxxxxxx/resourceGroups/azure-springcloud/providers/Microsoft.AppPlatform/Spring/azure-springcloud/apps/gateway?api-version=2019-05-01-preview'
msrest.http_logger : Request method: 'GET'
msrest.http_logger : Request headers:
msrest.http_logger : 'Accept': 'application/json'
msrest.http_logger : 'accept-language': 'en-US'
msrest.http_logger : 'User-Agent': 'python/3.7.5 (Darwin-18.7.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-appplatform/0.2.0 Azure-SDK-For-Python AZURECLI/2.0.77'
msrest.http_logger : Request body:
msrest.http_logger : None
msrest.universal_http : Configuring redirects: allow=True, max=30
msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http : Configuring proxies: ''
msrest.universal_http : Evaluate proxies against ENV settings: True
urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/xxxxxxx/resourceGroups/azure-springcloud/providers/Microsoft.AppPlatform/Spring/azure-springcloud/apps/gateway?api-version=2019-05-01-preview HTTP/1.1" 200 None
msrest.http_logger : Response status: 200
msrest.http_logger : Response headers:
msrest.http_logger : 'Cache-Control': 'no-cache'
msrest.http_logger : 'Pragma': 'no-cache'
msrest.http_logger : 'Transfer-Encoding': 'chunked'
msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8'
msrest.http_logger : 'Content-Encoding': 'gzip'
msrest.http_logger : 'Expires': '-1'
msrest.http_logger : 'Vary': 'Accept-Encoding,Accept-Encoding'
msrest.http_logger : 'x-ms-request-id': 'c12ae9a0-506e-4aac-a788-1c21ccae43f6'
msrest.http_logger : 'x-ms-ratelimit-remaining-subscription-reads': '11995'
msrest.http_logger : 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
msrest.http_logger : 'X-Content-Type-Options': 'nosniff'
msrest.http_logger : 'x-ms-client-request-id': '3d48aef8-1ca2-11ea-834f-60f81dba2e62'
msrest.http_logger : 'x-rp-server-mvid': '2b8843b7-c476-44a2-b26a-5b9e6d159b2d'
msrest.http_logger : 'Server': 'openresty/1.15.8.1'
msrest.http_logger : 'x-ms-correlation-request-id': 'c12ae9a0-506e-4aac-a788-1c21ccae43f6'
msrest.http_logger : 'x-ms-routing-request-id': 'SOUTHEASTASIA:20191212T054255Z:c12ae9a0-506e-4aac-a788-1c21ccae43f6'
msrest.http_logger : 'Date': 'Thu, 12 Dec 2019 05:42:54 GMT'
msrest.http_logger : Response content:
msrest.http_logger : {"properties":{"public":false,"provisioningState":"Succeeded","createdTime":"2019-12-12T05:12:17.92Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"usedInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","id":"/subscriptions/xxxxxxxxx/resourceGroups/azure-springcloud/providers/Microsoft.AppPlatform/Spring/azure-springcloud/apps/gateway","name":"gateway"}
msrest.exceptions : Parameter 'deployment_name' can not be None.
cli.azure.cli.core.util : validation error: Parameter 'deployment_name' can not be None.
validation error: Parameter 'deployment_name' can not be None.
az_command_data_logger : exit code: 1
telemetry.save : Save telemetry record of length 2694 in cache
telemetry.check : Negative: The /Users/huqianghui/.azure/telemetry.txt was modified at 2019-12-12 13:36:20.787972, which in less than 600.000000 s
command ran in 2.728 seconds.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.