Get-SCApplicationSetting

Gets application settings for an application or application deployment.

Syntax

Get-SCApplicationSetting -Application <SCApplication> [-Name <String>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCApplicationSetting -ApplicationDeployment <ApplicationDeployment> [-Name <String>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplicationSetting -ApplicationPackage <ApplicationPackage> [-Name <String>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Get-SCApplicationSetting cmdlet gets application settings for an application or application deployment.

Examples

Example 1: Get all application settings for an application deployment

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppDeployment = Get-SCApplicationDeployment -ApplicationProfile $AppProfile -Name "SvcWebDeployment01"
PS C:\> $AppSetting = Get-SCApplicationSetting -ApplicationDeployment $AppDeployment

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 stores the object in the $AppDeployment variable.

The last command gets the application setting objects for the application deployment stored in $AppDeployment and stores the objects in the $AppSetting array (this example assumes that there are multiple settings for the application).

Example 2: Get all application settings for an application installed on a virtual machine

PS C:\> $VM = Get-SCVirtualMachine "VM01"
PS C:\> $Apps = Get-SCApplication -VM $VM
PS C:\> $AppSetting = Get-SCApplicationSetting -ApplicationDeployment $Apps[0]

The first command gets the virtual machine object named VM01 and stores the object in the $VM variable.

The second command gets the application objects installed on VM01 and stores the objects in the $Apps variable.

The last command gets the application settings for the first application stored in $Apps.

Parameters

-Application

Specifies an application object.

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

Specifies an application deployment object.

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

Specifies an application package object.

Type:ApplicationPackage
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
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
-VMMServer

Specifies a VMM server object.

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

Outputs

ApplicationSetting

This cmdlet returns an **ApplicationSetting** object.