How to execute password rotation for non-admin users of a VM using Azure Key Vault and Azure Automation Account?
I want to set up automated password rotation for my VM using Azure Key Vault and Azure Automation Account. I have used this article: https://www.advatek.co.uk/blog/enhancing-security-with-azure-key-vault-automated-password-rotation as a guide to do this. However, I found that the script provided is only applicable to rotate the password for the local admin of the VM. In my case, I plan to rotate the passwords for the local admin along with other users of the VM. I was wondering if the 'Set-AzVMExtension' with the name 'VMAccessAgent' only works for local admin credentials. If it does, are there any alternative methods to change the password of other local users using PowerShell? Thank you.