Share via

Update Multiple Azzure Network Security Groups Powershell

Jeff Fazio 36 Reputation points
2023-08-03T20:18:11.9733333+00:00

I am trying to see if there is a way to update multiple NSG's using Powershell that are all in the same subscription but also different Resource Groups? It will be the same rule for all the NSG's so just looking for a fast way to push it out since we have hundreds of them. I know how to do one but doing it that way I define the NSG and Resource group that it's in that I am updating each time

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. K Sheahan Kularathne 436 Reputation points
    2023-08-04T08:09:42.64+00:00

    Hi

    You can use Azure Automation Account and create PowerShell runbook with a schedule.

    Thnx

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.