AzureAccountExtensions.GetSubscriptions Method

Definition

Overloads

GetSubscriptions(IAzureAccount)

C#
public static string[] GetSubscriptions (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account);

Parameters

account
IAzureAccount

Returns

String[]

Applies to

Azure - PowerShell Commands Latest and other versions
Product Versions
Azure - PowerShell Commands 12 (LTS), Latest
Azure RM - PowerShell Commands Latest

GetSubscriptions(IAzureAccount, IAzureContextContainer)

C#
public static System.Collections.Generic.List<Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription> GetSubscriptions (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer profile);

Parameters

account
IAzureAccount

Returns

Applies to

Azure - PowerShell Commands Latest and Azure - PowerShell Commands 12 (LTS)
Product Versions
Azure - PowerShell Commands 12 (LTS), Latest

GetSubscriptions(IAzureAccount, IAzureContextContainer)

C#
public static System.Collections.Generic.List<Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription> GetSubscriptions (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer profile);

Parameters

account
IAzureAccount

Returns

Applies to

Azure RM - PowerShell Commands Latest
Product Versions
Azure RM - PowerShell Commands Latest