Day 06: Azure Resource Manager (Resources & Resource Groups & Management Groups) and Compliance in Azure

"I'm a 3rd-year Computer Engineering student at Marwadi University with skills in C++, web development (MERN stack), and DevOps tools like Kubernetes. I contribute to open-source projects and share tech knowledge on GitHub and LinkedIn. I'm learning cloud technologies and app deployment. As an Internshala Student Partner, I help others find jobs and courses." now currently focusing on #90DaysOfDevops
Azure Resource Manager (Resources & Resource Groups & Management Groups)
Azure Resource
Anythings you create in an Azure subscription
E.g. virtual machines, Application Gateways, and CosmosDB instances
๐ก Good to have consistent naming convention e.g.:
cloudarchitecture-prod-infrastructure-rgwhat it's used for (
cloudarchitecture)environment (
prod)the types of resources contained within (
infrastructure)type of resource it is itself (
rg= resource group)
Provides fine-grained access management through role-based access control (RBAC)
๐ You can move some resources that supports move to a new resource group or subscription if they support move operation.
Tagging
Helps you better search, filter, and organize these resources
Name/value pairs of text data that you can apply to resources and resource groups
E.g.
department (like finance, marketing, and more)
environment (prod, test, dev)
cost center
life cycle and automation (like shutdown and startup of virtual machines)
๐ก๐ Good way to group your billing data
- E.g. VMs on production that belongs to a cost center A.
๐ก Help with monitoring
- You can set-up alerts based on tags e.g. if a resource fails notification goes to the finance department.
๐ก Help with automation
- E.g.
shutdown:6PMandstartup:7AMtag TO automate the shutdown and startup of virtual machines in development environments during off-hours to save costs.
- E.g.
๐ก Help with automation Governance through Policies
- E.g. ensure that all resources have the Department tag associated with them and block creation if it doesn't exist.
โ Limitations:
A resource can have up to 50 tags.
๐ Tags aren't inherited from parent resources.
๐ Not all resource types support tags
Resource locks
๐ Blocks modification (Read-only) or deletion (Delete) of the resource.
- For more granular control of what can be deployed e.g. see Azure policies
Read-only allows only
HTTP GETrequests- โ Can lead to unexpected results e.g. listing all objects in a storage account requires
POSTrequest is denied
- โ Can lead to unexpected results e.g. listing all objects in a storage account requires
๐ You must remove the lock in order to perform forbidden activity.
Apply regardless of RBAC permissions
๐ Protects against accidental deletion
๐ก Use to protect key resources that could have a large impact if they were removed or modified
- E.g. ExpressRoute circuits, virtual networks, critical databases, and domain controllers
Only "Owner" and "User Access Administrator" can create/delete locks
- It requires access to
Microsoft.Authorization/locks/*
- It requires access to
Azure Resource Group
Also an Azure resource so it can have locks, tags, RBAC permissions etc.
- It's free!
Logical container for resources deployed on Azure.
Tied to a region & subscription itself.
๐ But can contain resources from different regions
- โIf region the RG goes down, the management of the RG would not work.
Helps you organize resources
- You can place resources of e.g. similar usage, type, or location in same group.
๐ If you delete a resource group, all resources contained within are also deleted.
Authorization
Scope for applying role-based access control (RBAC) permissions.
Permissions are inherited in all resources that the group has.
โ All resources must be in a resource group and a resource can only be a member of a single resource group.
- Before any resource can be provisioned, you need a resource group
โ Some services has specific limitations or requirements to move from one resource group to another
โ Can't be nested.
Can see history of the deployments to a resource group
Organizing resource groups
By type (virtual networks, virtual machines, cosmos dbs)
By environment (prod, qa, dev)
By department (marketing, finance, human resources)
Combining strategies e.g. environment and department:
By authorization
By who needs to administer them.
See RBAC
E.g. databases in database administration group to give access to database administrators.
By life cycle
- Allows you to e.g. delete after experimentation.
By billing
- A way to filter and sort the data to better understand where costs are allocated.
Management Groups
๐ Groups multiple subscriptions.
๐ Can have RBAC assignments and policies
- Inherited by underlying subscriptions
Good for enterprises
E.g.
Compliance in Azure
Microsoft Privacy Statement
๐ Explains what personal data Microsoft processes, how Microsoft processes it, and for what purposes.
Applies to the interactions Microsoft has with you and Microsoft products such as Microsoft services, websites, apps, software, servers, and devices.
Microsoft Trust Center
๐ In-depth information about security, privacy, compliance offerings, policies, features, and practices across Microsoft cloud products.
Recommended resources in the form of a curated list of the most applicable and widely used resources for each topic.
Direct guidance and support
Service Trust Portal
๐ Can download
audit reports produced by external auditors
Microsoft-authored reports about its cloud services.
Also has compliance guides to help you understand how you can use Microsoft cloud service features to manage compliance with various regulations.
Hosts Compliance Manager, companion feature to the Trust Center.
Compliance Manager
Free workflow-based risk assessment dashboard with
- summary of your data protection, compliance stature, recommendations for improvement
Features:
Combines the following three items:
Information provided by Microsoft to auditors and regulators e.g.ISO 27001, ISO 27018, and NIST.
Information that Microsoft compiles internally for its compliance with regulations (such as HIPAA and the EU GDPR).
An organization's self-assessment of their own compliance with these standards and regulations.
Repository in which to upload and manage evidence and other artifacts related to compliance activities.
Assign, track, and record compliance and assessment-related activities
- Help your organization cross team barriers to achieve your organization's compliance goals.
Compliance Score to help you track your progress with onging risk assessments.
- Recommends also actions as part of the risk assessment.
Excel reports that document the compliance activities performed by Microsoft and your organization.
- ๐ก Can be provided to auditors, regulators, and other compliance stakeholders
Azure Security Center
๐ Global service in Azure that includes regulatory compliance dashboard of your services.
Insights into your compliance posture based on continuous assessments
Analyzes risk factors in your hybrid cloud environment according to security best practices
Overall security score, assessment against e.g. CIS, PCI DSS 3.2.1, SOC, ISO 27001..










