Vadim Berman
Vadim Berman

Reputation: 2032

APIM resource health history beyond 4 weeks

We've been using APIM for years, it's generally not a bad platform, pretty stable and reliable. We recently onboarded a fairly big customer and, according to the best practices of the Murphy's law, APIM went down for almost an hour on one of the first days. Which, obviously, made no one happy.

APIM has been fine and dandy before and after the incident, but the Health history only goes back 4 weeks. It would help to show logs demonstrating that it was an outlier event. Is there a way to get the Health history months or years back?

Upvotes: 0

Views: 181

Answers (1)

anon
anon

Reputation:

How about using ADF Service, I have tried using ADF, it's possible and here is the implementation details.

Using ADF - Copy data activity, I've configured for storing the Health History in the Azure Blob storage, the following workaround I did:

My APIM Instance Health History in the Portal: enter image description here

  1. Created APIM Instance > Added few of the Function APIs > Tested
  2. Created Storage Account > Blob Storage > Container
  3. Created ADF Pipeline > Copy Data Activity > Source: I have Selected the REST API of the Azure Resource and given the API URL with its authorization header:

enter image description here

Sink: Added the Blob Storage as data set > Selected the container > Given the sample file name as TestJson.json as I have selected the JSON Format while mapping.

enter image description here

Mappings: Clicked on Import Schemas and added respective keys to the schema cells:

Note: You can make Import Schemas to None so that it will add automatically all the data.

enter image description here

Validate/Run the Pipeline:

enter image description here

Result - Azure Resource Health History in the Blob Storage:

enter image description here

Upvotes: 1

Related Questions