Add-SCApplicationDeployment

Adds an application to an application profile.

Description

The Add-SCApplicationDeployment cmdlet adds an application to an application profile.

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

Parameters

ApplicationPackage

Required? true
Accept Pipeline Input? false
Position? named
Specifies an application package object.

ApplicationProfile

Required? true
Accept Pipeline Input? false
Position? named
Specifies an application profile object.

Name

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

ServerAppV

Required? true
Accept Pipeline Input? false
Position? named
Indicates that the application is a virtual application.

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. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

ApplicationPackage

Required? true
Accept Pipeline Input? false
Position? named
Specifies an application package object.

ApplicationProfile

Required? true
Accept Pipeline Input? false
Position? named
Specifies an application profile object.

DACInstanceName

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a data-tier application (DAC) instance.

Name

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

SQLDac

Required? true
Accept Pipeline Input? false
Position? named
Indicates that the application is a SQL Server data-tier application (DAC).

SQLInstanceName

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a SQL Server instance.

BlockOnChanges

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the SQL DAC update is blocked if the database schema is different than that defined in the previous DAC.

IgnoreDataLoss

Required? false
Accept Pipeline Input? false
Position? named
Indicates that data loss which may occur when updating the SQL Server database is ignored.

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.

RollbackOnFailure

Required? false
Accept Pipeline Input? false
Position? named
Rolls back any changes made if the SQL Server database update fails.

RunAsynchronously

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

SkipPolicyValidation

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether policy validation against the SQL Server database should occur.

SQLAuthenticationType

Required? false
Accept Pipeline Input? false
Position? named
Specifies the SQL Server authentication type. Valid valus are: SQLServerAuthentication, WindowsAuthentication.

SQLDeploymentRunAsAccount

Required? false
Accept Pipeline Input? false
Position? named
Specifies a Run As account to use to communicate with a SQL Server deployment.

UninstallMode

Required? false
Accept Pipeline Input? false
Position? named
Specifies the uninstall mode. Valid values are: MakeUnmanaged, DetachDatabase, DropDatabase.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

ApplicationPackage

Required? true
Accept Pipeline Input? false
Position? named
Specifies an application package object.

ApplicationProfile

Required? true
Accept Pipeline Input? false
Position? named
Specifies an application profile object.

Name

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

WebDeploy

Required? true
Accept Pipeline Input? false
Position? named
Indicates that the application is a Web application.

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. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1: Add a Web application to an application deployment.
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppPackage = Get-SCApplicationPackage -Name "WebApp01.zip"
PS C:\> $AppDeployment = Add-SCApplicationDeployment -ApplicationProfile $AppProfile -WebDeploy -Name "SvcWebDeployment01" -ApplicationPackage $AppPackage
The first command gets the application profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.

The second commnad gets the application package object named WebApp01.zip from the VMM library and stores the object in the $AppPackage variable.

The last command adds the application package stored in $AppPackage to the application profile stored in $AppProfile, and names the application deployment SvcWebDepAD.

See Also