Delen via


New-SCApplicationProfile

Hiermee maakt u een toepassingsprofiel.

Syntax

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

Description

Met de cmdlet New-SCApplicationProfile maakt u een toepassingsprofiel. Toepassingsprofielen definiëren de toepassingen die zijn geïnstalleerd tijdens de implementatie en het onderhoud van virtuele machines.

Voorbeelden

Voorbeeld 1: Een toepassingsprofiel maken

PS C:\> $AppProfile = New-SCApplicationProfile -Name "SvcWebAppProfile01" -Owner "Contoso\Katarina"
PS C:\> $AppProfile

Met de eerste opdracht maakt u een toepassingsprofielobject met de naam SvcWebAppProfile01 en slaat u het object op in de $AppProfile variabele.

De tweede geeft informatie weer over het toepassingsprofiel dat is opgeslagen in $AppProfile aan de gebruiker.

Voorbeeld 2: Een toepassingsprofiel maken door een bestaand profiel te klonen

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppProfile02 = New-SCApplicationProfile -Name "SvcWebAppProfile02" -ApplicationProfile $AppProfile

Met de eerste opdracht wordt het toepassingsprofielobject met de naam SvcWebAppProfile01 opgehaald en wordt het object opgeslagen in de $AppProfile variabele.

Met de tweede opdracht maakt u een toepassingsprofiel met de naam SvcWebAppProfile02 door het toepassingsprofiel te klonen dat is opgeslagen in $AppProfile (SvcWebAppProfile01).

Parameters

-ApplicationProfile

Hiermee geeft u een toepassingsprofielobject op.

Type:ApplicationProfile
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CompatibilityType

Hiermee geeft u de implementatietypen waarmee een toepassingsprofiel compatibel is. Geldige waarden zijn:

  • Algemeen
  • SQLApplicationHost
  • WebApplicationHost
Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

Hiermee geeft u een beschrijving voor het toepassingsprofiel.

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

-EnforceCompatibilityType

Geeft aan dat artefacten van een toepassingsprofiel dat niet compatibel is met de waarde die is opgegeven voor de parameter CompatibilityType , worden verwijderd.

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

-JobVariable

Hiermee geeft u op dat de voortgang van de taak wordt bijgehouden en opgeslagen in de variabele met de naam van deze parameter.

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

-Name

Hiermee geeft u de naam van een Virtual Machine Manager-object (VMM) op.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Owner

Geeft de eigenaar van een VMM-object aan in de vorm van een geldig domeingebruikersaccount.

  • Voorbeeldindeling: -Owner "Contoso\PattiFuller"
  • Voorbeeldindeling: -Owner "PattiFuller@Contoso"
Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PROTipID

Hiermee geeft u de id op van de tip Prestatie- en resourceoptimalisatie (PRO-tip) die deze actie heeft geactiveerd. Met deze parameter kunt u PRO-tips controleren.

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

-RunAsynchronously

Geeft aan dat de taak asynchroon wordt uitgevoerd, zodat het besturingselement onmiddellijk terugkeert naar de opdrachtshell.

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

-Tag

Hiermee geeft u een woord of woordgroep op die moet worden gekoppeld aan een object, zodat u kunt zoeken naar alle objecten met de opgegeven set tags. U kunt zoeken naar een subset met tags of u kunt zoeken naar de volledige set tags.

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

-UserRole

Hiermee geeft u een gebruikersrolobject op.

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

-VMMServer

Hiermee geeft u een VMM-serverobject op.

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

Uitvoerwaarden

ApplicationProfile

Met deze cmdlet wordt een ApplicationProfile-object geretourneerd.