Skip to content

Question: az acr run -f acr-task.yaml . #5

@doggy8088

Description

@doggy8088

When I running az acr run -f acr-task.yaml . command, how can I pass environment variables into acr-task.yaml file?

web/acr-task.yaml

Lines 14 to 18 in 73cafe7

- TENANT={{.Values.TENANT}}
- SP={{.Values.SP}}
- PASSWORD={{.Values.PASSWORD}}
- CLUSTER_RESOURCE_GROUP={{.Values.CLUSTER_RESOURCE_GROUP}}
- CLUSTER_NAME={{.Values.CLUSTER_NAME}}

I've got this:

ERROR: az login: error: argument --username/-u: expected one argument
usage: az login [-h] [--verbose] [--debug]
                [--output {json,jsonc,table,tsv,yaml}] [--query JMESPATH]
                [--username USERNAME] [--password PASSWORD]
                [--service-principal] [--tenant TENANT]
                [--allow-no-subscriptions] [-i] [--use-device-code]
                [--subscription _SUBSCRIPTION]
Error: failed to run step ID: acb_step_2: exit status 2

Run ID: cc6 failed after 3m7s
Run failed

What can I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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