Skip to content

[Synapse] az synapse workspace create/update: false warning and malformed argument string in repository validation #34312

Closed

Description

Describe the bug

In azure/cli/command_modules/synapse/manual/_validators.py, validate_repository_type validates git repository arguments for az synapse workspace create and az synapse workspace update.

There are two bugs in this validator:

  1. Missing comma in repository_config_args:
    Lines 59-60 define:
repository_config_args = ['--host-name', '--account-name', '--collaboration-branch', '--repository-name', '--root-folder'
                          '--project-name', '--tenant-id']

Because of the missing comma after '--root-folder', Python concatenates the two literals into '--root-folder--project-name'. Additionally, ' ,'.join(repository_config_args) places the space before the comma.

  1. Unconditional warning on every workspace create/update:
    The function only checks:
if namespace.repository_type is None:

Because argument validators run for every invocation of the command, creating or updating a workspace without repository configuration options triggers this warning even when none of the repository arguments were passed.

Related command

az synapse workspace create
az synapse workspace update

Errors

When running workspace create/update commands, the following warning is logged:

Parameter --repository-type is missing, the following arguments are ignored: --host-name ,--account-name ,--collaboration-branch ,--repository-name ,--root-folder--project-name ,--tenant-id. Repository configuration will not work.

Expected behavior

  1. No warning should be logged if no repository configuration arguments were passed.
  2. If repository configuration arguments are passed without --repository-type, the warning should display properly formatted argument names (--root-folder, --project-name) with standard comma-space separation.

Activity

  1. yonzhan commented on Oct 31, 2026

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  2. added
    customer-reported
    Auto-Assign
    Service Attention
    on Oct 31, 2026
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

    Auto-AssignService AttentionSynapseact-experience-enablement-squadcustomer-reported

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions