< Back

Get-AzureVNetConfig

Wed Jan 30, 2019 5:46 pm

NAME Get-AzureVNetConfig



SYNOPSIS

Gets the Azure virtual network configuration from the current subscription.





SYNTAX

Get-AzureVNetConfig [-ExportToFile <String>] [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureVNetConfig cmdlet retrieves the virtual network configuration of the current Azure subscription. If the ExportToFile parameter is

specified, a network configuration file is created.





PARAMETERS

-ExportToFile <String>

Specifies the path and file name of a network configuration file to be created from the settings.



Required? false

Position? named

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: Get the virtual network configuration of a current Azure subscription --------------------------



PS C:\\>Get-AzureVNetConfig



This command gets the virtual network configuration of the current Azure subscription and displays it.

-------------------------- Example 2: Get the virtual network configuration of the current Azure subscription and save it to a local file

--------------------------



PS C:\\>Get-AzureVNetConfig -ExportToFile "c:\\temp\\MyAzNets.netcfg"



This command gets the virtual network configuration of the current Azure subscription and then saves it to a local file.



RELATED LINKS

Get-AzureVNetSite

Remove-AzureVNetConfig

Set-AzureVNetConfig