-
Notifications
You must be signed in to change notification settings - Fork 0
/
provider.json
40 lines (40 loc) · 1.23 KB
/
provider.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceProviderURL": { "type": "string" },
"authzCode": { "type": "string" }
},
"variables": {
"apiVersions": {
"MicrosoftCustomProviders_resourceProviders": "2018-09-01-preview"
},
"customRP": {
"name": "customDevOpsResource"
}
},
"resources": [
{
"apiVersion": "[variables('apiVersions').MicrosoftCustomProviders_resourceProviders]",
"type": "Microsoft.CustomProviders/resourceProviders",
"name": "[variables('customRP').name]",
"location": "[resourceGroup().location]",
"properties": {
"actions": [
{
"name": "ping",
"routingType": "Proxy",
"endpoint": "[concat(parameters('resourceProviderURL'), '/{requestPath}', concat('?code=', parameters('authzCode')))]"
}
],
"resourceTypes": [
{
"name": "postgresqldb",
"routingType": "Proxy,Cache",
"endpoint": "[concat(parameters('resourceProviderURL'), '/{requestPath}', concat('?code=', parameters('authzCode')))]"
}
]
}
}
]
}