I used the CLI from a windows command prompt.
C:\Users\gbonk>azure account list
info: Executing command account list
data: Name Id Current State
data: ------------- ------------------------------------ ------- --------
data: Free Trial ********-****-****-****-************ false Disabled
data: Pay-As-You-Go ********-****-****-****-************ true Enabled
info: account list command OK
Looking at the 'account show' you can see that the Pay account is NOT currently the default.
C:\Users\gbonk>azure account show Pay-As-You-Go
info: Executing command account show
data: Name : Pay-As-You-Go
data: ID : ********-****-****-****-************
data: State : Enabled
data: Tenant ID : ********-****-****-****-************
data: Is Default : false
data: Environment : AzureCloud
data: Has Certificate : No
data: Has Access Token : Yes
data: User name : gbonk
data:
info: account show command OK
After executing the following command the Pay subscription became my default
C:\Users\gbonk>azure account set Pay-As-You-Go
info: Executing command account set
info: Setting subscription to "Pay-As-You-Go" with id "********-****-****-****-************".
info: Changes saved
info: account set command OK
The Pay subscription is now my default
C:\Users\gbonk>azure account show Pay-As-You-Go
info: Executing command account show
data: Name : Pay-As-You-Go
data: ID : ********-****-****-****-************
data: State : Enabled
data: Tenant ID : ********-****-****-****-************
data: Is Default : true
data: Environment : AzureCloud
data: Has Certificate : No
data: Has Access Token : Yes
data: User name : gbonk
data:
info: account show command OK
You can also check this in ~/.azure/azureProfile.json