Find Auto Generated ASP.NET Machine Key in Azure Web Apps

Written by Ken Dale

What is a machine key?

According to a machine key “Provides a way to encrypt or hash data (or both) by using the same algorithms and key values that are used for ASP.NET forms authentication and view state.”

Where can I find it on Azure Web Apps?

It’s on the file system at D:\local\Config\rootweb.config. One way to get there is navigate to, click Debug Console on the top navigation, and choose CMD or PowerShell (whichever you prefer). Open the rootweb.config file and look for machineKey.

Hope you found this short post helpful!

Published April 02, 2019 by

undefined avatar
Ken Dale Senior Application Developer (Former)

Suggested Reading