lib/fog/azurerm/docs/network.md in fog-azure-rm-0.3.3 vs lib/fog/azurerm/docs/network.md in fog-azure-rm-0.3.4

- old
+ new

@@ -46,11 +46,12 @@ address_prefix: '10.1.0.0/24', network_security_group_id: '/subscriptions/<Subscription Id>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/networkSecurityGroups/<Network Security Group Name>', route_table_id: '/subscriptions/<Subscription Id>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/routeTables/<Route Table Name>' }], dns_servers: ['10.1.0.0','10.2.0.0'], - address_prefixes: ['10.1.0.0/16','10.2.0.0/16'] + address_prefixes: ['10.1.0.0/16','10.2.0.0/16'], + tags: { key: 'value' } # Optional ) ``` ## List Virtual Networks in Resource Group @@ -251,11 +252,12 @@ resource_group: '<Resource Group name>', location: 'eastus', subnet_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/virtualNetworks/<Virtual Network name>/subnets/<Subnet name>', public_ip_address_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public IP name>', ip_configuration_name: '<Ip Configuration Name>', - private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic + private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic, + tags: { key: 'value' } # Optional ) ``` ## List Network Interface Cards @@ -331,11 +333,12 @@ ```ruby pubip = azure_network_service.public_ips.create( name: '<Public IP name>', resource_group: '<Resource Group name>', location: 'westus', - public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static + public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static, + tags: { key: 'value' } # Optional ) ``` ## Check for Public IP @@ -410,11 +413,12 @@ source_address_prefix: '0.0.0.0/0', destination_address_prefix: '0.0.0.0/0', access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow, priority: '100', direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound - }] + }], + tags: { key: 'value' } # Optional ) ``` ## List Network Security Groups @@ -604,19 +608,19 @@ frontend_ip_configuration_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/loadBalancers/<Load Balancer name>/frontendIPConfigurations/fic', protocol: 'Tcp', frontend_port: 3389, backend_port: 3389 } - ] + ], + tags: { key: 'value' } # Optional ) ``` ## Create Internal Load Balancer ```ruby - - lb = azure_network_service.load_balancers.create( +lb = azure_network_service.load_balancers.create( name: '<Load Balancer name>', resource_group: '<Resource Group name>', location: 'westus', frontend_ip_configurations: [ @@ -668,12 +672,13 @@ request_path: 'HealthProbe.aspx', port: '80', interval_in_seconds: 15, number_of_probes: 2 } - ] - ) + ], + tags: { key: 'value' } # Optional +) ``` ## List Load Balancers List all load balancers in a resource group @@ -727,11 +732,11 @@ ```ruby network_gateway = network.virtual_network_gateways.create( name: '<Virtual Network Gateway Name>', location: 'eastus', - tags: { + tags: { # Optional key1: 'value1', key2: 'value2' }, ip_configurations: [ { @@ -814,11 +819,11 @@ ```ruby local_network_gateway = network.local_network_gateways.create( name: "<Local Network Gateway Name>", location: "eastus", - tags: { + tags: { # Optional key1: "value1", key2: "value2" }, resource_group: "<Resource Group Name>", gateway_ip_address: '192.168.1.1', @@ -879,11 +884,11 @@ ```ruby circuit = network.express_route_circuits.create( "name": "<Circuit Name>", "location": "eastus", "resource_group": "<Resource Group Name>", - "tags": { + "tags": { # Optional "key1": 'value1', "key2": 'value2' }, "sku_name": "Standard_MeteredData", "sku_tier": "Standard", @@ -1058,10 +1063,10 @@ ```ruby gateway_connection = network.virtual_network_gateway_connections.create( name: '<Virtual Network Gateway Connection Name>', location: 'eastus', - tags: { + tags: { # Optional key1: 'value1', key2: 'value2' }, resource_group: '<Resource Group Name>', virtual_network_gateway1: {