Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

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

(1) ShareShare
ReportReport
Posted on 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
    mannybellas1 3 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics