Hi @Findlay, Charles (C.E.) based on the error you shared there are 2 factors causing this issue
1.The error message "The request did not have proper uri path format" suggests that the URI path maybe incorrect
2.The API version you're using maynot support the endpoint you're trying to access.
Here are a few ways to troubleshoot this issue:
- While API Management uses
management.azure-api.cn
, most other Azure services in China usemanagement.chinacloudapi.cn
. Container Apps falls into this latter category.
To fix, change the base URL of your Container Apps request to https://management.chinacloudapi.cn
.
- The API path you're using
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps
is correct for listing Container Apps within a resource group. However API Management has a different structure that includes/service/{serviceName}/apis
. This/service/{serviceName}
portion is only applicable to API Management and not to Container Apps.
To fix, please make sure you are not including /service/{serviceName}
in your Container Apps API calls. Also try using 2024-05-01
or later for the API version
Please let us know if you have further questions.
-Grace