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.

  1. Create a powershell alternative for dsregcmd /status

    Create a powershell commandlet that shows the same if as DSregcmd /status

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  2. Document token timeout handling when using "Connect-AzureRmAccount -MSI"

    When I log in with "Connect-AzureRmAccount -MSI", then loop forever calling AzureRM powershell commands from time to time, I eventually get a token expired exception. I've experimented with periodically logging off and logging on again, and using different "scope" values - but still eventually get the problem. After I get the token expired exception I can only get things going again by killing the script process and starting it again.

    The documentation does not cover this at all as far as I can see. The Connect-AzureRmAccount documentation does not describe what is going on under the hood with tokens and…

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  3. Powershell from approved IP addresses

    Wanted to see an IP whitelist for Powershell activities into my environment. The only external IPs that are allowed to run Powershell in my environment would need to be part of this whitelist.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  4. New-AzureRmIntegrationAccountMap more mapTypes

    I am deploying maps using New-AzureRmIntegrationAccountMap.

    I want to deploy Xslt20, Xslt30 and Liquid with powershell.

    When do you plan to add more mapTypes?

    3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  5. Az Support for Loading SSL from KeyVault

    The new Az Module lacks support for the CustomDomainHttpsParameters so I can load an SSL certificate from the KeyVault. As it stands now, I have to first use the Az Module to see if the cert exists then hit the management REST API from code. That's not desirable.

    3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  6. upgrade MSBuild from 14to15 onkudu as compatibility with C#7 version so could you upgrade to 15 because industry using MSBuild 15 as for C#

    we need MSBuild version 15 on kudu as compatibility with C#7 version so could you upgrade to 15 because industry using MSBuild 15 as for C#

    10 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  7. ImportError: No module named 'azure'

    ImportError: No module named 'azure'

    why does this happen?

    7 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  8. Allow tagging of all eligible resources via Powershell

    Currently, there are several types of resources that cannot be tagged via Powershell, for example, OperationsManagement/solutions. It is very tedious to have to use both Powershell and Command Line to input tags when the rest of a resource group can be tagged simply by scripting tag application down from the RG level.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  9. Powershell Cmd to List All Alert Rules of Subscription

    Hi,

    In our environment we are trying to stop all alert rules on non-business hours. Since monitor section does not have any maintenance window, we are trying to create powershell using get all the alert rule and disable it. Please allow us to enable\disable all Alert rule(Activity\Metric\Log Analytics Query) using pwershell cmd.

    12 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  10. Invoke-Sqlcmd -Credential still only supports SQL user accounts v21.1.18080

    Invoke-Sqlcmd has the -Credential Parameter which says it supports a PSCredential. In testing it does not work with windows accounts (domain or local) even though a PSCredential can store them and they work with other cmdlets. We should be able to use a single credential if it has rights to both the OS and Instance, the documentation is wrong or the implementation is wrong.

    8 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  11. Powershell or API ability to add\remove to favorites bar on Azure portal

    The list of Azure services in the favorites bar on the left - would love to have a way of adding\removing this or creating a template that I can use when I have to manage a tenant. At the moment, as we are a CSP, each time a new tenant is added, I have to customize the favorites bar to my liking. I'd like to be able to automate this if possible,

    Thanks
    Shaun

    3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  12. Allow subscription level deployments using the Azure Deployment Template

    Would like to leverage the new commands of Add New-AzureRMDeploymen\az deployment to allow the deployment of resources at the subscription level in the Azure Deployment Template form. Currently the form only support Resource Group deployments. The main use case would be the creation of a Resource Group itself. Would like to be about to create a resource group, from a template, using the Azure Template as the interface as outline in this article:
    https://docs.microsoft.com/en-us/azure/azure-resource-manager/deploy-to-subscription

    4 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  13. Please stop relying on QuickStart templates to demonstrate so much - they are mostly unusable for Production scenarios

    When I search online for how to script resources in Azure using Powershell, I find way too many "QuickStart Templates" that are imported using the New-AzureRmResourceGroupDeployment cmdlet. This is not "using Powershell". These template inevitably have a kernel of what I need to do. But they are coded to a convoluted JSON structure that it is impossible to unpick and customize to an actual Production scenario.

    I actually believe that most of these examples are "export to script" output from the Portal and have not really be crafted to be useable by DevOps.

    Please stop delivering examples using this technique:…

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  14. Reevaluate Azure Policy button/powershell command

    In Azure Policies, we can find the compliance state, but it will take too long to evaluate this compliance state.
    1-Please, speedup evaluation
    2- Add a button "reevaluate policy now", because after an update of the policy- customer want asap see - how his modification affect resources

    11 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    4 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  15. Tags property behavior should be the same for ResourceGroup and Resource

    I noticed a difference between the Tags property of a Resource Group and the Tags property of a single Resource.

    When a new Resource Group (without tags) is created and you get a reference to it using Get-AzureRmResourceGroup and inspect it's "Tags" property, it will return $null.

    When you do the same for a new Resource (without tags), using Get-AzureRmResource and querying the "Tags" property will throw a PropertyNotFound exception.

    I suggest a change where the behavior of both Tags properties is the same. When a Resource Group or a Resource has no tags set, either let their Tags property…

    3 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  16. 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
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  17. 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
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  18. add the ability to use self-signed certificates for URL in CustomScriptExtension

    I’m using the VM CustomScriptExtension with a URL that points back to our web server to collect the powershell script and command that we use to download and install our own custom software. Tthe extension is failing because of the self-signed certificate on the web server. The CustomScriptForLinux does not have the same issue; I’m able to install our software just fine on Linux.

    1 vote
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  19. 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
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  20. 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
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
← Previous 1 3
  • Don't see your idea?

Scripting and Command Line Tools

Categories

Feedback and Knowledge Base