Questions tagged [azure-api-management]

1

votes
1

answer
636

Views

how to import swagger in Azure API Management

I see a couple of articles and videos where they import Swagger. But with the new UI changes I am not able to find where to import Swagger. In the video reference it was showing in WADL or Swagger option now I do not see Swagger option. Has this option been removed?
kumar
1

votes
1

answer
74

Views

Template deployment to Azure API management with swagger fails with 'path' must not be empty

I am trying to create an API and operations in azure API management using the swagger import feature, using a template derived from the doumentation at https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-01-01/service/apis Every time I deploy my API using my Azure Resource...
alastairtree
1

votes
2

answer
42

Views

How can I show UserID of Azure?

I want to try the following API. User - Get Shared Access Token ( API Management ) https://docs.microsoft.com/en-us/rest/api/apimanagement/user/getsharedaccesstoken But I can't discover my UserID. It's maybe 24 characters string. How can I show that?
Maiko Ohkawa
1

votes
1

answer
296

Views

Get Azure API Management SKU using REST API

I'm trying to get api management sku condition using REST API but it doesn't work by occuring 401 Unauthorized error. However, I verified that the SAS is valid by trying to execute other API Management REST API. I have no idea, please help me. *API URL=https://management.azure.com/subscriptions/mysu...
ssk3
1

votes
0

answer
332

Views

Azure REST API - Where do I find resource costs?

I'm looking at the documentation of the rest API and I'm looking to get the costs of my resources. Looking at both the REST API and SDK for .NET, there's a Consumption endpoint that does this, but on further testing, this only seems to provide the latest available billing cycle (24 hour window). E...
Dandy
1

votes
0

answer
336

Views

Azure App Service with Internal Azure API Management

Scenario: Virtual Network has 3 Subnets for APIM (subnetAPIM, 10.0.1.0/24), Virtual Machines (subnetVM 10.0.8.0/24), Gateway (subnetGateway 10.0.2.0/24) API Management Virtual Network Mode is set to Internal and APIM is placed in a subnet dedicated to APIM. So APIM is not accessible publicly. The in...
Puneet Ghanshani
1

votes
0

answer
43

Views

Azure API Management list of methods

I host a web API to Azure app service, and using Azure API management to manage the web API. However when I add a API app to the API management. the List of methods are empty. If a add WADL, it will list all the methods.
Lawrence song
1

votes
1

answer
73

Views

APIM Automation

I have multiple API's which I have exposed it via Azure API Management. I am using one instance for across various environments. So currently I am adding / updating the API's / operations manually. Also I am setting cache, rewrite url for few of these operations. But now managing these are becoming...
Manu
1

votes
0

answer
64

Views

Azure APP GW infront of API Manager (without VNET)

Anyone know of a guide on how to but APP GW infront of APIM, should be possible but cant figure out how (or not sure how to setup APP GW). thx
dahund
1

votes
1

answer
475

Views

In Azure API Management Developer Portal, how can I display an openapi request body schema in a friendly format?

I'm attempting to publish a API (using json-api formatting) with Azure API Management by uploading my openapi 2.0 (nee. swagger) specification. I want to use APIM's built-in developer portal to serve documentation, but I've run into a bit of a snag with displaying the request body formatting. The o...
hoylemd
1

votes
0

answer
70

Views

Convert POST to GET Azure API Management Rest API

I am using Azure API Management REST API's to import a WSDL and convert it to a REST endpoint calling SOAP backend. However when you import the WSDL all the methods are imported as POST (which makes sense since you need to send the soap envelope). Now I want to convert the operation from POST to GET...
Yaser
1

votes
1

answer
71

Views

Calling Azure API from Google Cloud Function

I have developed Google Cloud Function which calls an API hosted in AZURE. However the function returns error Error: function crashed.Details: getaddrinfo ENOTFOUND https://bupanonproduction.azure-api.net https://bupanonproduction.azure-api.net:443 Below is the google cloud function 'use strict';...
Alan B
1

votes
0

answer
35

Views

Azure resource ID reported depending on consumed volumes

guys, couldn't find similar question, so asking here. We have a client to Microsoft REST API, and we receive consumed usage normally for multiple subscriptions. But there's a problematic point. There are some resource types, which are billed depending on the consumed volume. Each of these has got i...
Ol_dirty
1

votes
0

answer
54

Views

API Management [Client to API] client authentication

Firstly, this question is in relation to client to APIM and not APIM to a back-end. I have successfully set up the Inbound Processing Policy so that it checks a client certificate by using the when condition = '@(context.Request.Certificate.Thumbprint != 'XXXXXXX') approach. At this stage the client...
tuth
1

votes
1

answer
126

Views

How to group API calls in API-Management's Developer Portal

In the API-Management's Developer Portal, we have the problem that all Operation (API) calls are listed in a long list, making it difficult for our customers to find out what calls that belong together. What we'd like is the possibility to group calls by something, i.e. the controller name. (In Swag...
Ohlin
1

votes
1

answer
293

Views

Add Authorization to a specific Endpoint in Azure API Management

I am using Azure API Management to my API. In my API APP, I have one endpoint which requires JWT verification. I am trying to add the Authorization directly using the API Management, as shown in the following diagram. . However, when I add the Bearer Authorization directly and save it, it disappe...
CoderX
1

votes
1

answer
319

Views

Please specify valid OpenAPI specification file

I just created an new API Management Service. I am following the tutorial instructions here I am copying the value http://conferenceapi.azurewebsites.net?format=json straight from the tutorial. Why is it not valid?
Kirsten Greed
1

votes
0

answer
67

Views

Azure B2C custom policies can't integrate with API Management

I tried to config Azure B2C using custom policies and API Management Identities but it was not success. When i used Azure B2C built-in policies, it worked perfectly. When i used Azure B2C custom policies (with xml files), the Azure B2C provider appeared on APIM login page. After login success, i got...
1

votes
3

answer
205

Views

Manage versioned API in Azure API Manager

I´m looking into host our web API in Azure using an API app. I am using the Azure API Manager in front of the API App to expose the developer portal to some of our consumers. The web API is built in .NET core and it has version support using the URL (https://example.com/api/v2/controller...). I hav...
1

votes
1

answer
39

Views

Changing a HTTP Header Name using a policy

My Scenario: I am using API Management to front a logic app that is going to represent my on boarding process which involves calling my security service. To the outside world I want the consumer to pass me the user credential inside the Authorization Header. My Problem Part 1: Logic Apps does not a...
1

votes
0

answer
59

Views

Get logged-in user inside Azure API Management Developer portal's custom page

Question 1 I have created a custom page inside Azure API Management Developer Portal. Inside that custom page I have to get logged in user's ID or Email. I have to pass this value to my REST API to do some operations. I searched many places I did not find any way, how to fetch logged in user's ID or...
Vetrivel mp
1

votes
1

answer
358

Views

Microsoft Azure - How to export and create deployment script for Api Management

In Microsoft Azure, under API Management, How to export Api with policy and frontend header/request paramters. And create deployment script to deploy different environment.
user3711357
1

votes
2

answer
645

Views

Azure API Management passthrough to backend service

I would like to setup an Azure API Gateway that accepts requests for a backend service and simply passes the requests through to the backend with no modification. For example: (-> means it would get routed to) https://dude.azure-api.net/foo -> https://realapi.mycompany.com/foo https://dude.azure-ap...
DizzyBay
1

votes
1

answer
109

Views

Importing and Deploying .Net Core API to Azure API Managment

I've been trying to create and publish a .Net Core API to Azure. I followed the this example to create the API. Once the API is created, I followed this example to published it to Azure. I was able to call the API successfully. I am trying to import this API to my API management, but I kept getting...
Josiane Ferice
1

votes
1

answer
227

Views

Azure API Management - Regression testing and Performance testing of APIs

Are there any built-in options to perform Regression testing and Performance testing of APIs in Azure API Management? If not, are there any options to do that within the Azure ecosystem (like VSTS Performance tests tool etc.)? Thanks!
aazeem
1

votes
2

answer
226

Views

Using powershell, how do I create an api for an api management service with a version in path segment?

I can create an api using powershell as follows New-AzureRmApiManagementApi -Context $azContext -ApiId $apiId -Name $apiName -ServiceUrl 'https://myapp-dev-apims.azure-api.net/${subDomainName}' -Protocols @('https') -Path $subDomainName However, this cmdlet does not create a version. It appears I ne...
joey
1

votes
1

answer
132

Views

Call stored procedure of CosmosDB from API Management Service

I would like for one of my APIs in the API Management Service to call a stored procedure in CosmosDB and return its result. It seems there is not much documentation around the subject. My attempt so far : Frontend : GET method with three parameters Inbound processing : I adapted the code from this q...
user1918737
1

votes
2

answer
132

Views

How can I apply HTML decoding in an Azure API Management (C#) policy expression?

I have payload in a HTTP POST body where I need to apply HTML decoding on specific fields before forwarding to the backend. How can I achieve this in API Management policy expressions where System.Web.HttpUtility.HtmlDecode seems not to be available - also see feedback forum? Trying to use a self-ma...
Kai Walter
1

votes
0

answer
223

Views

Azure API Management latency of over 5 seconds

We're using API Management to execute an always on function app that, in turn, is calling Azure Search. The function app responds within 100 ms (usually well under), but API Management intermittently takes 3 to 8 seconds to process. I've gone through the trace and found the delay is consistently in...
R. Ambrose
1

votes
0

answer
186

Views

Azure API Management + VNET to protect Azure Functions

I am trying to create an API Management service that's within an external virtual network and using an Azure Function App as the backend. The virtual network is set up to allow only a specific range of IP addresses in, and I've set up the outbound rules as per this document. Unfortunately when I try...
CanSpice
1

votes
1

answer
163

Views

Azure API Management - REST API end points for Authorization Code

I have configured OAuth 2.0 security for Azure API Management and had done the required setup for the authentication flow (reference - https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad). I am able to test the Authorization code generation and success...
Narasimha Y
1

votes
1

answer
51

Views

Can you add multiple authentication provider for an API via Azure Api gateway?

I was wondering if it's possible to add more then one authentication provider to protect an API endpoint via Azure API gateway. From the portal, it doesn't seem like it is possible since it only allows you to select one? Wonder if there is a workaround? For example, I want a user to be able to sign...
darewreck
1

votes
0

answer
54

Views

Issue with service fabric resource manager file deployment (apim.json and apim.parameters)

My requirement is as follows: I have an web API whose port I have removed from the ServiceManifest.xml file. This is done so that I can implement multiple node multiple calls feature from API management. (i.e. I want to remove dependency on port number) While deploying API management resource files,...
Keshav
1

votes
1

answer
25

Views

Creating AAD user in API Management using ARM also creates Basic

When adding/updating AAD user with ARM template/resources.explorer, why does a Basic user also get created? This is the payload: { 'apiVersion': '2017-03-01', 'type': 'users', 'name': 'user1', 'properties': { 'firstName': 'FirstName', 'lastName': 'LastName', 'email': '[parameters('us...
Mats Løkken
1

votes
1

answer
67

Views

Azure API Management Reverse Proxy for Logic Apps

I have a created a simple Azure Logic App that sends a file via FTP to a customer. I have tested the Logic App and it works to my VM. I have an issue however that my customer whitelists IP addresses that FTP to them and Azure will only supply you with regional IP addresses meaning anyone who uses Lo...
jt_de
1

votes
1

answer
52

Views

Difference between Azure Resources API and Storage API

I am trying to access logs in Azure blob storage. Here I saw I can use both Resources API and Storage Services API to access them. Can somebody please explain the advantages and disadvantages of using one over another.
iahsp4
1

votes
1

answer
37

Views

How to deploy new Logic app to existing API management from other resource group using ARM templates

I'm trying to add a new logic app to existing API management instance using ARM template. Is there any way to refer to an APIM instance from another resource group using ARM template? New logic app and existing APIM are in different resource groups under the same subscription.
Vishal
1

votes
0

answer
15

Views

Configure an on-premise LDAP to Azure API manager?

I could find that Azure AD can be configured to to Azure API manager. My question is, is there a way to configure an on-premise LDAP to it? A side question: can I configure SSO for the developer portal?
KittyKotte
1

votes
1

answer
37

Views

Azure API Management - how to refresh access token backend API?

I have created an API in Azure API Management to get data from a backend API. The backend API uses oAuth2 with an access token that expires in 10 minutes. With a returned refresh token you can get a new access token, which is again valid for another 10 minutes. And so on. In the development portal...
Arie
1

votes
0

answer
41

Views

Loop through multiple values in Set-Header policy

Wondering if there's a way to loop through all values for a particular header and modify each one. I have the need to do a string replace on each value of a header and I want to avoid assuming how many values for that header there will be. I do not see a way to create a loop in API Management polici...
zachmagic73

View additional questions