Workbook Azure Automation NSG Rules AzureRunAs connection

Hi here is a piece of coude you could use to open or either close ports in the NSG Azure VMS running a schedule and using automation. Requeriments Automation Account configurated and createdRun as Account configurated and createdRunbook experience-> https://docs.microsoft.com/en-us/azure/automation/manage-runbooksRun as connections : https://docs.microsoft.com/en-us/azure/automation/automation-connections?tabs=azure-powershell Code : #region BoilerplateAuthentication #This requires a RunAs account #AzureServicePrincipal - … Continue reading Workbook Azure Automation NSG Rules AzureRunAs connection