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

    421 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    5 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →

    This is a great idea. We are thinking about adding such functionality to the Portal. No confirmed plan yet. Thanks.

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

    201 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    under review  ·  1 comment  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  3. 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
    160 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →

    We will see whether there is a way to do this with the Current Windows Azure PowerShell and if not, what it would take to provide such functionality.

  4. Create PowerShell scripts to configure monitoring and alert

    Create PowerShell scripts to configure the monitoring level (minimal or verbose), the Metrics that appear in the Dashboard and the Alerts on that Metrics.

    54 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 →
  5. Create subscription by using PowerShell

    Please provide a way to create subscriptions by using PowerShell. We would like to fully automate the creation of subscription

    39 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  6. Powershell Cmdlet for Azure Mobile Services

    Should have a set of cmdlets for Azure Powershell to manage Azure Mobile Services in the same way you manage websites and cloud services.

    36 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. 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?

    33 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 →
  8. 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.

    32 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  9. Add more info to Login-AzureRMAccount in case of issue

    For ASM model we have useful info if login was not successful if we have issue with firewall.
    But ARM just "swallowing" exception without any explanation. Example in attachment

    30 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. Powershell Support for Azure storage Table

    We heavily use Azure storage table and we don't support for managing and querying Azure storage tables. I am in support and not so in C#, but good at powershell.

    Can we get some sample scripts on like querying the Azure storage table based on .net class that are available for Azure storage table.

    30 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 →
  11. automatically download the latest ip ranges used by MS Azure Datacenters

    I see MS has provide website where you can download the public ip ranges used by MS Azure.

    The question is, is there a way to download the XML file from that site automatically using Python or other scripts? I am trying to schedule a task to grab the new IP range file and process it .

    Thanks,
    Adi

    29 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Xplat-CLI  ·  Flag idea as inappropriate…  ·  Admin →

    Thank you for the feedback. We now have a report that is generated weekly on Mondays: Azure Service Tags JSON (https://www.microsoft.com/en-us/download/details.aspx?id=56519). This file includes all of the Service Tags and data by regions. This is an improvement over previous files as it includes tagging by Service Tag. We recommend you move to using this file and check weekly for updates. The file is broken out by Cloud (I.e. Public) and region (i.e., West US 2). We will take the RSS Feed request under advisement.

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

    24 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  13. 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?

    21 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →

    Would love to see how many people actually do this on a daily basis. Also, this requires all the code we use in PowerShell to be PCL. Doable but need to understand the value first.

  14. API or PowerShell cmdlet that allow us to create subscriptions programmatically

    The isolation provided at the subscription level can solve several business problems. If we were able to automate the creation of a subscription as part of the deployment, it would allow us to deploy an entire project into our tenant/account without manual tasks.
    Parameters or Portal settings could be used for things like credit card and administrators.

    19 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  15. Network and Firewall Logs

    It would be ideal if we could get the logs from the network and firewalls. I see that there are diagnostics available for the VPN but it would be ideal to see activity on the firewall and be able to put those logs into System Center or a syslog server or a system like LogRhythm for security analysis.

    19 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Powershell  ·  Flag idea as inappropriate…  ·  Admin →
  16. 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.

    19 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 →

    We understand the needs. Will think about besides expose the cmdlet, what else do we need to make it good for scripting.

  17. Powershell command to change azure alert state

    it would be nice to have a powershell command to bulk change the Azure Alerts state. Currently have 322 alerts to confirm and seems I can only do them 10 at at time? I tried with the smart group but it gives me a warning that it wont change the state doing it that way.

    if there is a way to do it with PS please let me know.

    18 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. azure-cli should support two factor authentication and/or public key authentication

    azure-cli should support two factor authentication and/or public key authentication

    16 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    4 comments  ·  Flag idea as inappropriate…  ·  Admin →
  19. 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

    16 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 →
  20. Cleanup Services, VM's & VHD's deployed under a Cloud Service

    <#
    # PowerShell script to delete all VM's created under a Cloud Service.
    It also delete the VHDs from the storage

    >

    $subscription = Read-Host "Enter your Subscription Name"
    Select-AzureSubscription –Default $subscription
    Get-AzureService |
    Select-Object @{"Label"="ServiceName";Expression={$.Label}} |
    Out-GridView -Title "Select VM Deployments to Remove" -PassThru |
    ForEach-Object { Remove-AzureDeployment -ServiceName $
    .ServiceName -Slot Production -DeleteVHD -Force
    Remove-AzureService -ServiceName $_.ServiceName -Force }

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

Scripting and Command Line Tools

Categories

Feedback and Knowledge Base