ContextModelExtensions.WithSubscription Method
Definition
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.
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext WithSubscription (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription);
static member WithSubscription : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext
<Extension()>
Public Function WithSubscription (context As IAzureContext, subscription As IAzureSubscription) As IAzureContext
Parameters
- context
- IAzureContext
- subscription
- IAzureSubscription