Remove-AzureRmDeploymentManagerServiceUnit
Hiermee verwijdert u de service-eenheid van een service in een servicetopologie.
Syntax
Remove-AzureRmDeploymentManagerServiceUnit
[-ResourceGroupName] <String>
[-ServiceTopologyName] <String>
[-ServiceName] <String>
[-Name] <String>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzureRmDeploymentManagerServiceUnit
[-ServiceName] <String>
[-Name] <String>
[-ServiceTopology] <PSServiceTopologyResource>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzureRmDeploymentManagerServiceUnit
[-ServiceName] <String>
[-Name] <String>
[-ServiceTopologyResourceId] <String>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzureRmDeploymentManagerServiceUnit
[-Name] <String>
[-Service] <PSServiceResource>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzureRmDeploymentManagerServiceUnit
[-Name] <String>
[-ServiceResourceId] <String>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzureRmDeploymentManagerServiceUnit
[-ResourceId] <String>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzureRmDeploymentManagerServiceUnit
[-ServiceUnit] <PSServiceUnitResource>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De cmdlet Remove-AzureRmDeploymentManagerServiceUnit verwijdert een service-eenheid in een service.
Geef de service-eenheid op basis van de naam, de service waaronder deze is gedefinieerd, de naam van de servicetopologie en de naam van de resourcegroep. U kunt ook het ServiceUnit-object of de ResourceId opgeven.
Voorbeelden
Voorbeeld 1
PS C:\> Remove-AzureRmDeploymentManagerServiceUnit -ResourceGroupName ContosoResourceGroup -ServiceTopologyName ContosoServiceTopology -ServiceName ContosoService1 -Name ContosoService1Storage
Met deze opdracht verwijdert u een service-eenheid met de naam ContosoService1Storage onder een service ContosoService1 in een servicetopologie met de naam ContosoServiceTopology in contosoResourceGroup.
Voorbeeld 2: Een service-eenheid verwijderen met behulp van de resource-id.
PS C:\> Remove-AzureRmDeploymentManagerServiceUnit -ResourceId "/subscriptions/subscriptionId/resourcegroups/ContosoResourceGroup/providers/Microsoft.DeploymentManager/serviceTopologies/ContosoServiceTopology/services/ContosoService1/serviceUnits/ContosoService1Storage"
Met deze opdracht wordt een service-eenheid met de naam ContosoService1Storage onder een service ContosoService1 in een servicetopologie met de naam ContosoServiceTopology in contosoResourceGroup ophaalt.
Voorbeeld 3: Een service-eenheid verwijderen met behulp van het service-eenheidsobject.
PS C:\> Remove-AzureRmDeploymentManagerServiceUnit -ServiceUnit $serviceUnitObject
Met deze opdracht verwijdert u een service-eenheid waarvan de naam, de servicenaam, de naam van de servicetopologie en resourcegroep overeenkomen met de eigenschappen Name, ServiceName, ServiceTopologyName en ResourceGroupName van respectievelijk de $serviceUnitObject.
Parameters
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 |
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 |
Vraag niet om bevestiging.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De naam van de service-eenheid die u wilt verwijderen.
| Type: | String |
| Position: | 3 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
{{Fill PassThru Description}}
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De resourcegroep.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
De resource-id.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Het serviceobject waarin de service-eenheid moet worden gemaakt.
| Type: | PSServiceResource |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De naam van de service waartoe de service-eenheid behoort.
| Type: | String |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
De serviceresource-id waarin de service-eenheid moet worden gemaakt.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Het servicetopologieobject waarin de service-eenheid moet worden gemaakt.
| Type: | PSServiceTopologyResource |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De naam van de servicetopologie waartoe de service-eenheid behoort.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
De resource-id van de servicetopologie waarin de service-eenheid moet worden gemaakt.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De resource die moet worden verwijderd.
| Type: | PSServiceUnitResource |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
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 |