Modifies the properties of an application profile.
Description
The Set-SCApplicationProfile cmdlet modifies the properties of an application profile.
For more information about Set-SCApplicationProfile, type: "Get-Help Set-SCApplicationProfile -online".
Parameters
ApplicationProfile
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies an application profile object.
CompatibilityType
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the deployment types with which an application profile is compatible. Valid values are: General, SQLApplicationHost.
Description
Required?
false
Accept Pipeline Input?
false
Position?
named
States a description for the specified object.
EnforceCompatibilityType
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that artifacts from an application profile which is not compatible with the value provided for the CompatibilityType parameter are removed.
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.
Owner
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the owner of a VMM object in the form of a valid domain user account.
Example format: -Owner "Contoso\ReneeLo"
Example format: -Owner "ReneeLo@Contoso"
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.
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.
The first command gets the application profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.
The second command changes the name of the application profile object stored in $AppProfile to StockWebApp.
2: Change the description of an
application profile.
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "StockWebApp"
PS C:\> Set-SCApplicationProfile -ApplicationProfile $AppProfile -Description "Application profile to use when deploying the stock application web servers."
The first command gets the application profile object named StockWebApp and stores the object in the $AppProfile variable.
The second command changes the description of the application profile object stored in $AppProfile to "Application profile to use when deploying the stock application web servers."