ClientFactory.CreateClient 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.
Overloads
CreateClient<TClient>(IAzureContextContainer, IAzureSubscription, String)
Creates the client.
public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer profile, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (profile As IAzureContextContainer, subscription As IAzureSubscription, endpoint As String) As TClient
Type Parameters
- TClient
The type of the client.
Parameters
- profile
- IAzureContextContainer
The profile.
- subscription
- IAzureSubscription
The subscription.
- endpoint
- String
The endpoint.
Returns
TClient
Implements
Exceptions
accountName or environment
Applies to
CreateClient<TClient>(IAzureContextContainer, String)
public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (container As IAzureContextContainer, endpoint As String) As TClient
Type Parameters
- TClient
Parameters
- container
- IAzureContextContainer
- endpoint
- String
Returns
TClient
Implements
Applies to
CreateClient<TClient>(IAzureContextContainer, IAzureSubscription, String)
public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer profile, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (profile As IAzureContextContainer, subscription As IAzureSubscription, endpoint As String) As TClient
Type Parameters
- TClient
Parameters
- profile
- IAzureContextContainer
- subscription
- IAzureSubscription
- endpoint
- String
Returns
TClient
Implements
Applies to
CreateClient<TClient>(IAzureContextContainer, String)
public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (container As IAzureContextContainer, endpoint As String) As TClient
Type Parameters
- TClient
Parameters
- container
- IAzureContextContainer
- endpoint
- String
Returns
TClient
Implements
Applies to
CreateClient<TClient>(IAzureContext, String)
public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (context As IAzureContext, endpoint As String) As TClient
Type Parameters
- TClient
Parameters
- context
- IAzureContext
- endpoint
- String
Returns
TClient