Russ Mckendrick
1 min readFeb 5, 2023

--

Yeah, it's a shame, as it was handy. I needed to launch an Azure Database for MySQL - Flexible Server using Ansible for a project I am working on, and there are some examples of doing that in the following file ...

https://github.com/russmckendrick/Infrastructure_as_Code_for_Beginners/blob/main/chapter04/ansible-azure/roles/azure-mysql/tasks/main.yml

... Microsoft has made the docs a little better to read at https://learn.microsoft.com/en-us/rest/api/azure/, the example above was created using the following .,...

https://learn.microsoft.com/en-us/rest/api/mysql/flexibleserver/databases/create-or-update?tabs=HTTP

https://learn.microsoft.com/en-us/rest/api/mysql/flexibleserver/databases/get?tabs=HTTP

https://learn.microsoft.com/en-us/rest/api/mysql/flexibleserver/configurations/update?tabs=HTTP

From what I can figure out - everything in the URI Parameters up until the name of the resource in the URL examples is the main resource, and everything after the main resource name is a `subresource`.

The rest, I am afraid, feels a little hit-and-miss when it comes to the properties, where there seems to be a lot of trail and error.

I hope that helps, even if it is just a little.

--

--

Russ Mckendrick
Russ Mckendrick

Written by Russ Mckendrick

Geek, Lover Of Shiny Things and Grump.

No responses yet