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 support and comment on it.

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

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

  1. RBAC

    Hi Team,Regarding the RBAC Roles. Unable to revoke a user role it is simply showing Failed to remove the user@123 as a owner for abcsd01.It will be great if the reason is mentioned for the failure.we are able to remove the role using Powershell . So it will be great if error is shown with proper explanation.

    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 →
    • Allow Azure Portal to correct display the Diagnostics Settings for VMs when enabled via az cli

      When using az CLI commands to enable diagnostic settings for VMs, the portal still shows it to be off. Please remedy this.

      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  ·  Xplat-CLI  ·  Flag idea as inappropriate…  ·  Admin →
      • PowerShell Script required to fetch Azure VM Size Pricng for the particular region

        Like Get-AzureRmVmSize -Location "East US" to fetch the list of Azure VM Size in the location we need PowerShell Script to fetch Azure VM Size Pricing for the particular region

        3 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 →
        • Script to login to Azure Subscription using ARM runbooks

          Since Azure ARM has a different way of interfacing the system using the Powershell ARM runbooks might be a good idea to write a script syntax how to connect to the subscription.

          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…)
            1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
          • It is really bad idea to depricate Select-AzureRmProfile

            It is really bad idea to deprecate Select-AzureRmProfile
            A lot of community scripts/runbooks, internal scripts, etc,. are using that alias

            3 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 →
            • Restoration of Databases from .bacpac file

              There should such a runbook in azure which should be capable to restore a database from .bacpac file daily.
              Suppose someone has automated the backup(.bacpac) of a certain production database and he/she wants to restore the Production database on UAT database daily at a certain time.
              Runbook should also be capable to delete the UAT database and then restore with the same name.For example, database name is abc.UAT and it should be restored from abc.PROD database's .bacpac.
              Since, the URL of .bacpac will change daily so this runbook should be capable to accomodate the daily chaning URL of .bacpac file.

              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 →
              • Script to deplay fortigate firewall in Azure

                Fortigate (Fortinet) firewall in Azure I cant actually find a script.

                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 →
                • 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  ·  Xplat-CLI  ·  Flag idea as inappropriate…  ·  Admin →
                  • 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…)
                      2 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                    • add application-gateway multi-site http-listener support in azure-cli

                      Could you consider adding support for application-gateway multi-site http-listeners in azure-cli (and azure 2.0 preview)?

                      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…)
                        1 comment  ·  Xplat-CLI  ·  Flag idea as inappropriate…  ·  Admin →
                      • List owners of devices with "Get-AzureADDevice" command

                        When using "Get-AzureADDevice" commands there is currently no way to retrieve information about the device owner. Adding this would add more flexibility when generating device reports from Azure AD through PowerShell.

                        6 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 →
                        • Get-AzureRmSubscription should return Offer ID

                          as need it when working with Rate Card API so want to automate set up of Application / Security Principal

                          6 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 →
                          • How to upload war file to WebApps directly with PowerShell script

                            How to upload war file to WebApps directly with PowerShell script

                            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 →
                            • How about removing the old incorrect scripts, like for SQL Database?

                              Please contact me - these scripts for SQL Database are extremely old and way out of date.
                              jhubbard@microsoft.com

                              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 →
                              • Create multiple VM's simultaneously

                                Hello,

                                I am planning to prepare a power-shell script to create multiple VM's simultaneously. I have a CSV file where I will populate the data and import to the PowerShell scripts. Based on the details given in the CSV file powershell scripts will perform below actions-

                                Check RSG for Compute resource, if not available go ahead and create it.
                                Check RSG for Storage account, if not available go ahead and create it.
                                Check Storage account, if not available go ahead and create it.
                                Check Availability Set, if not available go ahead and create it.
                                Create Nic cards
                                Create VMs.
                                I…

                                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…)
                                  1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
                                • Maintain User Defined Routes via DNS Name

                                  A script designed to run in Azure Automation which takes a list of DNS names and updates VNet User Defined Routes based on the current IPs.

                                  A config file would contain everything usually defined for a UDR, only with FQDNs instead of IPs. The script would resolve the FQDNs and then create the UDRs. When IPs change new rules would be added, but the rule for the old IP should also be retained until it has not been seen for 24 hours - to allow for transient changes or round robin DNS. This will require the script perform some state…

                                  3 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 →
                                  • Download billing information

                                    Script automation of billing download, so that when the end of the month arrives there is a copy of the bill with the actual costs not just resource consumption. This will enable visibility of historic Azure costs for token or prepay customers, which is not currently possible.

                                    Even better would be to enable configuration of the billing information so that cost by tag or resource group can be readily calculated.

                                    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 →
                                    • Inventory Generation for ARM

                                      Create a PowerShell script to generate inventory of a particular subscription for an Azure account. It should be developed for both ASM and ARM.

                                      11 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 →
                                      • CDN Profile & endpoint creation

                                        Script that creates CDN Profile & endpoint creation

                                        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 →
                                        • Greetings Awesome Azure Team!! I dont see an option to add database-level firewall rule using powershell. Is there any way we can achieve ?

                                          Greetings Awesome Azure Team!! I dont see an option to add database-level firewall rule using power-shell. Is there any way we can achieve this? Quick response will really be appreciated folks!!

                                          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 3 4
                                          • Don't see your idea?

                                          Scripting and Command Line Tools

                                          Feedback and Knowledge Base