-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Type of issue
Other (describe below)
Reference command name
az deployment group create --debug \
--resource-group ${{ secrets.RESOURCE_GROUP_NAME_DEV }} \
--template-file ${{ github.workspace }}/downloaded_templates/linkedTemplates/ArmTemplate_master.json \
--parameters "@${{ env.ARM_TEMPLATE_PARAMETERS_FILE }}" \
--parameters \
containerUri="https://stmmsdaaacicd01.blob.core.windows.net/mms-cicd/linkedTemplates" \
containerSasToken="?${{ secrets.AZURE_SAS_TOKEN_DEV }}"
Feedback
When deploying the ADF components using GITHub workflow, the job fails deploying to ADF instance with below error.
Run az deployment group create --debug
DEBUG: cli.knack.cli: Command arguments: ['deployment', 'group', 'create', '--debug', '--resource-group', '', '--template-file', '/home/runner/work/MMS_DE/MMS_DE/downloaded_templates/linkedTemplates/ArmTemplate_master.json', '--parameters', '@./adf/parameters/Parameters_dev.json', '--parameters', 'containerUri=https://.blob.core.windows.net//linkedTemplates', 'containerSasToken=?']
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 0x7f3289c9b740>, <function OutputProducer.on_global_arguments at 0x7f32899f6700>, <function CLIQuery.on_global_arguments at 0x7f3289a3bc40>]
DEBUG: cli.azure.cli.core.util: attempting to read file ./adf/parameters/Parameters_dev.json as utf-8-sig
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: cli.azure.cli.core: Modules found from index for 'deployment': ['azure.cli.command_modules.resource']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
DEBUG: cli.azure.cli.core: resource 0.166 52 232
DEBUG: cli.azure.cli.core: Total (1) 0.166 52 232
DEBUG: cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
DEBUG: cli.azure.cli.core: Loading extensions:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
DEBUG: cli.azure.cli.core: Total (0) 0.000 0 0
DEBUG: cli.azure.cli.core: Loaded 52 groups, 232 commands.
DEBUG: cli.azure.cli.core: Found a match in the command table.
DEBUG: cli.azure.cli.core: Raw command : deployment group create
DEBUG: cli.azure.cli.core: Command table: deployment group create
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f3288b96de0>]
DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/runner/.azure/commands/2025-02-26.19-19-15.deployment_group_create.2712.log'.
INFO: az_command_data_logger: command args: deployment group create --debug --resource-group {} --template-file {} --parameters {} --parameters {} {}
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7f3288bd7d80>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7f3288c06160>, <function register_cache_arguments..add_cache_arguments at 0x7f3288c062a0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x7f3288c06340>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f32899f67a0>, <function CLIQuery.handle_query_parameter at 0x7f3289a3bce0>, <function register_ids_argument..parse_ids_arguments at 0x7f3288c06200>]
DEBUG: cli.azure.cli.core.util: attempting to read file /home/runner/work/MMS_DE/MMS_DE/downloaded_templates/linkedTemplates/ArmTemplate_master.json as utf-8-sig
DEBUG: cli.azure.cli.core.util: invalid syntax (, line 1)
DEBUG: cli.azure.cli.core.util: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers (, line 1)
DEBUG: cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/resource/custom.py", line 606, in deploy_arm_template_at_resource_group
return _deploy_arm_template_at_resource_group(cmd=cmd,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/resource/custom.py", line 635, in _deploy_arm_template_at_resource_group
deployment_properties = _prepare_deployment_properties_unmodified(cmd, 'resourceGroup', template_file=template_file,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/resource/custom.py", line 1179, in _prepare_deployment_properties_unmodified
parameters = _get_missing_parameters(parameters, template_obj, _prompt_for_parameters, no_prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/resource/custom.py", line 321, in _get_missing_parameters
prompt_parameters = prompt_fn(missing)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/resource/custom.py", line 247, in _prompt_for_parameters
description = metadata.get('description', description)
^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/arm.py", line 109, in handle_template_based_exception
raise CLIError(ex.inner_exception.error.message)
^^^^^^^^^^^^^^^^^^
AttributeError: 'AttributeError' object has no attribute 'inner_exception'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 726, in _run_job
return cmd_copy.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/arm.py", line 114, in handle_template_based_exception
raise CLIError(ex)
knack.util.CLIError: 'str' object has no attribute 'get'
ERROR: cli.azure.cli.core.azclierror: 'str' object has no attribute 'get'
ERROR: az_command_data_logger: 'str' object has no attribute 'get'
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f3288b97060>]
INFO: az_command_data_logger: exit code: 1
INFO: cli.main: Command ran in 0.967 seconds (init: 0.137, invoke: 0.830)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 3823 in cache file under /home/runner/.azure/telemetry/20250226191916260
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/init.py /home/runner/.azure /home/runner/.azure/telemetry/20250226191916260"
INFO: telemetry.process: Return from creating process 2732
INFO: telemetry.main: Finish creating telemetry upload process.
Error: Process completed with exit code 1.
Page URL
No response
Content source URL
No response
Author
adityapadmala
Document Id
No response