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-AzureVNetConfig

Set-AzureVNetConfig

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Updates the virtual network settings for a Microsoft Azure cloud service.

Syntax

Set-AzureVNetConfig [-ConfigurationPath] [<CommonParameters>]

Detailed Description

The Set-AzureVNetConfig cmdlet updates the network configuration for the current Microsoft Azure subscription by specifying a path to anetwork configuration file (.netcfg). The network configuration file defines DNS servers and subnets for cloud services within a subscription.

Parameters

-ConfigurationPath <String>

Specifies the path and file name of a network configuration file (.netcfg).

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This command updates the network configuration of the current Microsoft Azure subscription to that in the local file "c:\temp\MyAzNets.netcfg".

PS C:\> C:\PS>Set-AzureVNetConfig  -ConfigurationPath "c:\temp\MyAzNets.netcfg"

-------------------------- Example 2 --------------------------

This example sets the Microsoft Azure subscription, and then updates the network configuration of that subscription using the configuration defined in the local file "c:\temp\MyAzNets.netcfg".

PS C:\> C:\PS>$subsId = "5bea2bc2-88a5-44b8-abe1-3e76733b6783"
          C:\PS>$cert = Get-Item cert:\LocalMachine\MY\82F105B2DA81149204A6257A9A91EC452B8C52C3
          C:\PS>Set-AzureVNetConfig  -ConfigurationPath "c:\temp\MyAzNets.netcfg"

Get-AzureVNetConfig
Get-AzureVNetSite
Remove-AzureVNetConfig