Skip to content

Instantly share code, notes, and snippets.

@sochan1
Created October 24, 2016 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sochan1/3027f290563ce00c4d58ef7f2f79d436 to your computer and use it in GitHub Desktop.
Save sochan1/3027f290563ce00c4d58ef7f2f79d436 to your computer and use it in GitHub Desktop.
Get-AzureRmVirtualNetworkSubnetConfig
PS C:\Windows\system32> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork "VNET1" -Name "subnet1"
Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "VNET1" value of type "System.String" to type
"Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
At line:1 char:55
+ Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork "VNET1" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSubnetConfigCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment