question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cdn name-exists command failure in pipeline

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az cdn name-exists

Errors:

The command failed with an unexpected error. Here is the traceback:
CheckNameAvailabilityInput.__init__() missing 1 required keyword-only argument: 'type'
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/cdn/custom/custom.py", line 156, in check_name_availability
TypeError: CheckNameAvailabilityInput.__init__() missing 1 required keyword-only argument: 'type'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az cdn name-exists -n {}

Running az cdn name-exists -n with any name fails with the above traceback, First found in Azure pipeline, can also be reproduced on a local machine running the latest release.

Expected Behavior

Command runs successfully.

Environment Summary

Windows-10-10.0.19043-SP0
Python 3.10.3
Installer: MSI

azure-cli 2.35.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
v-anvashistcommented, Apr 20, 2022

@SaurabhSharma-MSFT We are not owing cdn so I am searching to reroute this issue to cdn team.

1reaction
SaurabhSharma-MSFTcommented, Apr 14, 2022

@eglavin I am able to reproduce this issue with CLI version 2.35. This command does however worked with CLI version 2.34.1 image

I am redirecting this to services team to look into this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resource not found errors - Azure Resource Manager
Describes how to resolve errors when a resource can't be found. The error might occur when you deploy a Bicep file or Azure...
Read more >
The specified blob does not exist - Shows in azure browser
Try downloading a file which does not contain spaces or any special characters in its name and it should work just fine. Share....
Read more >
Troubleshoot Dataflow errors - Google Cloud
This error occurs if a single operation causes the worker code to fail four times. Dataflow fails the job, and this message is...
Read more >
Mutations - Sanity.io
The operation will fail if a document by the provided ID already exists. ... 'https://<project-id>.api.sanity.io/v2021-06-07/data/mutate/<dataset-name>?
Read more >
Steps · Codefresh | Docs
Learn the types of Pipeline steps. ... "folder where package.json is located" } } } steps: main: name: kostis-codefresh/node-version image: node commands: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found