Share via

Cannot create Azure MySQL server : 'The server 'xxxx' does not exist or in unexpected status'

Ian Jirka 1 Reputation point
2022-01-11T18:37:40.22+00:00

I created a MySql server via the portal, then removed it and deployed it via ARM template. When I attempt to create it now, it gives the message

{
"status": "Failed",
"error": {
"code": "ServerNotExist",
"message": "The server 'xxx' does not exist or in unexpected status."
}
}

It seems there is some leftover from the previous server. I've tried a half dozen times over 12 hours and get the same behavior. I can work around with another server name but it breaks my naming convention so would prefer not to. Any ideas?

Azure Database for MySQL
0 comments No comments

2 answers

Sort by: Most helpful
  1. Ian Jirka 1 Reputation point
    2022-01-16T07:31:08.94+00:00

    I was able to get it working - the issue was with a different property not being correctly configured (one of the vNet parameters, IIRC). It was trying to say 'The server configuration you gave me is broken'. Definitely could use use more precise error messages.

    Was this answer helpful?

    0 comments No comments

  2. Andreas Baumgarten 132.1K Reputation points MVP Volunteer Moderator
    2022-01-11T18:44:25.11+00:00

    Hi @Ian Jirka ,

    please take a look in the Azure Portal -> All resources if there are any old relicts of the deleted Azure MySQL server (VM, disk(s), NIC, ... ).

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.