Add-SCApplicationHostTemplate

Adds an application host template to a service template.

Description

The Add-SCApplicationHostTemplate adds an application host template to a service template. An application host template is used to deploy a SQL data-tier application (DAC) on a deployed SQL server. 

For more information about Add-SCApplicationHostTemplate, type: "Get-Help Add-SCApplicationHostTemplate -online".

Parameters

Name

Required? true
Accept Pipeline Input? false
Position? 0
Specifies the name of a VMM object.

ApplicationProfile

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies an application profile object.

ComputerName

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a computer that VMM can uniquely identify on your network. Valid formats are: FQDN, IPv4 or IPv6 address, or NetBIOS name.

NOTE: See the examples for a specific cmdlet to determine how that cmdlet specifies the computer name.

ServiceTemplate

Required? true
Accept Pipeline Input? false
Position? named
Specifies a service template object.

DeploymentOrder

Required? false
Accept Pipeline Input? false
Position? named
Specifies the order in which a computer tier or application host is deployed.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

ServicingOrder

Required? false
Accept Pipeline Input? false
Position? named
Specifies the order in which a computer tier or application host is serviced.

Tag

Required? false
Accept Pipeline Input? false
Position? named
Specifies a word or phrase to associate with an object so that you can search for all objects with the specified set of tags. You can search for a subset of tags, or you can search for the full set of tags.

Examples

1: Add an application host template to a service template.
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> Add-SCApplicationHostTemplate -Name "SQL Application Host" -ComputerName "SQLServer01.Contoso.com" -ApplicationProfile $AppProfile -ServiceTemplate $ServiceTemplate
The first command gets the aplication profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.

The second command gets the service temnplate object named ServiceTemplate01 and stores the object in the $ServiceTemplate variable.

The third command adds an application host template to the service template stored in $ServiceTemplate 

See Also