Remove-AzTrafficManagerProfile
Traffic Manager-profil törlése.
Syntax
Remove-AzTrafficManagerProfile
-Name <String>
-ResourceGroupName <String>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzTrafficManagerProfile
-TrafficManagerProfile <TrafficManagerProfile>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
A Remove-AzTrafficManagerProfile parancsmag töröl egy Azure Traffic Manager-profilt. Adja meg a törölni kívánt profilt a Name és ResourceGroupNameparaméterekkel. Másik lehetőségként megadhat egy TrafficManagerProfile objektumot a TrafficManagerProfile paraméterrel, vagy használhatja a folyamatot.
Példák
1. példa: Név alapján megadott profil törlése
Remove-AzTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11"
Ez a parancs törli a ContosoProfile nevű profilt a ResourceGroup11-ben. A parancssor megerősítést kér.
2. példa: Profil törlése a folyamat használatával
Get-AzTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Remove-AzTrafficManagerProfile -Force
Ez a parancs lekéri a ContosoProfile nevű profilt a ResourceGroup11-ben. A parancs ezután átadja ezt a profilt a Remove-AzTrafficManagerProfile parancsmagnak a folyamatkezelő használatával. Ez a parancsmag törli a profilt. A parancs a Force paramétert adja meg. Ezért nem kéri a megerősítést.
Paraméterek
-Confirm
Jóváhagyást kér a parancsmag futtatása előtt.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Kényszeríti a parancs futtatását anélkül, hogy felhasználói megerősítést kérne.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Megadja annak a Traffic Manager-profilnak a nevét, amelyet ez a parancsmag töröl.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Egy erőforráscsoport nevét adja meg. Ez a parancsmag töröl egy Traffic Manager-profilt abban a csoportban, amelyet ez a paraméter határoz meg.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TrafficManagerProfile
A törölni kívánt TrafficManagerProfile objektumot adja meg. TrafficManagerProfile objektum beszerzéséhez használja a Get-AzTrafficManagerProfile parancsmagot.
Type: | TrafficManagerProfile |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Bemutatja, mi történne a parancsmag futtatásakor. A parancsmag nem fut.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Bevitelek
Kimenetek
Kapcsolódó hivatkozások
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: