Skip to content

Issues for Azure Quantum #2956

@qwordy

Description

@qwordy
  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Extension name (the extension in question)

Azure Quantum

Description of issue (in as much detail as possible)

In submit() method, there is a line

token = _get_data_credentials(cmd.cli_ctx, ws.subscription).get_token().token

I rarely see usage like this. Token of subscription is handled by Azure CLI framework. It will be put in Authorization header in HTTP request. Even extra tokens are handled well in Azure CLI. They will be put in x-ms-authorization-auxiliary header. We don't need to fetch and pass token manually in command implementation.

Positional
    <PROGRAM_ARGS>      : List of arguments expected by the Q# operation specified as --name=value
                          after `--`.
az quantum job submit -g fy -w w -l l --target-id t -- --a=b --b=c

I search -- -- in Azure CLI and Azure CLI extension all examples and find no usage. Actually, I don't have suggestions on it. No requested change now.


Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions