The Set-SCApplicationDeployment cmdlet modifies an application deployment.
For more information about Set-SCApplicationDeployment, type: "Get-Help Set-SCApplicationDeployment -online".
Parameters
ApplicationDeployment
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies an application deployment object.
ApplicationPackage
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an application package object.
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.
DACInstanceName
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the name of a data-tier application (DAC) instance.
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.
Name
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the name of a VMM object.
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.
SQLInstanceName
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the name of a SQL Server instance.
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.
Examples
1: Update application package for a
web application deployment.
The first command gets the application profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.
The second command gets the application deployment object named SvcWebDeployment01 for the application profile stored in $AppProfile, and then stores the object in the $AppDeployment variable.
The third command gets the application package object named WebApp02.zip from the VMM library and stores the object in the $AppPackage variable.
The last command updates the application deployment stored in $AppDeployment by replacing the previous application package with the one stored in $AppPackage.