Skip to content

[Quantum] Do not allow the “Credits For All” auto-add feature to duplicate providers in a workspace #5831

@warren-jones

Description

@warren-jones

Extension name

quantum

Related command

az quantum workspace create

Description of issue

An error occurs when creating a workspace if a Provider/SKU is specified in the command line -r parameter and that Provider also offers a different Credits For All (C4A) SKU (Plan).

To repro, create a workspace adding a Provider that offers a C4A Plan, but specify a different Plan in the -r parameter, for example:

az quantum workspace create -r rg-v-wjones2 -l eastus -w bug-repro-ws-2 -a bugreprostorage2 -r ionq/aq-internal-testing

The following error may occur:

"code": "ProviderDeploymentFailure",
"message": "Failed to create plan for provider: ionq. More details: '{\"error\":{\"code\":\"CannotUpdatePlan\",\"message\":\"Resource plan can not be changed for Resource id: . . .

The CLI extension should not add multiple Plans for a given Provider, because that causes a conflict creating the Managed Application for that Provider. if a Provider's Plan is specified in the command line -r parameter, and that Provider also offers a different C4A Plan, only the Plan specified with the -r parameter should be added to the workspace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botCXP AttentionThis issue is handled by CXP team.Quantumaz quantum

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions