- Create Azure Automation runbook: From the Azure portal, navigate to the already created Vaultmonitoring resource group by clicking on the Resource Groups icon in the left-hand menu:
- Click on the already provisioned Azure Automation account, MonitoringKeyVault, click on Runbooks in the left-hand menu, and click on +Add a Runbook from the top menu.
- Click on Create a new Runbook. Provide a name. Let's call this runbook CheckExpiredAssets, and set the Runbook type as PowerShell:
- Code the runbook: Declare a few variables to hold subscription ID, tenant ID, application ID, and certificate thumbprint information. These values are already ...