You create an Azure Policy scoped to a resource group that sets Virtual Machines as not allowed resource types. Later you move a virtual machine from other resource group to a resource group covered by Azure Policy. What happens?
Experience Level: Junior
Tags: Azure CloudAzure Policy
Answer
The Azure Policy prevents VMs from being deployed to a resource group, so no new VMs can be created.
However, non-deployment operations like Move, Start, Stop are still allowed so you will be able to successfully move an existing VM from other resource group to a resource group that the Azure Policy is scoped to.
Related Azure Cloud job interview questions
According to Microsoft Cloud Adoption Framework (CAF), what are the three specific terms related to Management phaze that can help improve conversations among business stakeholders?
Microsoft Cloud Adoption Framework (CAF) JuniorWhat are 6 key steps for establishing a management baseline according to Microsoft Cloud Adoption Framework (CAF)?
Microsoft Cloud Adoption Framework (CAF) JuniorWhat is management baseline according to Microsoft Cloud Adoption Framework (CAF)?
Microsoft Cloud Adoption Framework (CAF) JuniorWhat are the 5 disciplines of cloud governance according to Microsoft Cloud Adoption Framework (CAF)?
Microsoft Cloud Adoption Framework (CAF) JuniorIs Cloud Security Posture Management (CSPM) available for all Azure Subscriptions?
Microsoft Defender Junior