New-CmAzIaasNetworking

Creates networking solution

Completes following:

  • Creates vnets and subnets. Optionally attach nsg and route tables to subnet.
  • Creates route tables and routes.
  • Creates network security groups.
  • Creates resource groups if doesn’t exist.
  • Configure resources in mulitple resource groups at once.
  • Ability to optionally configure networking component independently.

This command forms part of the IaaS Building Block.

Parameters

-SettingsFile

Required. (String) File path for the settings file to be converted into a settings object.

-VnetsCsvFile

Required. (String) File path for the csv containing virtual network configurations. Required headers: resourceGroupName|location(optional)|vnetName|addressSpace|subnetName|cidr|networkSecurityGroup|routeTable.

-RouteTablesCsvFile

Required. (String) File path for the csv containing route table configurations. Required headers: resourceGroupName|location(optional)|tableName|routeName|cidr|nextHopType|nextHopIpAddress|notes

-NsgsCsvFile

Required. (String) File path for the csv containing virtual network security group configurations. Required headers: resourceGroupName|location(optional)|nsgName|ruleName|priority|direction|sourceIp|sourcePort|destinationIp|destinationPort|protocol|Access|Description

-ResourceGroupsCsvFile

Required. (String) File path for the csv containing resource Group and location mapping. By default location of first vnet is used to create resource group. Required headers: resourceGroupName|location

-TagSettingsFile

Required. (String) File path for the tags settings file containing tags defination.

-WhatIf

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

-Confirm

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

Examples

Example 1

1
2
3
    New-CmAzIaasNetworking -settingsFile "networking.yml"
    
  

Example 2

1
2
3
    New-CmAzIaasNetworking -VnetsCsvFile "vnet.csv" -RouteTablesCsvFile "routeTable.csv" -NsgsCsvFile "nsg.csv" -ResourceGroupCsvFile resourceGroup.csv -Confirm:$false
    
  

Example 3

1
2
3
    New-CmAzIaasNetworking -VnetsCsvFile "vnet.csv" -RouteTablesCsvFile "routeTable.csv" -NsgsCsvFile "nsg.csv" -Confirm:$false
    
  

Example 4

1
2
3
    New-CmAzIaasNetworking -RouteTablesCsvFile "routeTable.csv" -Confirm:$false