Exhibit
Refer to the exhibit.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "shared_office365",
"location": "[resourceGroup().location]",
"properties": {
"displayName": "Office 365 Outlook",
"api": {
"id": "/subscriptions/123/resourceGroups/RG/providers/Microsoft.Web/locations/eastus/managedApis/shared_office365"
},
"parameterValues": {
"token:clientId": "client-id-here",
"token:clientSecret": "secret-here",
"token:resourceUri": "https://outlook.office365.com"
}
}
},
{
"type": "Microsoft.PowerApps/apps",
"apiVersion": "2022-04-01",
"name": "MyApp",
"location": "eastus",
"properties": {
"appId": "app-id-here",
"connectionReferences": {
"shared_office365": {
"connectionName": "shared_office365",
"source": "Embedded",
"id": "[resourceId('Microsoft.Web/connections', 'shared_office365')]"
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/connections', 'shared_office365')]"
]
}
]
}- A
To deploy the resources to different regions
Why wrong: dependsOn does not control region.
- B
To ensure the connection is deployed before the app
The app depends on the connection, so connection must exist first.
- C
To ensure the app is deployed before the connection
Why wrong: dependsOn ensures the connection is deployed first.
- D
To reduce the cost of the deployment
Why wrong: dependsOn does not affect cost.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.