C# Class Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.NewAzureSqlDatabaseServerContext

Inheritance: Microsoft.WindowsAzure.Commands.Utilities.Common.AzureSMCmdlet
Show file Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description
CreateServerDataServiceContext IServerDataServiceContext
GetManageUrl System.Uri
GetServerDataServiceByCertAuth Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.ServerDataServiceCertAuth
GetServerDataServiceBySqlAuth IServerDataServiceContext
GetServerName string
GetSqlAuthCredentials Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Common.SqlAuthenticationCredentials

Public Methods

Method Description
ExecuteCmdlet ( ) : void

Process the command.

Private Methods

Method Description
CreateServerDataServiceContext ( string serverName, Uri managementServiceUri, Uri manageUrl ) : IServerDataServiceContext

Creates a new operation context based on the Cmdlet's parameter set and the manageUrl.

GetManageUrl ( string parameterSetName ) : Uri

Obtain the ManageUrl based on the Cmdlet's parameter set.

GetServerDataServiceByCertAuth ( string serverName, AzureSubscription subscription ) : ServerDataServiceCertAuth

Connect to Azure SQL Server using certificate authentication.

GetServerDataServiceBySqlAuth ( string serverName, Uri managementServiceUri, Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Common.SqlAuthenticationCredentials credentials, Uri manageUrl ) : IServerDataServiceContext

Connect to a Azure SQL Server with the given ManagementService Uri using SQL authentication credentials.

GetServerName ( Uri manageUrl ) : string

Obtain the ServerName based on the Cmdlet's parameter set.

GetSqlAuthCredentials ( ) : Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Common.SqlAuthenticationCredentials

Obtain the SQL Authentication Credentials based on the Cmdlet's parameter set.

Method Details

ExecuteCmdlet() public method

Process the command.
public ExecuteCmdlet ( ) : void
return void