|
| 1 | +--- |
| 2 | +title: Apply a Quick Action |
| 3 | +sidebar_label: Apply a Quick Action |
| 4 | +--- |
| 5 | + |
| 6 | +# Apply a Quick Action |
| 7 | + |
| 8 | +In this guide we’ll show how you can enable Guardrails to perform [Quick Actions](/guardrails/docs/guides/quick-actions) that fix misconfigurations. A Quick Action empowers an administrator to quickly fix misconfigurations by applying a change directly to an underlying Azure resource. In order to use this feature, the role used by Guardrails will need additional permissions to perform those actions. This guide will instruct you how to change the permissions specific to storage accounts, other types of quick actions will require different permission grants. |
| 9 | + |
| 10 | +This is the ninth guide in the *Getting started with Azure series*. |
| 11 | + |
| 12 | +## Prerequisites |
| 13 | + |
| 14 | +- Completion of the previous guides in this series. |
| 15 | +- Access to the Guardrails console with administrative privileges. |
| 16 | +- Access to the Azure portal with administrative privileges to add permissions to the Guardrails role. |
| 17 | + |
| 18 | +## Step 1: Locate the resource group |
| 19 | + |
| 20 | +In the Azure portal, navigate to **Resource Groups** and select the storage accounts you’re using in this series. |
| 21 | + |
| 22 | +<p><img alt="permissions 1" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/permissions-1.png"/></p> |
| 23 | + |
| 24 | +## Step 2: Open Access Control (IAM) |
| 25 | + |
| 26 | +<p><img alt="permissions 2" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/permissions-2.png"/></p> |
| 27 | + |
| 28 | +## Step 3: Begin role assignment |
| 29 | + |
| 30 | +Expand the **Add** dropdown and choose **Add role assignment**. |
| 31 | + |
| 32 | +<p><img alt="permissions 3" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/permissions-3.png"/></p> |
| 33 | + |
| 34 | +## Step 4: Search for the role |
| 35 | + |
| 36 | +Seach for `storage account contributor`, select it, and select **Next**. |
| 37 | + |
| 38 | +<p><img alt="permissions 4" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/permissions-4.png"/></p> |
| 39 | + |
| 40 | +## Step 5: Search for registered app |
| 41 | + |
| 42 | +Select **Select members**, search for the name of your registered app, and **Select** it. |
| 43 | + |
| 44 | +<p><img alt="permissions 5" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/permissions-5.png"/></p> |
| 45 | + |
| 46 | +## Step 6: Review and assign |
| 47 | + |
| 48 | +<p><img alt="permissions 6" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/permissions-6.png"/></p> |
| 49 | + |
| 50 | +## Step 7: Find Quick Actions |
| 51 | + |
| 52 | +Select **Policies** from the top-level navigation. In the search box, type `quick actions`, then select the **Turbot > Quick Actions > Enabled** policy type. |
| 53 | + |
| 54 | +<p><img alt="find_quick_actions_policies" src="/images/docs/guardrails/getting-started/getting-started-aws/apply-quick-action/find-quick-actions-policies.png"/></p> |
| 55 | + |
| 56 | +Select the green **New Policy Setting** button. |
| 57 | + |
| 58 | +<p><img alt="view-quick-actions-enabled-policy-type" src="/images/docs/guardrails/getting-started/getting-started-aws/apply-quick-action/view-quick-actions-enabled-policy-type.png"/></p> |
| 59 | + |
| 60 | +## Step 8: Enable Quick Actions |
| 61 | + |
| 62 | +Choose **Sandbox** as the **Resource**, and then select **Enabled**, and select the green **Create** button. |
| 63 | + |
| 64 | +<p><img alt="aws-enable-quick-actions" src="/images/docs/guardrails/getting-started/getting-started-aws/apply-quick-action/aws-enable-quick-actions.png"/></p> |
| 65 | + |
| 66 | +## Step 9: Find a storage account in Alarm |
| 67 | + |
| 68 | +Use your bookmark to navigate back to the **Controls by State** report and filter on **Azure > Storage > Storage Account > Minimum TLS Version**. |
| 69 | + |
| 70 | +<p><img alt="find_storage_account_in_alarm_for_quick_action" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/find-storage-account-in-alarm-for-versioning.png"/></p> |
| 71 | + |
| 72 | +## Step 10: Select a storage account in Alarm |
| 73 | + |
| 74 | +Select a storage account in `Alarm` state from the list of storage accounts. |
| 75 | + |
| 76 | +<p><img alt="select_storage account_in_alarm_for_quick_action" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/select-storage-account-in-alarm-for-versioning.png"/></p> |
| 77 | + |
| 78 | +## Step 11: Use a Quick Action |
| 79 | + |
| 80 | +Select the **Actions** dropdown, and choose *Set Minimum TLS Version*. |
| 81 | + |
| 82 | +<p><img alt="expand-quick-actions-dropdown" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/expand-quick-actions-dropdown.png"/></p> |
| 83 | + |
| 84 | +## Step 12: Observe the change |
| 85 | + |
| 86 | +Guardrails reports that the action was successful, and the control goes to the `OK` state. |
| 87 | + |
| 88 | +<p><img alt="observe-updated-control" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/observe-updated-control.png"/></p> |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | +## Step 13: Check if it worked |
| 93 | + |
| 94 | +Open a tab to the Azure portal and navigate to the storage account. Confirm the Guardrails `Quick Action` has correctly set the minimum TLS version. |
| 95 | + |
| 96 | +<p><img alt="observe-azure-console-result" src="/images/docs/guardrails/getting-started/getting-started-azure/apply-quick-action/raw-observe-azure-console-result.png"/></p> |
| 97 | + |
| 98 | +## Step 14: Review |
| 99 | + |
| 100 | +In this guide you enabled Guardrails Quick Actions and used a Quick Action to change a storage account's policy for minimum TLS version. |
| 101 | + |
| 102 | +## Next Steps |
| 103 | + |
| 104 | +In the [next guide](/guardrails/docs/getting-started/getting-started-azure/enable-enforcement) we’ll set Guardrails to automatically enforce these actions continuously. |
| 105 | + |
| 106 | + |
| 107 | +## Progress tracker |
| 108 | + |
| 109 | +- [x] Prepare an Azure Subscription for Import to Guardrails |
| 110 | +- [x] Connect an Azure Subscription to Guardrails |
| 111 | +- [x] Observe Azure Resource Activity |
| 112 | +- [x] Enable Your First Guardrails Policy Pack |
| 113 | +- [x] Review Subscription-Wide Governance |
| 114 | +- [x] Create a Static Exception to a Guardrails Azure Policy |
| 115 | +- [x] Create a Calculated Exception to a Guardrails Azure Policy |
| 116 | +- [x] Send an Alert to Email |
| 117 | +- [x] **Apply a Quick Action** |
| 118 | +- [ ] Enable Automatic Enforcement |
0 commit comments