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

Inheritance: System.Management.Automation.PSCmdlet
Mostra file Open project: OctopusDeploy/azure-sdk-tools Class Usage Examples

Private Properties

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

Protected Methods

Method Description
ProcessRecord ( ) : void

Execute the command.

Private Methods

Method Description
CreateServerDataServiceContext ( string serverName, Uri managementServiceUri ) : 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.

GetServerDataServiceBySqlAuth ( string serverName, Uri managementServiceUri, Microsoft.WindowsAzure.Management.SqlDatabase.Services.Common.SqlAuthenticationCredentials credentials ) : Microsoft.WindowsAzure.Management.SqlDatabase.Services.Server.ServerDataServiceSqlAuth

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.Management.SqlDatabase.Services.Common.SqlAuthenticationCredentials

Obtain the SqlAuthentication Credentials based on the Cmdlet's parameter set.

Method Details

ProcessRecord() protected method

Execute the command.
protected ProcessRecord ( ) : void
return void