Hello @AnthonyBateman-3017,
On looking closing on the error message, I see the below url
......./resourceGroups/xxxx%xx%A4_automati.........
There is a %xx% , I am assuming there is a special character in the resource group name. Usually the special characters are encoded in this format.
As per the document here, the resource group should match the Regex pattern: ^[-\w._()]+$ and not a lot special characters is allowed in the name.
I believe it is because of the presence of a non allowed special character in the resource group name - you are encountering this issue. Recommend you to check your resource group name in any regex testing platform. using the above pattern.
Upon researching further, I came across a know issue that is documented here - https://github.com/microsoft/vscode-azureappservice/issues/686 - Azure allows resource groups being created with the name containing a special character ä though it is not supposed to. This is being worked on currently.
If this is your case, the solution would be move the APIM to another resource group or create the APIM in another resource group.