I want to use an api, but i can\'t find the Ocp-Apim-Subscription-Key at the page below:
Thanks.
Method 1: From https://portal.azure.com/ go to your API Management service -> Subscriptions There will find default ones and some created by your own.
Method 2: Via https://resources.azure.com/ using HTTP GET method
az rest --method get `
--uri 'https://management.azure.com/subscriptions/{SUBSCRIPTION_ID}/resourceGroups/{RESOURCE_GROUP_NAME}/providers/Microsoft.ApiManagement/service/{API_MANAGER_NAME}/subscriptions?api-version=2018-01-01' `
--query "value[0].properties.primaryKey" | ConvertFrom-Json
Explanation: