次の方法で共有


Get-SCApplicationProfile

Gets application profiles.

Syntax

All (Default)

Get-SCApplicationProfile
    [-VMMServer <ServerConnection>]
    [-All]
    [<CommonParameters>]

GetByName

Get-SCApplicationProfile
    -Name <String>
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

GetByVMTemplate

Get-SCApplicationProfile
    -VMTemplate <Template>
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

GetByApplicationHostTemplate

Get-SCApplicationProfile
    -ApplicationHostTemplate <ApplicationHostTemplate>
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

ID

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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

All
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ApplicationHostTemplate

Specifies an application host template object.

Parameter properties

Type:ApplicationHostTemplate
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetByApplicationHostTemplate
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ID

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

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ID
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of a VMM object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetByName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMTemplate

Specifies a VMM template object used to create virtual machines.

Parameter properties

Type:Template
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetByVMTemplate
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

ApplicationProfile

This cmdlet returns an ApplicationProfile object.