Performance testing an API App under load in the Azure Preview Portal

In September Microsoft added the Performance test feature in the Azure Preview Portal to check your Web App's performance. For API Apps this is also very important and because API Apps are built on top of Web Apps I was very curious if I can also use this feature for API Apps! The Web App that hosts an API App is called the API App Host in the Azure preview portal, so on the API App host blade I tried to go to the Tools menu where the Performance test feature resides.

Tools

 

 

 

 

 

 

Unfortunately I got an error so the Tools menu doesn’t seem to work for API Apps but there is another way. You can also add the Performance test tile directly on your API App blade!

See the following steps how to do it.

In the Preview Portal select the API App that you want to test. Then right click on the API App blade and select Add tiles in the menu.
Add Tiles
 
In the Tile Gallery select Find Resource by Type. Then select Web Apps.
Tile Gallery - Web Apps
 
Select the Performance Test tile.
Tile Gallery - Operations - Performance Test
 
Drag the tile from the Tile Gallery to the API Apps blade.
Tile Gallery - Drag tile
 
The Azure Preview Portal has very powerful customization capabilities allowing you to resize or move the tile on the resource blade.
Customize tile size
 
Click on the Done button when you are finished.
Done resizing tile
 
When you click on the Performance Test tile you see an overview of your recent runs but first you to have click on “Set Account” to choose a Visual Studio Online account to create performance tests.
Performance tests - Recent runs
 
Click on “New” to create a new performance test. Your API App's default URL is added automatically. You have to change the URL and add “/api/” combined with the method you want to test (HTTP GET requests only).
New performance test
 
Result
Test result - Performance under load
 

 

See Also

For more information on Performance tests in the Azure Preview Portal see:
Performance test your Azure web app under load

About the author

Tomasso Groenendijk lives in Netherlands and is a senior integration consultant at Motion10. He has over 15 years’ experience in software development and software design. Tomasso is specialized in application integration with a strong interest in the Windows Azure cloud platform. In 2014, 2015 and 2016 Tomasso was awarded with the Microsoft Azure MVP award. He is an active contributor to the integration community through his work on his blog, MSDN samples, TechNet Wiki and also speaking on events.

 
 
 
MVP profile Tomasso Groenendijk
 
 
Sentinet Product Specialist
 
 
BizTalk360 Product Specialist

Month List