Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureIPForwarding

Set-AzureIPForwarding

microsoft.windowsazure.commands.servicemanagement.network.dll

Synopsis

Sets the 'IP Forwarding' ability in a Virtual machine Set-AzureIPForwarding [-VM] <PersistentVMRoleContext> [[-NetworkInterfaceName] <string>] -ServiceName <string> -Enable [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>] Set-AzureIPForwarding [-VM] <PersistentVMRoleContext> [[-NetworkInterfaceName] <string>] -ServiceName <string> -Disable [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>] Set-AzureIPForwarding [-ServiceName] <string> [[-Slot] <string>] [-RoleName] <string> [[-NetworkInterfaceName] <string>] -Enable [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>] Set-AzureIPForwarding [-ServiceName] <string> [[-Slot] <string>] [-RoleName] <string> [[-NetworkInterfaceName] <string>] -Disable [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>]

Syntax

Set-AzureIPForwarding [-VM] [-Disable] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Set-AzureIPForwarding [-ServiceName] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Set-AzureIPForwarding [-NetworkInterfaceName] [-Enable] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Set-AzureIPForwarding [-Slot] [-RoleName] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Detailed Description

Sets the 'IP Forwarding' ability in a Virtual machine or a PaaS role or a NIC

Parameters

-Disable <SwitchParameter>

Option to disable 'IP Forwarding'

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Enable <SwitchParameter>

Option to enable 'IP Forwarding'

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-NetworkInterfaceName <string>

Name of the NIC on which 'IP Forwarding' can be set

Aliases

None

Required?

false

Position

4

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PipelineVariable <string>

Not Specified

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-RoleName <string>

[PaaS] Name of the Role name on which 'IP Forwarding' can be set

Aliases

None

Required?

true

Position

3

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ServiceName <string>

Name of the Service

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <string>

[PaaS] The possible values are 'Production' and 'Staging'. Default value is 'Production'.

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-VM <PersistentVMRoleContext>

The VM object on which the ability 'IP Forwarding' can be set

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type

System.Boolean

Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>

Description

-----------

The command enables 'IP Forwarding' in VM be1

          Get-AzureVM -ServiceName be1 -Name be1 | Set-AzureIPForwarding -Enable
        

-------------------------- EXAMPLE 2 --------------------------

C:\PS>

Description

-----------

The command disables 'IP Forwarding' in VM be1

          Get-AzureVM -ServiceName be1 -Name be1 | Set-AzureIPForwarding -Disable