Forum Discussion
Hairy_Zeus
Mar 03, 2022Copper Contributor
Assistance with looping through multiple subscriptions
Hi Community, I'm using the below script from http://vcloud-lab.com/entries/microsoft-azure/get-azure-virtual-machine-backup-reports-using-powershell to pull Azure VM backup details. Currently I ...
AndySvints
Feb 27, 2023Steel Contributor
Hello Subhankar131,
Get-AzVMBackupInformation.ps1 is the name of the function that you posted.
So the algorithm is the following. Save your posted function to Get-AzVMBackupInformation.ps1 file and then code that I've provided is additional function which will executed the existing one.
Hope that helps.
Subhankar131
Feb 27, 2023Copper Contributor
Hello AndySvints,
Thank you for your clarification.
The above code mentioned by you it works. I need to Export it to a csv file along with subscription name mentioned with VM details. Can it be addressed by modifying your code?
- Subhankar131Feb 27, 2023Copper Contributor
- AndySvintsFeb 28, 2023Steel Contributor