AzureContextExtensions.GetSubscriptionById 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.
C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, Guid id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * Guid -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As Guid) As IAzureSubscription
Parameters
- container
- IAzureContextContainer
- id
- Guid
Returns
Applies to
Azure - PowerShell Commands Latest and Azure - PowerShell Commands 12 (LTS)
Product | Versions |
---|---|
Azure - PowerShell Commands | 12 (LTS), Latest |
C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, string id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As String) As IAzureSubscription
Parameters
- container
- IAzureContextContainer
- id
- String
Returns
Applies to
Azure - PowerShell Commands Latest and Azure - PowerShell Commands 12 (LTS)
Product | Versions |
---|---|
Azure - PowerShell Commands | 12 (LTS), Latest |
C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, Guid id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * Guid -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As Guid) As IAzureSubscription
Parameters
- container
- IAzureContextContainer
- id
- Guid
Returns
Applies to
Azure RM - PowerShell Commands Latest
Product | Versions |
---|---|
Azure RM - PowerShell Commands | Latest |
C#
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription GetSubscriptionById (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, string id);
static member GetSubscriptionById : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
<Extension()>
Public Function GetSubscriptionById (container As IAzureContextContainer, id As String) As IAzureSubscription
Parameters
- container
- IAzureContextContainer
- id
- String
Returns
Applies to
Azure RM - PowerShell Commands Latest
Product | Versions |
---|---|
Azure RM - PowerShell Commands | Latest |