Skip to main content
Community site session details

Community site session details

Session Id : F6oLHqMoEwoeYmCtkrb8KC
Power Automate - Connector Development
Unanswered

APIM Custom Connector - 401 Unauthorized Response - Access denied due to missing subscription key (Ocp-Apim-Subscription-Key)

Like (1) ShareShare
ReportReport
Posted on 2 Jan 2024 04:17:10 by 2

Created a custom connector using Azure API management. Initially this was working. I made some changes in one request and updated the connector. After updating I am receiving the 401 Unauthorized Response - Access denied due to missing subscription key (Ocp-Apim-Subscription-Key)

 

This works if I remove subscription required tick in Azure API management. But I don't want to allow access to this API without subscription key. 

 

Below is the response header

 

 

 

{
 "x-ms-apihub-cached-response": "true",
 "x-ms-apihub-obo": "false",
 "WWW-Authenticate": "AzureApiManagementKey realm=\"{API_BASE_URL}/tm-power-clone\",name=\"Ocp-Apim-Subscription-Key\",type=\"header\"",
 "Date": "Tue, 02 Jan 2024 04:03:30 GMT",
 "Content-Length": "152",
 "Content-Type": "application/json"
}

 

Categories:
  • mannybellas1 Profile Picture
    3 on 29 May 2024 at 03:40:59
    Re: APIM Custom Connector - 401 Unauthorized Response - Access denied due to missing subscription key (Ocp-Apim-Subscription-Key)

    I have similar issues, too.  It happens when I update the Custom Connector through any of the following mechanisms

    • from APIM
    • or if I update it using `pac connector update`
    • Import it from a managed solution

    Annoyingly, I found I could fix the issue by opening the Custom Connector in the environment, clicking "edit" and then "save" without changing anything.

    I think I saw somewhere mentioned that updates to the connector might take a moment to apply, but I haven't tested this.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Loading complete