Set-SCApplicationProfile

Modifies the properties of an application profile.

Syntax

Set-SCApplicationProfile [-ApplicationProfile] <ApplicationProfile> [-CompatibilityType <String>]
 [-Description <String>] [-EnforceCompatibilityType] [-JobVariable <String>] [-Name <String>] [-Owner <String>]
 [-PROTipID <Guid>] [-RunAsynchronously] [-Tag <String>] [-UserRole <UserRole>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]

Description

The Set-SCApplicationProfile cmdlet modifies the properties of an application profile.

Examples

Example 1: Change the name of an application profile

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> Set-SCApplicationProfile -ApplicationProfile $AppProfile -Name "StockWebApp"

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.

Example 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."

Parameters

-ApplicationProfile

Specifies an application profile object.

Type:ApplicationProfile
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-CompatibilityType

Specifies the deployment types with which an application profile is compatible. The acceptable values for this parameter are:

- General

  • SQLApplicationHost
  • WebApplicationHost

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

States a description for the specified object.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnforceCompatibilityType

Indicates that artifacts from an application profile which is not compatible with the value provided for the CompatibilityType parameter are removed.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Owner

Specifies the owner of a VMM object in the form of a valid domain user account.

- Example format: -Owner "Contoso\PattiFuller"

  • Example format: -Owner "PattiFuller@Contoso"

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag

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.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserRole

Specifies a user role object.

Type:UserRole
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False