I use Azure VM managed identity to access a Azure sql database . from a powershell .
I got the access token like in the following
$response= Invoke-WebRequest -Uri 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fdatabase.windows.net%2F' -Headers @{Metadata="true"}
$access_token = ($response.Content | ConvertFrom-Json).access_token
may I know what's the expiration of each time of the token is get ??? coz I found sometimes if I get too much at the same time , there will be error.
Thanks
