Skip to content

[fleet] accept inline json for the --stages argument in commands updatestrategy and updaterun #8979

@serbrech

Description

@serbrech

Describe the bug

az fleet updatestrategy create : Creates or updates an update strategy.

Arguments
    --fleet-name -f     [Required] : Specify the fleet name.
    --name -n           [Required] : Specify name for the fleet update strategy.
    --resource-group -g [Required] : Name of resource group. You can configure the default group
                                     using `az configure --defaults group=<name>`.
    --stages            [Required] : Path to a JSON file that defines the update strategy.

The stages argument should identify that the string passed is not a filepath, and interpret the input as inline json if possible.

Same behavior should be implemented for updaterun command:

az fleet updaterun create : Creates or updates an update run.

Arguments
   ...
    --stages                       : Path to a JSON file that defines stages to upgrade a fleet. See
                                     examples for reference.

Related command

az fleet

Errors

File not found

Issue script & Debug output

NA

Expected behavior

accept inline json

Environment Summary

azure-cli 2.71

Additional context

No response

Metadata

Metadata

Labels

Service AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions