-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0272368
commit 5018bc8
Showing
2 changed files
with
90 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,100 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"baseName": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().name]", | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"baseName": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().name]", | ||
"metadata": { | ||
"description": "The base resource name." | ||
} | ||
}, | ||
"endpointPrefix": { | ||
"defaultValue": "maps", | ||
"type": "string" | ||
}, | ||
"mapsServicesEndpointSuffix": { | ||
"defaultValue": ".maps.azure.com", | ||
"type": "string" | ||
}, | ||
"testApplicationOid": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The client OID to grant access to test resources." | ||
} | ||
}, | ||
"tenantId": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The base resource name." | ||
} | ||
}, | ||
"endpointPrefix": { | ||
"defaultValue": "maps", | ||
"type": "string" | ||
}, | ||
"mapsServicesEndpointSuffix": { | ||
"defaultValue": ".maps.azure.com", | ||
"type": "string" | ||
}, | ||
"testApplicationOid": { | ||
"type": "string", | ||
"description": "The tenant id to which the application and resources belong." | ||
} | ||
}, | ||
"testApplicationId": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The client OID to grant access to test resources." | ||
"description": "The application client id used to run tests." | ||
} | ||
}, | ||
"tenantId": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The tenant id to which the application and resources belong." | ||
}, | ||
"testApplicationSecret": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The application client secret used to run tests." | ||
} | ||
} | ||
}, | ||
"variables": { | ||
"uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]", | ||
"contributorRoleId": "b24988ac-6180-42a0-ab88-20f7382dd24c", | ||
"mapsAccountName": "[guid(resourceGroup().id, deployment().name, parameters('baseName'))]" | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Maps/accounts", | ||
"apiVersion": "2021-12-01-preview", | ||
"name": "[variables('mapsAccountName')]", | ||
"location": "eastus", | ||
"sku": { | ||
"name": "G2", | ||
"tier": "Standard" | ||
}, | ||
"testApplicationId": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The application client id used to run tests." | ||
} | ||
"kind": "Gen2", | ||
"identity": { | ||
"type": "None" | ||
}, | ||
"testApplicationSecret": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The application client secret used to run tests." | ||
"properties": { | ||
"disableLocalAuth": false, | ||
"cors": { | ||
"corsRules": [ | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"AZURE_TENANT_ID": { | ||
"type": "string", | ||
"value": "[parameters('tenantId')]" | ||
}, | ||
"variables": { | ||
"uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]", | ||
"contributorRoleId": "b24988ac-6180-42a0-ab88-20f7382dd24c", | ||
"mapsAccountName": "[guid(resourceGroup().id, deployment().name, parameters('baseName'))]" | ||
"AZURE_CLIENT_ID": { | ||
"type": "string", | ||
"value": "[parameters('testApplicationId')]" | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Maps/accounts", | ||
"apiVersion": "2021-12-01-preview", | ||
"name": "[variables('mapsAccountName')]", | ||
"location": "eastus", | ||
"sku": { | ||
"name": "G2", | ||
"tier": "Standard" | ||
}, | ||
"kind": "Gen2", | ||
"identity": { | ||
"type": "None" | ||
}, | ||
"properties": { | ||
"disableLocalAuth": false, | ||
"cors": { | ||
"corsRules": [ | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"AZURE_TENANT_ID": { | ||
"type": "string", | ||
"value": "[parameters('tenantId')]" | ||
}, | ||
"AZURE_CLIENT_ID": { | ||
"type": "string", | ||
"value": "[parameters('testApplicationId')]" | ||
}, | ||
"AZURE_CLIENT_SECRET": { | ||
"type": "string", | ||
"value": "[parameters('testApplicationSecret')]" | ||
}, | ||
"SUBSCRIPTION_KEY": { | ||
"type": "string", | ||
"value": "[listKeys(resourceId('Microsoft.Maps/accounts',variables('mapsAccountName')), '2021-12-01-preview').primaryKey]" | ||
}, | ||
"RESOURCE_GROUP_NAME": { | ||
"type": "string", | ||
"value": "[resourceGroup().Name]" | ||
} | ||
"AZURE_CLIENT_SECRET": { | ||
"type": "string", | ||
"value": "[parameters('testApplicationSecret')]" | ||
}, | ||
"AZURE_SUBSCRIPTION_KEY": { | ||
"type": "string", | ||
"value": "[listKeys(resourceId('Microsoft.Maps/accounts',variables('mapsAccountName')), '2021-12-01-preview').primaryKey]" | ||
}, | ||
"RESOURCE_GROUP_NAME": { | ||
"type": "string", | ||
"value": "[resourceGroup().Name]" | ||
} | ||
} | ||
} | ||
} |