Azure / Azure/azure-mysql

Mysql Flexible server admin user does not support hyphen character

Open
#287 3 comments 8 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
53
Forks
88
PR merge metrics
No merged PRs in 30d

Description

After [in-place auto-migration ](https://learn.microsoft.com/en-us/azure/mysql/migrate/migrate-single-flexible-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:
https://github.com/hashicorp/terraform-provider-azurerm/issues/26658

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `az mysql flexible-server create` command with an administrator login containing a hyphen and compare the API response with the migrated Flexible server behavior described in the issue. Trace the administratorLogin validation entry point if this repository exposes it; done means establishing whether valid migrated names are accepted or documenting the required service-side change, with the linked Terraform issue no longer blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, mysql
Domain
cloud, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.