Azure Management API - Special characters (/) in path parameter

236 Views Asked by At

I am working on retrieving values from Azure App Configuration store.

API being used: GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}?api-version=2023-03-01

The {keyValueName} contains special character '/' and azure api response is coming back as 404

Sample {keyValueName} value: '/sub1/rg1'

I tried using the encoding mechanism urllib.parse.quote_plus(keyValueName) but still the response is 404. I am using the python3.8 requests module to send a call to the api. Please suggest.

The alternative approach to use the connecting string and get the value is working. However it requires me to give the SP 'Contributor' role which I am trying to avoid.

0

There are 0 best solutions below