Get-SCApplicationProfile
Gets application profiles.
Syntax
Get-SCApplicationProfile
[-VMMServer <ServerConnection>]
[-All]
[<CommonParameters>]
Get-SCApplicationProfile
[-VMMServer <ServerConnection>]
-Name <String>
[<CommonParameters>]
Get-SCApplicationProfile
[-VMMServer <ServerConnection>]
-VMTemplate <Template>
[<CommonParameters>]
Get-SCApplicationProfile
[-VMMServer <ServerConnection>]
-ApplicationHostTemplate <ApplicationHostTemplate>
[<CommonParameters>]
Get-SCApplicationProfile
[-VMMServer <ServerConnection>]
[-ID <Guid>]
[<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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ApplicationHostTemplate
Specifies an application host template object.
Type: | ApplicationHostTemplate |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of a VMM object.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
Specifies a VMM server object.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMTemplate
Specifies a VMM template object used to create virtual machines.
Type: | Template |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
ApplicationProfile
This cmdlet returns an ApplicationProfile object.