Skip to content

Mysql Flexible server admin user does not support hyphen character #287

@r4kh1m

Description

@r4kh1m

After in-place auto-migration from single to Flexible server, the Server admin login name moved to the Flexible one containing hyphen (-).

Now, we need to import the migrated Flexible server to the Terraform.

The validation is happening on the API side because I am not able to create the sample server with the hyphen:

az mysql flexible-server create --location westeurope --resource-group test-rg --name example1232453534653 --admin-user "with-hyphen"

(InvalidParameterValue) Invalid value given for parameter administratorLogin. Specify a valid parameter value.
Code: InvalidParameterValue
Message: Invalid value given for parameter administratorLogin. Specify a valid parameter value.

This issue is blocking:
hashicorp/terraform-provider-azurerm#26658

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