Can confirm that I am able to use the Azure modules from the Agent environment now.
It’s interesting that if you want to call Get-AzAccessToken you need to call Connect-AzAccount -Identity again (which makes sense since the Azure connection is per-process) but we’re still able to access PSU secret variables without connecting to Azure even though they’re from the Azure vault. Does PSU load all the secret values at app startup or something?
The PSU secret variables are actually loaded from the main PSU process rather than directly in the agent process itself so that’s why that doesn’t need to reconnect.