Run PowerShell Scripts with Azure Automation Hybrid Workers on-premises using Azure Arc

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 11

  • @arieheinrich3457
    @arieheinrich3457 9 месяцев назад +37

    Thomas, im wondering what are really the benefits of this compared to using the PowerShell scripts or python code in an Azure DevOps Repos and create a pipeline that runs on a self-hosted agent that's on-premise ?

  • @raymondcolijn8130
    @raymondcolijn8130 Год назад +3

    Thanks for the information

  • @NathanKasco
    @NathanKasco 2 года назад +3

    Great video! 3 questions:
    1. Is there a cost for the automation workers account? Or is it free (especially since this solution runs the actual code on-prem)
    2. Can I tie in publishing to an ADO Pipeline so that when I do a Pull Request it automatically uploads my script to Azure?
    3. Can you do interactive use cases? For example maybe a script approaches a decision point where the user is asked if they want to proceed or not.

    • @Thomas_Maurer
      @Thomas_Maurer  2 года назад

      1. Check out the pricing page: azure.microsoft.com/en-us/pricing/details/automation/#pricing
      2. Yes, with the Git integration learn.microsoft.com/en-us/azure/automation/source-control-integration
      3. Well, you would need the script in a way that this would work. I don't have something in my head, but I am sure it can be done.
      That said, it is not really designed for that, and jobs might can timeout.

  • @bhushangawale3252
    @bhushangawale3252 2 года назад +7

    Thanks for sharing this! What's the recommendation for scripts / runbooks to be executed on all the nodes in the worker group? Currently it does seem to pick only node from the group and use it.

    • @Thomas_Maurer
      @Thomas_Maurer  2 года назад

      Yes that is the behavior we would expect from it. The group is more designed that if one of the workers is not available, another worker node would pick the script execution up. But yes this means only one node will run it. So if you need to run the commands against multiple server, I would recommend to build this into the script.

  • @tuanang112
    @tuanang112 3 месяца назад

    My runbook is forbidden by traffic filter of elastic cloud. Runbook is used for deleting data on elasticsearch after each 3 months. Does Hybrid Runbook Worker work in this situation ?. I need to
    add an ip in traffic filter of elastic cloud to allow runbook running

  • @tsuyax6054
    @tsuyax6054 2 года назад +1

    Is the get-vm query all vms on all subscription?

    • @Thomas_Maurer
      @Thomas_Maurer  2 года назад

      This get-vm is running locally in the Hyper-V host and lists all the VMs running on-premises on that spesific host/cluster.
      In Azure there is a Get-AzVM cmdlet, which is different.