< Back

Remove-AzureEndpoint

Wed Jan 30, 2019 5:50 pm

NAME Remove-AzureEndpoint



SYNOPSIS

Deletes an endpoint from an Azure virtual machine.





SYNTAX

Remove-AzureEndpoint [-Name] <String> -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable

<String>] [<CommonParameters>]





DESCRIPTION

The Remove-AzureEndpoint cmdlet deletes an endpoint from an Azure virtual machine object.





PARAMETERS

-Name <String>

Specifies the name of the endpoint that this cmdlet deletes from the virtual machine.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-VM <IPersistentVM>

Specifies the virtual machine from which this cmdlet deletes an endpoint.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue, ByPropertyName)

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- Example 1: Remove an endpoint --------------------------



PS C:\\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Remove-AzureEndpoint -Name "HttpIn" | Update-AzureVM



This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the

current cmdlet by using the pipeline operator. This cmdlet removes an endpoint named HttpIn. The command passes the virtual machine object to the

Update-AzureVM cmdlet, which implements your changes.



RELATED LINKS

Add-AzureEndpoint

Get-AzureEndpoint

Get-AzureVM

Set-AzureEndpoint

Update-AzureVM