New-AzureRmDeploymentManagerService

Hiermee maakt u een service in een servicetopologie.

Syntax

New-AzureRmDeploymentManagerService
   [-ResourceGroupName] <String>
   [-ServiceTopologyName] <String>
   -Name <String>
   -Location <String>
   -TargetLocation <String>
   -TargetSubscriptionId <String>
   [-Tag <Hashtable>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzureRmDeploymentManagerService
   [-ResourceGroupName] <String>
   -Name <String>
   -Location <String>
   -TargetLocation <String>
   -TargetSubscriptionId <String>
   [-ServiceTopology] <PSServiceTopologyResource>
   [-Tag <Hashtable>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzureRmDeploymentManagerService
   [-ResourceGroupName] <String>
   -Name <String>
   -Location <String>
   -TargetLocation <String>
   -TargetSubscriptionId <String>
   [-ServiceTopologyId] <String>
   [-Tag <Hashtable>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

De cmdlet New-AzureRmDeploymentManagerService maakt een service onder een servicetopologie en retourneert een object dat die service vertegenwoordigt. Geef de service op basis van de naam, de servicetopologie waarin deze zich bevindt en de naam van de resourcegroep.

De cmdlet retourneert een serviceobject. U kunt dit object lokaal wijzigen en vervolgens wijzigingen toepassen op de service met behulp van de Set-AzureRmDeploymentManagerService cmdlet.

Voorbeelden

Voorbeeld 1

PS C:\> New-AzureRmDeploymentManagerService -ResourceGroupName ContosoResourceGroup -ServiceTopologyName ContosoServiceTopology -Name ContosoService1 -Location "Central US" -TargetLocation "East US" -TargetSubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Hiermee maakt u een nieuwe service met de naam ContosoService1 onder servicetopologie ContosoServiceTopology in resourcegroep ContosoResourceGroup, in de locatie VS - centraal. De eigenschap TargetLocation geeft aan dat de service ContosoService1 moet worden geïmplementeerd in de regio VS - oost in het opgegeven abonnement.

Parameters

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location

De locatie van de serviceresource.

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

De naam van de service.

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

De resourcegroep.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceTopology

Het servicetopologieobject waarin de service moet worden gemaakt.

Type:PSServiceTopologyResource
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceTopologyId

De resource-id van de servicetopologie waarin de service moet worden gemaakt.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceTopologyName

De naam van de servicetopologie waartoe deze service behoort.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag

Een hashtabel die resourcetags vertegenwoordigt.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-TargetLocation

Bepaalt de locatie waar resources onder de service worden geïmplementeerd.

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

Bepaalt het abonnement waarnaar resources onder de service worden geïmplementeerd.

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

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

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

Invoerwaarden

None

Uitvoerwaarden

PSServiceResource