I made a system that every morning, I get CSV files using AzurePopwershell from Azure
select-azuresubscription -SubscriptionName "Kazu Pay-As-You-Go"
Get-AzureVM | export-csv -Path "C:\Users\kazu\Desktop\AzureProject\kazu-Pay-As-You-Go-VM.csv"-NoTypeInformation
This morning, My boss just told me That our company only getting information of two of directories/accounts from Azure. My company has three directories/accounts. so, we clicked on "Subscriptions" on left top on https://manage.windowsazure.com/--->"FILTER BY DIRECTORY:", There are 3 directories/account, he told me we are getting information from directories/account from only "mycompany3" and "mycompany1" , he also wants me to get information from "mycompany2".
so I clicked "directory3" and it shows under "FILTER BY SUBSCRIPTIONS:"
I clicked "directory1" and it shows under "FILTER BY SUBSCRIPTIONS:"
I clicked "directory2" and it shows under "FILTER BY SUBSCRIPTIONS:"
SO I went AzurePowershell and did
I noticed that "Main Subscription" is missing
At first, when I started to do project, I followed http://blogs.technet.com/b/canitpro/archive/2013/11/06/set-by-step-manage-windows-azure-using-powershell.aspx
How can I connect to "directory2" , "Main Subcription"?
How did you authenticate with Azure Powershell? By using Add-AzureAccount, or by using Import-AzurePublishSettingsFile? If you used the publish settings file, you might not have had the other subscription in there. Try using Add-AzureAccount, which should mimic the same permission set as when you are logged in.