I need help to create a script.
The task is to in Azure to export Subscriptions and owners of these subscriptions to CSV file. I assume I will be using powershell for this task
Please help!
I need help to create a script.
The task is to in Azure to export Subscriptions and owners of these subscriptions to CSV file. I assume I will be using powershell for this task
Please help!
2
Answers
I figure out the solution. Please see below.
You can use the below PowerShell script to pull the list of users which has the owner access to the subscription.
I have tested the above PowerShell script and it is working fine for me.
You can refer to this documentation for
For-each
loop syntax as well.