Troubles running Azure powershell












3














I'm trying to install Azure Powershell, following the instructions on this page.



The installation seems to run fine and proceeds without errors.



However, once it's finished, I can't manage to find the Azure Powershell application. I dispose of various terminals




  • Windows Azure Command Prompt

  • Windows Azure Storage Command line


But none of these seems to work. By work, I mean successfully run the first command in the example :



Add-AzureAccount


When I do, it gives me the following error :



'Add-Azure Account' is not recognized as an internal control 
or external, operable program or batch file.


On top of that, I see no mention of azure Powershell in my "All installed softwares" list :



enter image description here



I can run the following commands successfully :



Import-Module MSOnline
Get-Module MSOnline
gives me -> Manifest MSOnline {Add-MsolRoleMember, Remove-MsolForeignGroupFromRole, Get-MsolFederation...


However, the following command gives all the same error (ModuleNotFound) :



Import-Module Azure
Import-Module AzureResourceManager
Import-Module AzureProfile


It's quite logical since they don't appear in my module list :



PS C:Usersmatthews> Get-Module -ListAvailable

ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest AppLocker {}
Manifest BitsTransfer {}
Manifest MSOnline {}
Manifest MSOnlineExtended {}
Manifest PSDiagnostics {}
Manifest PSReadline {}
Manifest TroubleshootingPack {}


To conclude, the solution provided here doesn't work, as there is no PowerShell directory in the Windows Azure folder.



Am I misunderstanding something, or is this a problem caused by the installation ?



NB : I also tried to install it using the standalone installer, but in this case, I get an explicit error message :



This setup requires the Windows PowerShell 3.0 or compatible version to be installed.


I'm having troubles installing the new Powershell version for various reasons, but it may be the solution.










share|improve this question
























  • Try adding -Command "Import-Module MSOnline" as a run argument for PowerShell.
    – Samuel Nicholson
    Jul 21 '14 at 8:06










  • @SamuelNicholson I'm now able to run this command, but I'm still facing the same problem.
    – fxm
    Jul 23 '14 at 8:58










  • @fxm - Why don't you just install the Powershell 3.0 and try using the standalone installer of Azure. Note: Windows 7 SP1 is required to install PS 3.0
    – Ĭsααc tիε βöss
    Jul 24 '14 at 19:20










  • @Ĭsααctիεβöss Until now, I'm facing the problem described here : superuser.com/questions/541733/cant-install-powershell-3-0/… . The provided solution didn't work, so I'm still searching.
    – fxm
    Jul 25 '14 at 7:00
















3














I'm trying to install Azure Powershell, following the instructions on this page.



The installation seems to run fine and proceeds without errors.



However, once it's finished, I can't manage to find the Azure Powershell application. I dispose of various terminals




  • Windows Azure Command Prompt

  • Windows Azure Storage Command line


But none of these seems to work. By work, I mean successfully run the first command in the example :



Add-AzureAccount


When I do, it gives me the following error :



'Add-Azure Account' is not recognized as an internal control 
or external, operable program or batch file.


On top of that, I see no mention of azure Powershell in my "All installed softwares" list :



enter image description here



I can run the following commands successfully :



Import-Module MSOnline
Get-Module MSOnline
gives me -> Manifest MSOnline {Add-MsolRoleMember, Remove-MsolForeignGroupFromRole, Get-MsolFederation...


However, the following command gives all the same error (ModuleNotFound) :



Import-Module Azure
Import-Module AzureResourceManager
Import-Module AzureProfile


It's quite logical since they don't appear in my module list :



PS C:Usersmatthews> Get-Module -ListAvailable

ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest AppLocker {}
Manifest BitsTransfer {}
Manifest MSOnline {}
Manifest MSOnlineExtended {}
Manifest PSDiagnostics {}
Manifest PSReadline {}
Manifest TroubleshootingPack {}


To conclude, the solution provided here doesn't work, as there is no PowerShell directory in the Windows Azure folder.



Am I misunderstanding something, or is this a problem caused by the installation ?



NB : I also tried to install it using the standalone installer, but in this case, I get an explicit error message :



This setup requires the Windows PowerShell 3.0 or compatible version to be installed.


I'm having troubles installing the new Powershell version for various reasons, but it may be the solution.










share|improve this question
























  • Try adding -Command "Import-Module MSOnline" as a run argument for PowerShell.
    – Samuel Nicholson
    Jul 21 '14 at 8:06










  • @SamuelNicholson I'm now able to run this command, but I'm still facing the same problem.
    – fxm
    Jul 23 '14 at 8:58










  • @fxm - Why don't you just install the Powershell 3.0 and try using the standalone installer of Azure. Note: Windows 7 SP1 is required to install PS 3.0
    – Ĭsααc tիε βöss
    Jul 24 '14 at 19:20










  • @Ĭsααctիεβöss Until now, I'm facing the problem described here : superuser.com/questions/541733/cant-install-powershell-3-0/… . The provided solution didn't work, so I'm still searching.
    – fxm
    Jul 25 '14 at 7:00














3












3








3







I'm trying to install Azure Powershell, following the instructions on this page.



The installation seems to run fine and proceeds without errors.



However, once it's finished, I can't manage to find the Azure Powershell application. I dispose of various terminals




  • Windows Azure Command Prompt

  • Windows Azure Storage Command line


But none of these seems to work. By work, I mean successfully run the first command in the example :



Add-AzureAccount


When I do, it gives me the following error :



'Add-Azure Account' is not recognized as an internal control 
or external, operable program or batch file.


On top of that, I see no mention of azure Powershell in my "All installed softwares" list :



enter image description here



I can run the following commands successfully :



Import-Module MSOnline
Get-Module MSOnline
gives me -> Manifest MSOnline {Add-MsolRoleMember, Remove-MsolForeignGroupFromRole, Get-MsolFederation...


However, the following command gives all the same error (ModuleNotFound) :



Import-Module Azure
Import-Module AzureResourceManager
Import-Module AzureProfile


It's quite logical since they don't appear in my module list :



PS C:Usersmatthews> Get-Module -ListAvailable

ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest AppLocker {}
Manifest BitsTransfer {}
Manifest MSOnline {}
Manifest MSOnlineExtended {}
Manifest PSDiagnostics {}
Manifest PSReadline {}
Manifest TroubleshootingPack {}


To conclude, the solution provided here doesn't work, as there is no PowerShell directory in the Windows Azure folder.



Am I misunderstanding something, or is this a problem caused by the installation ?



NB : I also tried to install it using the standalone installer, but in this case, I get an explicit error message :



This setup requires the Windows PowerShell 3.0 or compatible version to be installed.


I'm having troubles installing the new Powershell version for various reasons, but it may be the solution.










share|improve this question















I'm trying to install Azure Powershell, following the instructions on this page.



The installation seems to run fine and proceeds without errors.



However, once it's finished, I can't manage to find the Azure Powershell application. I dispose of various terminals




  • Windows Azure Command Prompt

  • Windows Azure Storage Command line


But none of these seems to work. By work, I mean successfully run the first command in the example :



Add-AzureAccount


When I do, it gives me the following error :



'Add-Azure Account' is not recognized as an internal control 
or external, operable program or batch file.


On top of that, I see no mention of azure Powershell in my "All installed softwares" list :



enter image description here



I can run the following commands successfully :



Import-Module MSOnline
Get-Module MSOnline
gives me -> Manifest MSOnline {Add-MsolRoleMember, Remove-MsolForeignGroupFromRole, Get-MsolFederation...


However, the following command gives all the same error (ModuleNotFound) :



Import-Module Azure
Import-Module AzureResourceManager
Import-Module AzureProfile


It's quite logical since they don't appear in my module list :



PS C:Usersmatthews> Get-Module -ListAvailable

ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest AppLocker {}
Manifest BitsTransfer {}
Manifest MSOnline {}
Manifest MSOnlineExtended {}
Manifest PSDiagnostics {}
Manifest PSReadline {}
Manifest TroubleshootingPack {}


To conclude, the solution provided here doesn't work, as there is no PowerShell directory in the Windows Azure folder.



Am I misunderstanding something, or is this a problem caused by the installation ?



NB : I also tried to install it using the standalone installer, but in this case, I get an explicit error message :



This setup requires the Windows PowerShell 3.0 or compatible version to be installed.


I'm having troubles installing the new Powershell version for various reasons, but it may be the solution.







windows-7 powershell azure






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:14









Community

1




1










asked Jul 21 '14 at 7:38









fxm

32112




32112












  • Try adding -Command "Import-Module MSOnline" as a run argument for PowerShell.
    – Samuel Nicholson
    Jul 21 '14 at 8:06










  • @SamuelNicholson I'm now able to run this command, but I'm still facing the same problem.
    – fxm
    Jul 23 '14 at 8:58










  • @fxm - Why don't you just install the Powershell 3.0 and try using the standalone installer of Azure. Note: Windows 7 SP1 is required to install PS 3.0
    – Ĭsααc tիε βöss
    Jul 24 '14 at 19:20










  • @Ĭsααctիεβöss Until now, I'm facing the problem described here : superuser.com/questions/541733/cant-install-powershell-3-0/… . The provided solution didn't work, so I'm still searching.
    – fxm
    Jul 25 '14 at 7:00


















  • Try adding -Command "Import-Module MSOnline" as a run argument for PowerShell.
    – Samuel Nicholson
    Jul 21 '14 at 8:06










  • @SamuelNicholson I'm now able to run this command, but I'm still facing the same problem.
    – fxm
    Jul 23 '14 at 8:58










  • @fxm - Why don't you just install the Powershell 3.0 and try using the standalone installer of Azure. Note: Windows 7 SP1 is required to install PS 3.0
    – Ĭsααc tիε βöss
    Jul 24 '14 at 19:20










  • @Ĭsααctիεβöss Until now, I'm facing the problem described here : superuser.com/questions/541733/cant-install-powershell-3-0/… . The provided solution didn't work, so I'm still searching.
    – fxm
    Jul 25 '14 at 7:00
















Try adding -Command "Import-Module MSOnline" as a run argument for PowerShell.
– Samuel Nicholson
Jul 21 '14 at 8:06




Try adding -Command "Import-Module MSOnline" as a run argument for PowerShell.
– Samuel Nicholson
Jul 21 '14 at 8:06












@SamuelNicholson I'm now able to run this command, but I'm still facing the same problem.
– fxm
Jul 23 '14 at 8:58




@SamuelNicholson I'm now able to run this command, but I'm still facing the same problem.
– fxm
Jul 23 '14 at 8:58












@fxm - Why don't you just install the Powershell 3.0 and try using the standalone installer of Azure. Note: Windows 7 SP1 is required to install PS 3.0
– Ĭsααc tիε βöss
Jul 24 '14 at 19:20




@fxm - Why don't you just install the Powershell 3.0 and try using the standalone installer of Azure. Note: Windows 7 SP1 is required to install PS 3.0
– Ĭsααc tիε βöss
Jul 24 '14 at 19:20












@Ĭsααctիεβöss Until now, I'm facing the problem described here : superuser.com/questions/541733/cant-install-powershell-3-0/… . The provided solution didn't work, so I'm still searching.
– fxm
Jul 25 '14 at 7:00




@Ĭsααctիεβöss Until now, I'm facing the problem described here : superuser.com/questions/541733/cant-install-powershell-3-0/… . The provided solution didn't work, so I'm still searching.
– fxm
Jul 25 '14 at 7:00










1 Answer
1






active

oldest

votes


















0














The command



Import-Module "C:Program Files (x86)Microsoft SDKs..."


Can work but the path has changed in the time.



You probably just need to reboot, so the $env:PSModulePath will be updated.



BUT if you when a quick fix without the need to reboot you could run this script it will do the trick.



if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
{
# == Refresh the Environment variable if just intall the tools without rebooting and try again
$env:PSModulePath = [System.Environment]::GetEnvironmentVariable("PSModulePath","Machine")

if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
{
echo("You must install the Azure PowerShell Tools. Go at: http://go.microsoft.com/?linkid=9811175&clcid=0x409")
Read-Host "Press enter key to close"
exit
}
}

echo("Azure PowerShell is installed")


I hope this helps.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f785720%2ftroubles-running-azure-powershell%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The command



    Import-Module "C:Program Files (x86)Microsoft SDKs..."


    Can work but the path has changed in the time.



    You probably just need to reboot, so the $env:PSModulePath will be updated.



    BUT if you when a quick fix without the need to reboot you could run this script it will do the trick.



    if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
    {
    # == Refresh the Environment variable if just intall the tools without rebooting and try again
    $env:PSModulePath = [System.Environment]::GetEnvironmentVariable("PSModulePath","Machine")

    if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
    {
    echo("You must install the Azure PowerShell Tools. Go at: http://go.microsoft.com/?linkid=9811175&clcid=0x409")
    Read-Host "Press enter key to close"
    exit
    }
    }

    echo("Azure PowerShell is installed")


    I hope this helps.






    share|improve this answer


























      0














      The command



      Import-Module "C:Program Files (x86)Microsoft SDKs..."


      Can work but the path has changed in the time.



      You probably just need to reboot, so the $env:PSModulePath will be updated.



      BUT if you when a quick fix without the need to reboot you could run this script it will do the trick.



      if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
      {
      # == Refresh the Environment variable if just intall the tools without rebooting and try again
      $env:PSModulePath = [System.Environment]::GetEnvironmentVariable("PSModulePath","Machine")

      if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
      {
      echo("You must install the Azure PowerShell Tools. Go at: http://go.microsoft.com/?linkid=9811175&clcid=0x409")
      Read-Host "Press enter key to close"
      exit
      }
      }

      echo("Azure PowerShell is installed")


      I hope this helps.






      share|improve this answer
























        0












        0








        0






        The command



        Import-Module "C:Program Files (x86)Microsoft SDKs..."


        Can work but the path has changed in the time.



        You probably just need to reboot, so the $env:PSModulePath will be updated.



        BUT if you when a quick fix without the need to reboot you could run this script it will do the trick.



        if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
        {
        # == Refresh the Environment variable if just intall the tools without rebooting and try again
        $env:PSModulePath = [System.Environment]::GetEnvironmentVariable("PSModulePath","Machine")

        if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
        {
        echo("You must install the Azure PowerShell Tools. Go at: http://go.microsoft.com/?linkid=9811175&clcid=0x409")
        Read-Host "Press enter key to close"
        exit
        }
        }

        echo("Azure PowerShell is installed")


        I hope this helps.






        share|improve this answer












        The command



        Import-Module "C:Program Files (x86)Microsoft SDKs..."


        Can work but the path has changed in the time.



        You probably just need to reboot, so the $env:PSModulePath will be updated.



        BUT if you when a quick fix without the need to reboot you could run this script it will do the trick.



        if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
        {
        # == Refresh the Environment variable if just intall the tools without rebooting and try again
        $env:PSModulePath = [System.Environment]::GetEnvironmentVariable("PSModulePath","Machine")

        if( (Get-Module -ListAvailable azure | measure).Count -eq 0 )
        {
        echo("You must install the Azure PowerShell Tools. Go at: http://go.microsoft.com/?linkid=9811175&clcid=0x409")
        Read-Host "Press enter key to close"
        exit
        }
        }

        echo("Azure PowerShell is installed")


        I hope this helps.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 8 '14 at 9:42









        F Boucheros

        57556




        57556






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2fsuperuser.com%2fquestions%2f785720%2ftroubles-running-azure-powershell%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido