Skip to content

Commit

Permalink
Update testresopurce.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alextts627 committed Jul 22, 2022
1 parent 0272368 commit e3a96d0
Showing 1 changed file with 88 additions and 88 deletions.
176 changes: 88 additions & 88 deletions sdk/maps/test-resources.json
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]"
}
}
}
}

0 comments on commit e3a96d0

Please sign in to comment.