Connect a Microsoft Azure website to a Team Project. This method creates a deployment environment for the given Microsoft Azure website and then creates a Continuous Integration build definition for deploying builds to that site.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
Public Sub ConnectAzureWebsite ( _
    teamProject As String, _
    subscriptionId As String, _
    webspace As String, _
    website As String _
)
public void ConnectAzureWebsite(
    string teamProject,
    string subscriptionId,
    string webspace,
    string website
)
public:
void ConnectAzureWebsite(
    String^ teamProject, 
    String^ subscriptionId, 
    String^ webspace, 
    String^ website
)
member ConnectAzureWebsite : 
        teamProject:string * 
        subscriptionId:string * 
        webspace:string * 
        website:string -> unit
public function ConnectAzureWebsite(
    teamProject : String, 
    subscriptionId : String, 
    webspace : String, 
    website : String
)
Parameters
- teamProject 
 Type: System.String- The name of the team project with which to connect 
- subscriptionId 
 Type: System.String- The subscription Id of the Microsoft Azure website. Corresponds to the name of a connected service. 
- webspace 
 Type: System.String- The webspace of the Microsoft Azure website. 
- website 
 Type: System.String- The Microsoft Azure website name. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.