Configure Azure Policy Flashcards

1
Q

Create management groups

A

Organizations that use multiple subscriptions need a way to efficiently manage access, policies, and compliance. Azure management groups provide a level of scope and control above your subscriptions. You can use management groups as containers to manage access, policy, and compliance across your subscriptions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Consider the following characteristics of Azure management groups:

A

By default, all new subscriptions are placed under the top-level management group, or root group.

All subscriptions within a management group automatically inherit the conditions applied to that management group.

A management group tree can support up to six levels of depth.

Azure role-based access control authorization for management group operations isn’t enabled by default.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Consider custom hierarchies and groups

A

Align your Azure subscriptions by using custom hierarchies and grouping that meet your company’s organizational structure and business scenarios. You can use management groups to target policies and spending budgets across subscriptions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Consider policy inheritance.

A

Control the hierarchical inheritance of access and privileges in policy definitions. All subscriptions within a management group inherit the conditions applied to the management group. You can apply policies to a management group to limit the regions available for creating virtual machines (VMs). The policy can be applied to all management groups, subscriptions, and resources under the initial management group, to ensure VMs are created only in the specified regions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Consider compliance rules

A

Organize your subscriptions into management groups to help meet compliance rules for individual departments and teams.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Consider cost reporting.

A

Use management groups to do cost reporting by department or for specific business scenarios. You can use management groups to report on budget details across subscriptions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Create management groups

A

You can create a management group with Azure Policy by using the Azure portal, PowerShell, or the Azure CLI
A management group has a directory unique identifier (ID) and a display name. The ID is used to submit commands on the management group. The ID value can’t be changed after it’s created because it’s used throughout the Azure system to identify the management group. The display name for the management group is optional and can be changed at any time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Azure Policy Enforce rules and compliance

A

Enable built-in policies, or build custom policies for all resource types. Support real-time policy evaluation and enforcement, and periodic or on-demand compliance evaluation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Azure Policy Apply policies at scale

A

Apply policies to a management group with control across your entire organization. Apply multiple policies and aggregate policy states with policy initiative. Define an exclusion scope.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Azure Policy Perform remediation

A

Conduct real-time remediation, and remediation on your existing resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Azure Policy Exercise governance

A

Implement governance tasks for your environment:
- Support multiple engineering teams (deploying to and operating in the environment)
- Manage multiple subscriptions
- Standardize and enforce how cloud resources are configured
- Manage regulatory compliance, cost control, security, and design consistency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Consider deployable resources

A

Specify the resource types that your organization can deploy by using Azure Policy. You can specify the set of virtual machine SKUs that your organization can deploy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Consider location restrictions

A

Restrict the locations your users can specify when deploying resources. You can choose the geographic locations or regions that are available to your organization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Consider rules enforcement

A

Enforce compliance rules and configuration options to help manage your resources and user options. You can enforce a required tag on resources and define the allowed values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Consider inventory audits

A

Use Azure Policy with Azure Backup service on your VMs and run inventory audits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Create Azure policies

A

Azure Administrators use Azure Policy to create policies that define conventions for resources. A policy definition describes the compliance conditions for a resource, and the actions to complete when the conditions are met. One or more policy definitions are grouped into an initiative definition, to control the scope of your policies and evaluate the compliance of your resources.

17
Q

Step 1: Create policy definitions

A

A policy definition expresses a condition to evaluate and the actions to perform when the condition is met. You can create your own policy definitions, or choose from built-in definitions in Azure Policy. You can create a policy definition to prevent VMs in your organization from being deployed, if they’re exposed to a public IP address.

18
Q

Step 2: Create an initiative definition

A

An initiative definition is a set of policy definitions that help you track your resource compliance state to meet a larger goal. You can create your own initiative definitions, or use built-in definitions in Azure Policy. You can use an initiative definition to ensure resources are compliant with security regulations.

19
Q

Step 3: Scope the initiative definition

A

Azure Policy lets you control how your initiative definitions are applied to resources in your organization. You can limit the scope of an initiative definition to specific management groups, subscriptions, or resource groups.

20
Q

Step 4: Determine compliance

A

After you assign an initiative definition, you can evaluate the state of compliance for all your resources. Individual resources, resource groups, and subscriptions within a scope can be exempted from having the policy rules affect it. Exclusions are handled individually for each assignment.

21
Q

Create policy definitions

A

Azure Policy offers built-in policy definitions to help you quickly configure control conditions for your resources. In addition to the built-in policies, you can also create your own definitions, or import definitions from other sources.

22
Q

built-in policy definitions Allowed virtual machine size SKUs

A

Specify a set of VM size SKUs that your organization can deploy. This policy is located under the Compute category.

23
Q

built-in policy definitions Allowed locations

A

Restrict the locations users can specify when deploying resources. Use this policy to enforce your geo-compliance requirements. This policy is located under the General category.

24
Q

built-in policy definitions Configure Azure Device Update for IoT Hub accounts to disable public network access

A

Disable public network access for your Device Update for IoT Hub resources. This policy is located under the Internet of Things category.

25
Q

Create an initiative definition

A

After you determine your policy definitions, the next step is to create an initiative definition for your policies. An initiative definition has one or more policy definitions. One example for using initiative definitions is to ensure your resources are compliant with security regulations.
Tip
Even if you have only a few policy definitions in your organization, we recommend creating and applying an initiative definition.

26
Q

built-in initiative definitions: Audit machines with insecure password security settings

A

Use this initiative to deploy an audit policy to specified resources in your organization. The definition evaluates the resources to check for insecure password security settings. This initiative is located in the Guest Configuration category.

27
Q

built-in initiative definitions: Configure Windows machines to run Azure Monitor Agent and associate them to a Data Collection Rule

A

Use this initiative to monitor and secure your Windows VMs, Virtual Machine Scale Sets, and Arc machines. The definition deploys the Azure Monitor Agent extension and associates the resources with a specified Data Collection Rule. This initiative is located in the Monitoring category.

28
Q

built-in initiative definitions: Configure Azure Defender to be enabled on SQL servers

A

Enable Azure Defender on your Azure SQL Servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. This initiative is located in the SQL category.

29
Q

Scope the initiative definition

A

After you create your initiative definition, the next step is to assign the initiative to establish the scope for the policies. The scope determines what resources or grouping of resources are affected by the conditions of the policies.

30
Q

Determine compliance

A

You have your policies defined, your initiative definition created, and your policies assigned to affected resources. The last step is to evaluate the state of compliance for your scoped resources.