An administrator is deploying a new virtual machine named WebVM1 to host a stateless web application. The deployment must meet the following requirements:
- Use an Ephemeral OS disk with a size of GB.
- Allow WebVM1 to read files from a container in an Azure storage account named storage1.
Which two actions should you perform? (Select two.)
- Select a virtual machine size that provides a local cache or temporary storage size of at least GB.Answer
- Assign the Storage Blob Data Reader role to the managed identity of WebVM1 at the scope of storage1.Answer
- CAssign the Contributor role to the managed identity of WebVM1 at the scope of storage1.
- DAssign the virtual machine deployment administrator a Microsoft Entra ID role scoped to an Administrative Unit containing WebVM1's resource group.
- EApply a ReadOnly lock to the resource group containing WebVM1 prior to VM deployment.
Answer
To support this configuration, you must select a virtual machine size that provides a local cache or temporary storage size of at least GB, and assign the Storage Blob Data Reader role to the managed identity of WebVM1 at the scope of storage1.
Selecting a virtual machine size with a local cache or temporary storage size of at least GB ensures there is sufficient local capacity to host the GB Ephemeral OS disk. Assigning the Storage Blob Data Reader role to the managed identity of WebVM1 at the scope of storage1 provides the necessary data-plane permissions for the VM to read files from the blob containers.
Step-by-Step Solution
Key Concept
Configuring virtual machine storage and access control during creation.
Estimated Time:2m 0s