powershell - AzurePowershell Get-AzureSubscription one subscription is missing -
i made system every morning, csv files using azurepopwershell azure
for example
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, boss told me our company getting information of 2 of directories/accounts azure. company has 3 directories/accounts. so, clicked on "subscriptions" on left top on https://manage.windowsazure.com/--->"filter directory:", there 3 directories/account, told me getting information directories/account "mycompany3" , "mycompany1" , wants me information "mycompany2".
so clicked "directory3" , shows under "filter subscriptions:"
- select
- 3-month free trial
- kazu pay-as-you-go
i clicked "directory1" , shows under "filter subscriptions:"
- select all
- pay-as-you-go
i clicked "directory2" , shows under "filter subscriptions:"
- select
- main subscription
so went azurepowershell , did
get-azuresubscription
echo was
- 3-month free trial
- pay-as-you-go
- kazu pay-as-you-go
i noticed "main subscription" missing
at first, when started project, followed http://blogs.technet.com/b/canitpro/archive/2013/11/06/set-by-step-manage-windows-azure-using-powershell.aspx
how can connect "directory2" , "main subcription"?
how did authenticate azure powershell? using add-azureaccount, or using import-azurepublishsettingsfile? if used publish settings file, might not have had other subscription in there. try using add-azureaccount, should mimic same permission set when logged in.
Comments
Post a Comment