title: why azure subnets don't have subnet.id param
body: <p>I have the following simple code to generate 3 subnets:</p>
  
  <pre><code>$resourceGroupName = "Test1"
  $location = "West Europe"
  $VNetName = "Test-VM"
  $VNetIPRange = "192.168.0.0/21"
  $SubnetAName = "SubA"
  $SubnetAIPRange = "192.168.0.0/24"
  $SubnetBName = "SubB"
  $SubnetBIPRange = "192.168.1.0/24"
  $SubnetCName = "SubC"
  $SubnetCIPRange = "192.168.2.0/24"
  
  New-AzResourceGroup -name $resourceGroupName -Location $location -Verbose
  
  # subnets &amp; vnet
  $subnets = New-AzVirtualNetworkSubnetConfig `
      -Name $SubnetAName `
      -AddressPrefix $SubnetAIPRange `
      -Verbose
  $vnet = New-AzVirtualNetwork `
      -Name $VNetName `
      -AddressPrefix $VNetIPRange `
      -Subnet $subnets `
      -ResourceGroupName $resourceGroupName `
      -Location $location `
      -Verbose
  Add-AzVirtualNetworkSubnetConfig `
      -VirtualNetwork $vnet `
      -Name $SubnetBName `
      -AddressPrefix $SubnetBIPRange `
      -Verbose
  Add-AzVirtualNetworkSubnetConfig `
      -VirtualNetwork $vnet `
      -Name $SubnetCName `
      -AddressPrefix $SubnetCIPRange `
      -Verbose
  Set-AzVirtualNetwork `
      -VirtualNetwork $vnet `
      -Verbose
  </code></pre>
  
  <p>The code runs successfully and is generating what is expected with exception of one thing. Only SubA has full information. For subnet B and C only the following configuration is like below:</p>
  
  <pre><code>                       {
                           "Name": "SubB",
                           "AddressPrefix": [
                             "192.168.1.0/24"
                           ]
                         }
  </code></pre>
  
  <p>With that i'm not able to reference Subnet Id like:</p>
  
  <pre><code>  -SubnetId $vnet.Subnets[1].Id `
  </code></pre>
  
  <p>because the field is empty :(</p>
  
  <p>Is something wrong in the code or should i reference subnet id somehow different?</p>
  
  <p>I want to place some VMs in different subnets and only SubA is having SubnetID after i run above code.</p>
  
  <pre><code>                     {
                           "Delegations": [],
                           "Name": "SubA",
                           "Etag": "W/\"01baac3e-3fc3-400b-a6f1-64b08f5b45e7\"",
                           "Id": "/subscriptions/XXX/resourceGroups/Test1/providers/Microsoft.Network/virtua
                       lNetworks/Test-VM/subnets/SubA",
                           "AddressPrefix": [
                             "192.168.0.0/24"
                           ],
                           "IpConfigurations": [],
                           "ServiceAssociationLinks": [],
                           "ResourceNavigationLinks": [],
                           "ServiceEndpoints": [],
                           "ServiceEndpointPolicies": [],
                           "InterfaceEndpoints": [],
                           "ProvisioningState": "Succeeded"
                         },
  </code></pre>