admin管理员组文章数量:1026989
I'm currently working on an Azure Front Door Application that contains cache. The idea is that we have a webhook that would call our API to fetch the endpoint and purge the cache.
I've already added the CDN Endpoint Contributor permission to my service principal and I've been able to authenticate using Auth Flow without any issues
The problem arises when I have to fetch whatever from the Azure rest API.
All my requests go trough using the token and present a successful response. But, all the responses are empty.
Example of fetching the endpoints inside my app, using the API
But, in Azure Portal, you can clearly see that there are endpoints available ( they were created weeks ago so it's not a propagation issue ).
Does anyone have any clue what this could be? Any help would be appreciated, thanks.
I'm currently working on an Azure Front Door Application that contains cache. The idea is that we have a webhook that would call our API to fetch the endpoint and purge the cache.
I've already added the CDN Endpoint Contributor permission to my service principal and I've been able to authenticate using Auth Flow without any issues
The problem arises when I have to fetch whatever from the Azure rest API.
All my requests go trough using the token and present a successful response. But, all the responses are empty.
Example of fetching the endpoints inside my app, using the API
But, in Azure Portal, you can clearly see that there are endpoints available ( they were created weeks ago so it's not a propagation issue ).
Does anyone have any clue what this could be? Any help would be appreciated, thanks.
Share Improve this question edited Nov 18, 2024 at 20:36 Bonhart asked Nov 16, 2024 at 2:37 BonhartBonhart 475 bronze badges 1- I've found out what the issue is, reference here stackoverflow/questions/56741351/… – Bonhart Commented Nov 16, 2024 at 22:11
1 Answer
Reset to default 1I created an endpoint:
Granted API permissions to Microsoft Entra ID application:
Added CDN Endpoint Contributor permission to the service principal:
Generated access token:
GET https://login.microsoftonline/TenantID/oauth2/v2.0/token
client_id:ClientID
scope:https://management.azure/.default
client_secret:Secret
grant_type:client_credentials
I am able to get the response successfully:
GET https://management.azure/subscriptions/SubID/resourceGroups/ruk/providers/Microsoft.Cdn/profiles/rukprofile/endpoints/ruk?api-version=2024-02-01
If still the issue persists as mentioned by you refer this SO Thread by Wesley Smith.
I'm currently working on an Azure Front Door Application that contains cache. The idea is that we have a webhook that would call our API to fetch the endpoint and purge the cache.
I've already added the CDN Endpoint Contributor permission to my service principal and I've been able to authenticate using Auth Flow without any issues
The problem arises when I have to fetch whatever from the Azure rest API.
All my requests go trough using the token and present a successful response. But, all the responses are empty.
Example of fetching the endpoints inside my app, using the API
But, in Azure Portal, you can clearly see that there are endpoints available ( they were created weeks ago so it's not a propagation issue ).
Does anyone have any clue what this could be? Any help would be appreciated, thanks.
I'm currently working on an Azure Front Door Application that contains cache. The idea is that we have a webhook that would call our API to fetch the endpoint and purge the cache.
I've already added the CDN Endpoint Contributor permission to my service principal and I've been able to authenticate using Auth Flow without any issues
The problem arises when I have to fetch whatever from the Azure rest API.
All my requests go trough using the token and present a successful response. But, all the responses are empty.
Example of fetching the endpoints inside my app, using the API
But, in Azure Portal, you can clearly see that there are endpoints available ( they were created weeks ago so it's not a propagation issue ).
Does anyone have any clue what this could be? Any help would be appreciated, thanks.
Share Improve this question edited Nov 18, 2024 at 20:36 Bonhart asked Nov 16, 2024 at 2:37 BonhartBonhart 475 bronze badges 1- I've found out what the issue is, reference here stackoverflow/questions/56741351/… – Bonhart Commented Nov 16, 2024 at 22:11
1 Answer
Reset to default 1I created an endpoint:
Granted API permissions to Microsoft Entra ID application:
Added CDN Endpoint Contributor permission to the service principal:
Generated access token:
GET https://login.microsoftonline/TenantID/oauth2/v2.0/token
client_id:ClientID
scope:https://management.azure/.default
client_secret:Secret
grant_type:client_credentials
I am able to get the response successfully:
GET https://management.azure/subscriptions/SubID/resourceGroups/ruk/providers/Microsoft.Cdn/profiles/rukprofile/endpoints/ruk?api-version=2024-02-01
If still the issue persists as mentioned by you refer this SO Thread by Wesley Smith.
本文标签: azureportalAzure CDN Rest API Returns an empty array of Profiles and EndpointsStack Overflow
版权声明:本文标题:azureportal - Azure CDN Rest API Returns an empty array of Profiles and Endpoints - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745668078a2162292.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论