Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1.32 KB

Create Azure ISO 27001-2013 Policy Assignment.md

File metadata and controls

28 lines (16 loc) · 1.32 KB

This step creates Policy Assignments for ISO 27001:2013 Regulatory Compliance

The Blueprint first gets the Execution Policy of the current PowerShell session.

Then it checks if the Execution Policy is set to Unrestricted.

If it's not, it then sets the Execution Policy to Unrestricted for the current session.

Next, the AzPowerShell module is imported to the current session.

Then the values below are set:

  1. UserName: This is the Username of the Azure Administrator corresponding to the AzureUserName set in the Inputs Tab.
  2. PasswordString: This is the Password of the Azure Administrator corresponding to the AzurePassword set in the Inputs Tab.
  3. SubscriptionName: This holds an array of Azure Subscriptions corresponding to the AzureSubscription set in the Inputs Tab.
  4. ResourceIDLocation: This holds the location of the policy assignment's resource identity corresponding to the ResourceIDLocation set in the Inputs Tab.

Next, a connection to Azure is made.

Then it loops through all Subscriptions on Azure and check their availability.

All Azure Policy Definitions are retrieved for each subscription in Azure.

Then the Policy Definitions are filtered specifically for ISO 27001:2013

New Azure Policy Assignments are created using the filtered Policy Definitions.

Finally, the Azure PowerShell session is disconnected.