@Neil McAlister Thanks for posting it in Microsoft Q&A. Based on the statement above, it looks like you are importing Swagger JSON to APIM via portal, CLI or PowerShell with specification URL, correct?
If so, unfortunately that's not possible right now. There is no way to specify headers with --specification-url
in az apim api import (or Import-AzApiManagementApi - PowerShell) and you would need to download swagger JSON in your pipeline and then use it with --specification-path
(check size limitation when using this parameter here) or place it in another location where APIM can directly access it.
If you are interested in this feature and like to submit feedback to our product team, please submit it via https://aka.ms/apimwish and would help our product team to prioritize the features. Also, others with similar interests can upvote it too.
Feel free to reach out if you have any other questions.