Azure Networking Operations: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=Virtual Network Operations= | =Virtual Network Operations= | ||
==Create Virtual Network== | |||
<syntaxhighlight lang='bash'> | |||
az network vnet create --resource-group <rg-name> --name <vnet-name> --address-prefixes 10.0.0.0/16 | |||
</syntaxhighlight> | |||
Result: | |||
<syntaxhighlight lang='json'> | |||
{ | |||
"newVNet": { | |||
"addressSpace": { | |||
"addressPrefixes": [ | |||
"10.0.0.0/16" | |||
] | |||
}, | |||
"bgpCommunities": null, | |||
"ddosProtectionPlan": null, | |||
"dhcpOptions": { | |||
"dnsServers": [] | |||
}, | |||
"enableDdosProtection": false, | |||
"enableVmProtection": false, | |||
"etag": "W/\"99999999-9999-9999-9999-999999999999\"", | |||
"id": "/subscriptions/99999999-9999-9999-9999-999999999999/resourceGroups/some-rg/providers/Microsoft.Network/virtualNetworks/some-vnet", | |||
"ipAllocations": null, | |||
"location": "eastus2", | |||
"name": "some-vnet", | |||
"provisioningState": "Succeeded", | |||
"resourceGroup": "some-rg", | |||
"resourceGuid": "99999999-9999-9999-9999-999999999999", | |||
"subnets": [], | |||
"tags": {}, | |||
"type": "Microsoft.Network/virtualNetworks", | |||
"virtualNetworkPeerings": [] | |||
} | |||
</syntaxhighlight> |
Revision as of 23:56, 18 November 2020
Internal
Virtual Network Operations
Create Virtual Network
az network vnet create --resource-group <rg-name> --name <vnet-name> --address-prefixes 10.0.0.0/16
Result:
{
"newVNet": {
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"bgpCommunities": null,
"ddosProtectionPlan": null,
"dhcpOptions": {
"dnsServers": []
},
"enableDdosProtection": false,
"enableVmProtection": false,
"etag": "W/\"99999999-9999-9999-9999-999999999999\"",
"id": "/subscriptions/99999999-9999-9999-9999-999999999999/resourceGroups/some-rg/providers/Microsoft.Network/virtualNetworks/some-vnet",
"ipAllocations": null,
"location": "eastus2",
"name": "some-vnet",
"provisioningState": "Succeeded",
"resourceGroup": "some-rg",
"resourceGuid": "99999999-9999-9999-9999-999999999999",
"subnets": [],
"tags": {},
"type": "Microsoft.Network/virtualNetworks",
"virtualNetworkPeerings": []
}