Remove-AzureTrafficManagerEndpoint
Tar bort en slutpunkt från en Traffic Manager-profil.
Kommentar
De cmdletar som refereras i den här dokumentationen är till för att hantera äldre Azure-resurser som använder Service Management-API:er. Se Az PowerShell-modulen för cmdletar för att hantera Azure Resource Manager-resurser.
Syntax
Remove-AzureTrafficManagerEndpoint
-DomainName <String>
[-Force]
-TrafficManagerProfile <IProfileWithDefinition>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Cmdleten Remove-AzureTrafficManagerEndpoint tar bort en slutpunkt från en Microsoft Azure Traffic Manager-profil. När du har ta bort en slutpunkt skickar du resultatet till cmdleten Set-AzureTrafficManagerProfile med hjälp av pipelineoperatorn. Den cmdleten ansluter till Azure för att spara dina ändringar.
Exempel
Exempel 1: Ta bort en slutpunkt från en profil
PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile"
PS C:\> Remove-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "Contoso02App.cloudapp.net" | Set-AzureTrafficManagerProfile
Det första kommandot använder cmdleten Get-AzureTrafficManagerProfile för att hämta profilen ContosoProfile och lagrar den sedan i variabeln $TrafficManagerProfile.
Det andra kommandot tar bort en slutpunkt som har domännamnet Contoso02App.cloudapp.net från Traffic Manager-profilen som lagras i $TrafficManagerProfile. Kommandot skickar profilobjektet till cmdleten Set-AzureTrafficManagerProfile för att ansluta till Azure för att spara ändringarna.
Parametrar
-DomainName
Anger domännamnet för slutpunkten som ska tas bort.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
Anger den Azure-profil som den här cmdleten läser från. Om du inte anger någon profil läser den här cmdleten från den lokala standardprofilen.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TrafficManagerProfile
Anger det Traffic Manager-profilobjekt som slutpunkten ska tas bort från.
Type: | IProfileWithDefinition |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Utdata
Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition
Den här cmdleten genererar ett Traffic Manager-profilobjekt som innehåller information om den uppdaterade profilen.