question

DimKomAr-1619 avatar image
0 Votes"
DimKomAr-1619 asked Sam-Cogan commented

Managed identity in Tasks (Preview) for Azure VMs

Hi,

I am currently using Automated Tasks for starting and stopping my Azure VMs but have a following question : what happens when my account gets deleted ? the tasks won't work anymore ?

Is it possible to use a Run As account for this?

Thank you.

Regards,

Dmitrii

azure-automation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Sam-Cogan avatar image
0 Votes"
Sam-Cogan answered Sam-Cogan commented

If you delete the managed identity then yes the task will no longer work. The solution is to not delete the managed identity, rather than trying to look for a different approach.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hm ok, but the thing is that for now I just used connect with Azure account so it is not a managed identity. That's why I am asking about what is happening after deletion of my account (that was connecting for this task to run) .

0 Votes 0 ·

IIf it is running as your account, then yes it will stop working if your account is deleted. You can switch it to using a run as account in azure automation, or just a service principal which you provide credentials for.

0 Votes 0 ·