AzureAccountExtensions.GetSubscriptions Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetSubscriptions(IAzureAccount) | |
GetSubscriptions(IAzureAccount, IAzureContextContainer) | |
GetSubscriptions(IAzureAccount, IAzureContextContainer) |
C#
public static string[] GetSubscriptions (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account);
static member GetSubscriptions : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount -> string[]
<Extension()>
Public Function GetSubscriptions (account As IAzureAccount) As String()
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 |
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);
static member GetSubscriptions : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -> System.Collections.Generic.List<Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription>
<Extension()>
Public Function GetSubscriptions (account As IAzureAccount, profile As IAzureContextContainer) As List(Of IAzureSubscription)
Parameters
- account
- IAzureAccount
- profile
- IAzureContextContainer
Returns
Applies to
Azure - PowerShell Commands Latest and Azure - PowerShell Commands 12 (LTS)
Product | Versions |
---|---|
Azure - PowerShell Commands | 12 (LTS), Latest |
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);
static member GetSubscriptions : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer -> System.Collections.Generic.List<Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription>
<Extension()>
Public Function GetSubscriptions (account As IAzureAccount, profile As IAzureContextContainer) As List(Of IAzureSubscription)
Parameters
- account
- IAzureAccount
- profile
- IAzureContextContainer
Returns
Applies to
Azure RM - PowerShell Commands Latest
Product | Versions |
---|---|
Azure RM - PowerShell Commands | Latest |