Skip to content

[Create Commands] Flags will be confusing in SDK #637

Description

Example:
Create a vm from SDK (not CLI) using the Smart Create command for vm.
There is a availability_set parameter and a availability_set_type parameter.
Set the availability_set parameter to an availability set ID.
Run the command.

Expected: vm is added to the availability set
Actual: the vm is not added to the availability set because the availability_set_type parameter was set to null (which defaults to 'none').

Possible solution: we make the flags (which are a limitation of ARM templates) required so users must fill them out and then look for the related field to set a value to. We would need to hide that required-ness on the CLI side.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions