Scripting and Command Line Tools

Azure provides two command line tools – PowerShell and Cross-Platform CLI – for you to manage your Azure subscriptions, accelerate your development and automate tasks via scripting, no matter whether you are on Windows, Mac or Linux.

If you have any feedback on Azure PowerShell or Azure Cross-Platform CLI, we’d love to hear it.

How can we improve the Azure command line tools and scripting experience?

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  1. Generate PowerShell Script from actions user takes in Azure Management Portal.

    When a user performs one or more action in the Azure Management Portal that results in an activity in Azure the equivalent PowerShell scriptlet should be generated and the user be allowed to download it. This is similar to other Microsoft products that provide PowerShell script access for actions completed via the UI.

    85 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      2 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
    • Have the Windows Azure Service Management API return JSON

      I've been trying to create a Windows 8 Windows Azure Management App using Javascript. I've managed to connect to the Windows Azure SMAPI succesfully, but I noticed that only XML is returned.

      The WinJS.xhr() function accepts a 'resonseType' option, which I can set to 'json'. This should cause the service to return JSON instead of XML, but apparently this is not yet supported by the Windows Azure SMAPI.

      Now, I find myself looking for a good xml-to-json converter. I've found several, but none of them seem to be flawless and it seems that I'm forced to write my own (which…

      49 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        1 comment  ·  Flag idea as inappropriate…  ·  Admin →

        JSON support — for both requests and responses — will be addressed in an upcoming update to our platform.

      • Endpoint Notification / Audit

        I would like a powershell script that will go out and discovery any/all configured endpoints (anytime a VM in IaaS is using an Azure public IP). Produce a list of all endpoints, with IPs and ports.

        This is to prevent the use of public endpoints on VMs running in Azure when we have a VPN into a private vNET. The code below almost does what I'm looking for but not able to get back every port.

        foreach ($item in Get-AzureService)
        {
        Get-AzureVM -ServiceName $item.Label -Name $item.Label| where {$_.PowerState -eq "Started"}
        @{
        #Name = "RDP";
        Expression = { ($_ | Get-AzureEndpoint…

        23 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          2 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
        • Provide a public api for managing linked resource in the new Azure Management Portal

          The new Management portal introduces the concept of linked resources. This feature is very useful, but there is not public api to manage these linked resources.
          We are currently working on the automated deployment of our application to Azure, but this still needs to remain a manual step.
          Please add (document) the REST api to manage linked resources and add a Powershell cmdlet to access the api.

          21 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            2 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • powershell timeout

            For all Azure Powershell commands that perform the API function of "Put Blob", such as Set-AzureDeployment, Set-AzureStorageBlobContent, and New-AzureDeployment, add a command parameter for the "timeout" URI parameter passed via the API. Currently, any such Powershell command results in a static "timeout" value of 90 (seconds) being passed via the API.

            Impact: Being able to define a "timeout" would be valuable for clients using PowerShell that have larger packages, slower connections, or the need to troubleshoot storage exceptions during storage or deployment operations.

            18 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              1 comment  ·  Flag idea as inappropriate…  ·  Admin →
            • create the Powershell (if possible CLI tools also) for Windows RT

              Wouldn't it be great for IT Pro's / Admins to have the Powershell CMDLet on Windows RT too?

              18 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Ensure the Powershell cmdlets are suitable for scripting, not just interactive use, by supporting the Get-OperationStatus cmdlet

                The Codeplex versions of the PowerShell cmdlets supported Get-OperationStatus, which caused the script to wait until a previous operation was complete. This allowed scripting of deployments.

                Without this the PowerShell cmdlets are of little use for continuous deployment scripting.

                14 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                • Update the REST API to support all the feature sets that are currently available via the PowerShell Commandlets.

                  The idea is that any feature that is available to a powershell commandlet for the Azure environment should be available via a REST API.

                  When working with a cloud provider, a user should not have to worry about what the underlying system is running, but be able to hook it into my current automation tools. Actions against a cloud providers should allow for access via any programming language that is able to access a RESTful API.

                  Also, having to fall back on a command line tool and not do something programmatically provides for environments that are difficult to maintain and…

                  10 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                  • PowerShell scripts for Azure ServiceBus management features

                    I was looking the PowerShell CmdLet reference for managing the Azure ServiceBus. Although there is a REST API available, I would like to have CmdLets for creating/deleting queues, topics, subscriptions and manage rules.

                    Is this planned or scheduled in a future release?

                    9 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                    • Support Worker Role in Powershell

                      Poweshell has all the ability of a .NET program and it's quick and easy to write a script. Allow us to create a worker role in Powershell.

                      7 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                      • Windows Azure VM Documentor

                        This script should export the VM configuration like roles, drive configuration, memory, CPU, network settings to a csv file and Visio

                        4 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          under review  ·  0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                        • add the ability to run PowerShell 3.0 from the System Center 2012 Orchestrator Runbook Run .Net Script without calling a subroutine

                          I've documented this problem in the Windows Azure forums:
                          http://social.technet.microsoft.com/Forums/en/scogeneral/thread/d0431d3f-52c3-41b4-be37-7c192e28a62a

                          Basically you have to do a workaround to call PowerShell 3.0 from a System Center 2012 Orchestrator Runbook Run .Net Script Activity because for whatever reason the activity called PowerShell 2.0 instead which isn't supported by Windows Azure PowerShell. Calling subroutines is a royal pain.

                          4 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                          • cost monitoring script

                            It would be great to have an API to monitor cost within Azure.
                            Each team within an organization is given a cloud service and possibly a storage account.
                            Using powershell we can track/monitor cost per team and raise alerts if the cost becomes too high.

                            4 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                            • Fix the command line Azure scripts for slow network connections

                              I currently use the command-line PowerShell scripts to deploy my PHP cloud service since I don't have PHP in Visual Studio. However, the command-line scripts do not upload the package using chunks as it does in Visual Studio. This means that on a slow connection (upload about 1Mb/s), it usually times out with a useless error message.
                              I can workaround it by running the script and then ctrl-C after the package is built and before upload, at which point I have to upload via my browser in the portal but it is a pain.

                              2 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                under review  ·  0 comments  ·  Availability  ·  Flag idea as inappropriate…  ·  Admin →
                              • Identify the co-administrators in with a powershell cmdlet

                                Need a way to view the administrators and co-administrators within a subscription

                                2 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                                • SharePoint enviornment cofigure in windows azure

                                  At least provide a one tier enviornment configuration Poweshell script
                                  (AD, SQL, SharePoint, BizTalk)

                                  1 vote
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Deploying VMs For SharePoint Farms

                                    It would be good to have a script that deploys VMs (and possibly the infrastructure) for the various Microsoft supported SharePoint Farm configurations. An independent script ie AutoSPInstaller could come along and install SharePoint and configure the farm

                                    1 vote
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Powershell Script to clone a VM with its Data Disks

                                      We have a scenario which may be a requirement to most IaaS users, we run VMs behind a load balancer, when we get a request to update, we remove one of the VMs from the load balancer, patch it and then test it. If tests are successful, we need to create a clone of the patched VM and then reinstate it behind the load balancer.

                                      1 vote
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        under review  ·  0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Provide generic PowerShell commands to create certificates

                                        Creating certificates for various purposes (eg. Azure management certificates, VPN root certificate, VPN client certificate) typically involve calling some odd-looking makecert.exe commands, that the average person cannot understand.

                                        Please develop a generic PowerShell module for the Windows platform that allows people to easily generate certificates for Azure, and other purposes.

                                        1 vote
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Availability  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Sample scripts from Wizard

                                          Instead of having people DIG for the scripts, have the sample script available after execution of a provisioning wizard in the same manner you did with Exchange 2010, System Center and even the Active Directory Administration Center. You'll create far higher adoption with a better ease of use for Cloud application deployment AND be doing something Amazon ISN'T !

                                          1 vote
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1
                                          • Don't see your idea?

                                          Scripting and Command Line Tools

                                          Feedback and Knowledge Base