New-AzureRmDeploymentManagerService
Skapar en tjänst i en tjänsttopologi.
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
Cmdleten New-AzureRmDeploymentManagerService skapar en tjänst under en tjänsttopologi och returnerar ett objekt som representerar den tjänsten. Ange tjänsten efter namnet, tjänsttopologin den finns i och resursgruppens namn.
Cmdleten returnerar ett tjänstobjekt. Du kan ändra det här objektet lokalt och sedan tillämpa ändringar i tjänsten med hjälp av cmdleten Set-AzureRmDeploymentManagerService.
Exempel
Exempel 1
PS C:\> New-AzureRmDeploymentManagerService -ResourceGroupName ContosoResourceGroup -ServiceTopologyName ContosoServiceTopology -Name ContosoService1 -Location "Central US" -TargetLocation "East US" -TargetSubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Skapar en ny tjänst med namnet ContosoService1 under tjänsttopologin ContosoServiceTopology i resursgruppen ContosoResourceGroup på platsen USA, centrala. Egenskapen TargetLocation anger att tjänsten ContosoService1 ska distribueras till regionen USA, östra i den angivna prenumerationen.
Parametrar
Uppmanar dig att bekräfta innan du kör cmdleten.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Platsen för tjänstresursen.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Namnet på tjänsten.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resursgruppen.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Det tjänsttopologiobjekt där tjänsten ska skapas.
| Type: | PSServiceTopologyResource |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resursidentifieraren för tjänsttopologin som tjänsten ska skapas i.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Namnet på tjänsttopologin som den här tjänsten tillhör.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
En hash-tabell som representerar resurstaggar.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Avgör var resurser under tjänsten ska distribueras till.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Avgör vilken prenumeration som resurser under tjänsten ska distribueras till.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Indata
None