AZ-305 Design infrastructure solutions • Set 7
AZ-305 Design infrastructure solutions Practice Test 7 — 15 questions with explanations. Free, no signup.
You are an Azure administrator. You attempt to create a new virtual machine with size Standard_DS2_v2 in a subscription where the above Azure Policy is assigned. What will happen?
Refer to the exhibit.
```json
{
"properties": {
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Compute/virtualMachines"
},
"then": {
"effect": "deny",
"details": {
"field": "Microsoft.Compute/virtualMachines/size",
"notIn": ["Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3"]
}
}
},
"parameters": {}
}
}
```