Azurerm powershell Cannot bind parameter and Cannot convert the value Announcing the arrival...

In search of the origins of term censor, I hit a dead end stuck with the greek term, to censor, λογοκρίνω

Will I lose my paid in full property

Is a self contained air-bullet cartridge feasible?

Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?

Protagonist's race is hidden - should I reveal it?

How would you suggest I follow up with coworkers about our deadline that's today?

Why isn't everyone flabbergasted about Bran's "gift"?

What does the black goddess statue do and what is it?

What were wait-states, and why was it only an issue for PCs?

What is a 'Key' in computer science?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

What is ls Largest Number Formed by only moving two sticks in 508?

Why aren't road bicycle wheels tiny?

Is it OK if I do not take the receipt in Germany?

Why did Israel vote against lifting the American embargo on Cuba?

Writing a T-SQL stored procedure to receive 4 numbers and insert them into a table

Processing ADC conversion result: DMA vs Processor Registers

Determinant of a matrix with 2 equal rows

SQL Server placement of master database files vs resource database files

How did Elite on the NES work?

Was Objective-C really a hindrance to Apple software development?

What was Apollo 13's "Little Jolt" after MECO?

Raising a bilingual kid. When should we introduce the majority language?

How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?



Azurerm powershell Cannot bind parameter and Cannot convert the value



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Powershell v2 script need some helpPowershell error when adding filepathpower shell error: Cannot bind parameterPowershell ForEach-Object : Cannot bind parameterNew-ManagedContentSettings - not working properly under Exchange 2010Powershell execution policy within SQL ServerExchange 2010 PowerShell: Value.ToMB() Method Fails Remotely but Works LocallyAdding Folder Permissions Using PowershellAdding AD groups using powershellError on installing Azure Powershell





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















even I can see the virtual network still can not get the specific virtual network subnet info from Azure powershell1.4.0.



PS C:Usersmwang> Get-AzureRmVirtualNetwork |more |Select-String name |more



Name : ToolBelt
ResourceGroupName : ToolBelt
"Name": "ToolBelt_GTPROD.local",
"Name": "ToolBelt_GTPROD",
Name : TestVNet
ResourceGroupName : BI-Reporting-VPN
"Name": "FrontEnd",
"Name": "Backend",
"Name": "GatewaySubnet",
Name : GTGLOBAL.LOCAL
ResourceGroupName : GTGLOBAL
"Name": "GTGLOBAL1",
"Name": "GatewaySubnet",
"Name": "NetworkLoadBalancer",
"Name": "BarracudaLB",
"Name": "DMZ",
Name : GTLB
ResourceGroupName : GTLB
"Name": "default",
Name : KW-network
ResourceGroupName : KW
"Name": "default",



PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "KW-network" value
of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
At line:1 char:55
+ Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
+ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
bnetConfigCommand



PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "GTGLOBAL.LOCAL"
value of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
At line:1 char:55
+ Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
bnetConfigCommand



PS C:Usersmwang>










share|improve this question














bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    even I can see the virtual network still can not get the specific virtual network subnet info from Azure powershell1.4.0.



    PS C:Usersmwang> Get-AzureRmVirtualNetwork |more |Select-String name |more



    Name : ToolBelt
    ResourceGroupName : ToolBelt
    "Name": "ToolBelt_GTPROD.local",
    "Name": "ToolBelt_GTPROD",
    Name : TestVNet
    ResourceGroupName : BI-Reporting-VPN
    "Name": "FrontEnd",
    "Name": "Backend",
    "Name": "GatewaySubnet",
    Name : GTGLOBAL.LOCAL
    ResourceGroupName : GTGLOBAL
    "Name": "GTGLOBAL1",
    "Name": "GatewaySubnet",
    "Name": "NetworkLoadBalancer",
    "Name": "BarracudaLB",
    "Name": "DMZ",
    Name : GTLB
    ResourceGroupName : GTLB
    "Name": "default",
    Name : KW-network
    ResourceGroupName : KW
    "Name": "default",



    PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
    Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "KW-network" value
    of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
    At line:1 char:55
    + Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
    + ~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
    bnetConfigCommand



    PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
    Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "GTGLOBAL.LOCAL"
    value of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
    At line:1 char:55
    + Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
    + ~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
    bnetConfigCommand



    PS C:Usersmwang>










    share|improve this question














    bumped to the homepage by Community 3 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      even I can see the virtual network still can not get the specific virtual network subnet info from Azure powershell1.4.0.



      PS C:Usersmwang> Get-AzureRmVirtualNetwork |more |Select-String name |more



      Name : ToolBelt
      ResourceGroupName : ToolBelt
      "Name": "ToolBelt_GTPROD.local",
      "Name": "ToolBelt_GTPROD",
      Name : TestVNet
      ResourceGroupName : BI-Reporting-VPN
      "Name": "FrontEnd",
      "Name": "Backend",
      "Name": "GatewaySubnet",
      Name : GTGLOBAL.LOCAL
      ResourceGroupName : GTGLOBAL
      "Name": "GTGLOBAL1",
      "Name": "GatewaySubnet",
      "Name": "NetworkLoadBalancer",
      "Name": "BarracudaLB",
      "Name": "DMZ",
      Name : GTLB
      ResourceGroupName : GTLB
      "Name": "default",
      Name : KW-network
      ResourceGroupName : KW
      "Name": "default",



      PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
      Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "KW-network" value
      of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
      At line:1 char:55
      + Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
      + ~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
      + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
      bnetConfigCommand



      PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
      Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "GTGLOBAL.LOCAL"
      value of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
      At line:1 char:55
      + Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
      + ~~~~~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
      + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
      bnetConfigCommand



      PS C:Usersmwang>










      share|improve this question














      even I can see the virtual network still can not get the specific virtual network subnet info from Azure powershell1.4.0.



      PS C:Usersmwang> Get-AzureRmVirtualNetwork |more |Select-String name |more



      Name : ToolBelt
      ResourceGroupName : ToolBelt
      "Name": "ToolBelt_GTPROD.local",
      "Name": "ToolBelt_GTPROD",
      Name : TestVNet
      ResourceGroupName : BI-Reporting-VPN
      "Name": "FrontEnd",
      "Name": "Backend",
      "Name": "GatewaySubnet",
      Name : GTGLOBAL.LOCAL
      ResourceGroupName : GTGLOBAL
      "Name": "GTGLOBAL1",
      "Name": "GatewaySubnet",
      "Name": "NetworkLoadBalancer",
      "Name": "BarracudaLB",
      "Name": "DMZ",
      Name : GTLB
      ResourceGroupName : GTLB
      "Name": "default",
      Name : KW-network
      ResourceGroupName : KW
      "Name": "default",



      PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
      Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "KW-network" value
      of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
      At line:1 char:55
      + Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork KW-network
      + ~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
      + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
      bnetConfigCommand



      PS C:Usersmwang> Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
      Get-AzureRmVirtualNetworkSubnetConfig : Cannot bind parameter 'VirtualNetwork'. Cannot convert the "GTGLOBAL.LOCAL"
      value of type "System.String" to type "Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork".
      At line:1 char:55
      + Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL
      + ~~~~~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Get-AzureRmVirtualNetworkSubnetConfig], ParameterBindingException
      + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkSu
      bnetConfigCommand



      PS C:Usersmwang>







      powershell azure






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 20 '16 at 13:36









      min wangmin wang

      912




      912





      bumped to the homepage by Community 3 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 3 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          You're passing a wrong parameter in the last call:



          Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL


          It should be something like:



          Get-AzureRmVirtualNetwork "GTGLOBAL.LOCAL" | Get-AzureRmVirtualNetworkSubnetConfig ...





          share|improve this answer































            0














            The error clearly states that it cannot bind a string value . It should be passed as a variable.Here is an example below



                $vnetname=Get-AzureRmVirtualNetwork -Name <value> -ResourceGroupName <value>


            now pass this variable to the getsubnet command as below:



                Get-AzureRmVirtualNetworkSubnetconfig -VirtualNetwork $vnetname





            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "2"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f778014%2fazurerm-powershell-cannot-bind-parameter-and-cannot-convert-the-value%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              You're passing a wrong parameter in the last call:



              Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL


              It should be something like:



              Get-AzureRmVirtualNetwork "GTGLOBAL.LOCAL" | Get-AzureRmVirtualNetworkSubnetConfig ...





              share|improve this answer




























                0














                You're passing a wrong parameter in the last call:



                Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL


                It should be something like:



                Get-AzureRmVirtualNetwork "GTGLOBAL.LOCAL" | Get-AzureRmVirtualNetworkSubnetConfig ...





                share|improve this answer


























                  0












                  0








                  0







                  You're passing a wrong parameter in the last call:



                  Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL


                  It should be something like:



                  Get-AzureRmVirtualNetwork "GTGLOBAL.LOCAL" | Get-AzureRmVirtualNetworkSubnetConfig ...





                  share|improve this answer













                  You're passing a wrong parameter in the last call:



                  Get-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork GTGLOBAL.LOCAL


                  It should be something like:



                  Get-AzureRmVirtualNetwork "GTGLOBAL.LOCAL" | Get-AzureRmVirtualNetworkSubnetConfig ...






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 20 '16 at 14:30









                  LeCampusAzureLeCampusAzure

                  543




                  543

























                      0














                      The error clearly states that it cannot bind a string value . It should be passed as a variable.Here is an example below



                          $vnetname=Get-AzureRmVirtualNetwork -Name <value> -ResourceGroupName <value>


                      now pass this variable to the getsubnet command as below:



                          Get-AzureRmVirtualNetworkSubnetconfig -VirtualNetwork $vnetname





                      share|improve this answer




























                        0














                        The error clearly states that it cannot bind a string value . It should be passed as a variable.Here is an example below



                            $vnetname=Get-AzureRmVirtualNetwork -Name <value> -ResourceGroupName <value>


                        now pass this variable to the getsubnet command as below:



                            Get-AzureRmVirtualNetworkSubnetconfig -VirtualNetwork $vnetname





                        share|improve this answer


























                          0












                          0








                          0







                          The error clearly states that it cannot bind a string value . It should be passed as a variable.Here is an example below



                              $vnetname=Get-AzureRmVirtualNetwork -Name <value> -ResourceGroupName <value>


                          now pass this variable to the getsubnet command as below:



                              Get-AzureRmVirtualNetworkSubnetconfig -VirtualNetwork $vnetname





                          share|improve this answer













                          The error clearly states that it cannot bind a string value . It should be passed as a variable.Here is an example below



                              $vnetname=Get-AzureRmVirtualNetwork -Name <value> -ResourceGroupName <value>


                          now pass this variable to the getsubnet command as below:



                              Get-AzureRmVirtualNetworkSubnetconfig -VirtualNetwork $vnetname






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 7 '18 at 4:36









                          vishal.kvishal.k

                          1011




                          1011






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Server Fault!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f778014%2fazurerm-powershell-cannot-bind-parameter-and-cannot-convert-the-value%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                              Список ссавців Італії Природоохоронні статуси | Список |...

                              Українські прізвища Зміст Історичні відомості |...