We have a PS script scheduled via Task Scheduler on Azure VM. This script should read sensitive data from Azure Key Vault such as passwords.
The VM is a member of AAD DS domain. A service account used in scheduled task is created in AAD and synced to AAD DS. The service account has permissions to read secrets.
Cannot find a solution how to connect to a Key Vault from PS script without entering service account credentials. We use integrated security to access storage account file shares, is there an option to connect to a Key Vault in same way?