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

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 11

  • @arieheinrich3457
    @arieheinrich3457 5 місяців тому +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 ?

  • @bhushangawale3252
    @bhushangawale3252 Рік тому +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  Рік тому

      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.

  • @NathanKasco
    @NathanKasco Рік тому +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  Рік тому

      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.

  • @raymondcolijn8130
    @raymondcolijn8130 8 місяців тому +3

    Thanks for the information

  • @tuanang112
    @tuanang112 День тому

    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 Рік тому +1

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

    • @Thomas_Maurer
      @Thomas_Maurer  Рік тому

      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.