Get-SCApplicationProfile

Gets application profiles.

Syntax

Get-SCApplicationProfile [-All] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplicationProfile -ApplicationHostTemplate <ApplicationHostTemplate> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCApplicationProfile [-ID <Guid>] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplicationProfile -Name <String> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplicationProfile [-VMMServer <ServerConnection>] -VMTemplate <Template> [<CommonParameters>]

Description

The Get-SCApplicationProfile cmdlet gets application profiles. You can get individual profiles by using parameters such as Name or ID, or get all application profiles in Virtual Machine Manager (VMM) by using the All parameter.

Examples

Example 1: Get an application profile by its name

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

The first command gets the application profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.

The second command displays information about the application profile stored in $AppProfile to the user.

Example 2: Get all application profiles

PS C:\> $AppProfiles = Get-SCApplicationProfile -All
PS C:\> $AppProfiles[0]

The first command gets all application profile objects and stores them in the $AppProfiles array.

The second command displays information about only the first object in the $AppProfiles array to the user.

Parameters

-All

Indicates that this cmdlet gets all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All gets all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

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

Specifies an application host template object.

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

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

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

Specifies the name of a VMM object.

Type:String
Required:True
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
-VMTemplate

Specifies a VMM template object used to create virtual machines.

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

Outputs

ApplicationProfile

This cmdlet returns an **ApplicationProfile** object.