We have many scripts that manage our Azure environment. They are PowerShell scripts that use the az CLI to manipulate Azure.
We have Runbooks that use 'Run-as' accounts and we want to switch them to 'Managed Identity' The portal allows you to click a button to use Managed Identity on the account. I understand this can be done with the Az PowerShell cmdlets. We are not using the Az cmdlets in any of our scripts. Is there a way to do this with the CLI or REST?