Reputation: 6212
I'm trying to create a new API Management Service (AMS) on Azure. I'm facing an issue I have never had before. I have my OpenAPI file in a public URL. If I paste this URL to create a new APIs in AMS, I always receive an error
Unable to download specified file. Please ensure the URL is valid and the file is publicly accessible.
Then, I tried to download this OpenAPI definition from the Azure Console and it can reach the file and download it. This issue happens from yesterday before I could use the same OpenAPI file without problem.
Also, I checked the configuration of the Virtual Machine where the APIs are hosted. It seems correct and I can reach the file from a browser.
Upvotes: 1
Views: 1601
Reputation: 6212
After a long call with Microsoft support, I found the issue. In the Network Security Groups, I added a new Inbound Security Rule.
First, Source. I saw there is an option for Service Tag. If I select Service Tag, the following dropdown change the label in Source service tag. From this dropdown, you there is an option for ApiManagement.
Wrong choice. You have to allow select IP from the dropdown list and type the IP of the API Management Service.
I have create a post on my blog to explain step by step what you have to do. Hopefully, it could be useful.
Upvotes: 1
Reputation: 15961
The error of unable to download ...
perhaps comes from the ip address url, because when I fill the field with an azure storage blob url, I received no error.
And I saved your request response into a json file locally and upload it to apim, I got the error of unable to parse specified file
, I found it resulted from missing servers.url
.
I think you can try to add api instance by uploading json file from localhost.
Upvotes: 1