AzureContextExtensions.GetSubscriptionById Method

Definition

Overloads

GetSubscriptionById(IAzureContextContainer, Guid)

C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, Guid id);

Parameters

id
Guid

Returns

Applies to

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

GetSubscriptionById(IAzureContextContainer, String)

C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, string id);

Parameters

id
String

Returns

Applies to

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

GetSubscriptionById(IAzureContextContainer, Guid)

C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, Guid id);

Parameters

id
Guid

Returns

Applies to

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

GetSubscriptionById(IAzureContextContainer, String)

C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, string id);

Parameters

id
String

Returns

Applies to

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