< Back

Set-AzureVNetConfig

Wed Jan 30, 2019 5:54 pm

NAME Set-AzureVNetConfig



SYNOPSIS

Updates the virtual network settings for an Azure cloud service.





SYNTAX

Set-AzureVNetConfig [-ConfigurationPath] <String> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]

[<CommonParameters>]





DESCRIPTION

The Set-AzureVNetConfig cmdlet updates the network configuration for the current 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).



Required? true

Position? 0

Default value None

Accept pipeline input? False

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: Update the network configuration of the Azure subscription to a local file --------------------------



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



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

-------------------------- Example 2: Set the Azure subscription and then update the network configuration --------------------------



PS C:\\>$SubsId = "5bea2bc2-88a5-44b8-abe1-3e76733b6783"

C:\\PS> $Cert = Get-Item cert:\\LocalMachine\\MY\\82F105B2DA81149204A6257A9A91EC452B8C52C3

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



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".



RELATED LINKS

Get-AzureVNetConfig

Get-AzureVNetSite

Remove-AzureVNetConfig