Your company has an Azure environment with a management group hierarchy. The environment includes an Azure subscription named Sub-Prod that contains a resource group named RG-Core.
A resource lock of type ReadOnly is applied to the Sub-Prod subscription.
A budget named Budget-Prod is configured at the Sub-Prod subscription scope. The budget has an alert threshold set to 90% of the budgeted amount, which is configured to trigger an Azure Monitor action group that executes an Azure Automation Runbook. The runbook is designed to automatically deallocate all virtual machines in RG-Core to minimize costs.
A user named User1 is assigned the Contributor role at the Sub-Prod subscription scope and the User Access Administrator role at the RG-Core resource group scope.
The actual cost of Sub-Prod reaches 95% of the budgeted amount.
When the budget alert triggers, what is the status of the virtual machines in RG-Core, and what action can User1 take regarding the resource lock to resolve any issues?
- AThe virtual machines are successfully deallocated because the ReadOnly lock only prevents resource deletion. User1 can delete the lock at the subscription scope using their Contributor permissions.
- BThe budget alert fails to trigger because Azure Budgets at the subscription scope cannot execute runbooks via action groups. User1 must delete the lock at the resource group level to manually stop the virtual machines.
- The virtual machines remain running because the ReadOnly lock prevents deallocation. User1 cannot delete the lock because their User Access Administrator role is scoped to the resource group, not the subscription.Cevap
- DThe virtual machines remain running because the ReadOnly lock prevents deallocation. User1 can delete the lock because the User Access Administrator role at the resource group scope inherits upward to allow management of subscription-level locks.