Created
October 22, 2019 22:22
-
-
Save PlagueHO/bef0987d8399095a29c073d8e22f4b23 to your computer and use it in GitHub Desktop.
Get All Scheduled Maintenance Events for an Azure VM using the Azure Metadata Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-RestMethod ` | |
-Method GET ` | |
-Uri 'http://169.254.169.254/metadata/scheduledevents?api-version=2017-11-01' ` | |
-UseBasicParsing ` | |
-Headers @{ 'Metadata' = 'true' } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment