-
Notifications
You must be signed in to change notification settings - Fork 194
/
configuration.prod.yaml
62 lines (62 loc) · 3.22 KB
/
configuration.prod.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apimServiceName: [prod or any other target environment apim instance name goes here]
namedValues:
- name: environment
properties:
displayName: environment
value: "https://www.search2.com"
- name: mysecretvalue
properties:
displayName: mysecretvalue
keyVault:
identityClientId: [identity client id goes here]
secretIdentifier: [your url here]
- name: testSecret
properties:
displayName: testSecret
value: "{#testSecretValue#}"
- name: helloworldfromfuncapp-key
properties:
displayName: helloworldfromfuncapp-key
value: "{#helloworldfromfuncappkey#}"
- name: 634e022983908257b35630b0
properties:
displayName: helloworldfromlogicapp_manual-invoke_634e022983908257b35630b0
value: "{#helloworldfromlogicapp#}"
loggers:
- name: [source (not destination) application insights name that you are overriding. Refer to the wiki at https://github.com/Azure/apiops/wiki/APIM-resources#loggers on options to override the logger name in higher environment]
properties:
loggerType: applicationInsights
description: prod application insights
resourceId: "/subscriptions/[your guid here]/resourceGroups/rg-apim-lab-prod/providers/microsoft.insights/components/[destination environment application insights name]"
credentials:
instrumentationKey: "{{ [namedvalue in the destination environment that will store your target application insights name. Refer to the wiki at https://github.com/Azure/apiops/wiki/APIM-resources#loggers for ways on improving the default namedvalues that get generated by apim] }}"
isBuffered: true
diagnostics:
- name: applicationinsights
properties:
verbosity: Error
loggerId: "/subscriptions/[subscription Guid goes here]/resourceGroups/rg-apim-lab-prod/providers/Microsoft.ApiManagement/service/apim-prod-wk-05102022/loggers/[application insights name you chose for the destination environment]"
backends:
- name: helloworldfromfuncapp
properties:
url: "https://helloworldfromprodfuncapp.azurewebsites.net/api"
resourceId: "https://management.azure.com/subscriptions/[subscription Guid goes here]/resourceGroups/rg-apim-lab-prod/providers/Microsoft.Web/sites/helloworldfromprodfuncapp"
credentials:
header:
"INSERT-HEADER-NAME": [
"***********INSERT HARDCODED VALUE***************"
]
"INSERT-HEADER-NAME-2": [
"{{INSERT SAVED NAME VALUE}}"
]
- name: LogicApp_helloworldfromlogicapp_rg-apim-lab_77fadbdc74f14ce88962b34400a1f170
properties:
url: "https://prod-75.eastus.logic.azure.com/workflows/[guid goes here]/triggers"
resourceId: "https://management.azure.com/subscriptions/[subscription Guid goes here]/resourceGroups/rg-apim-lab-prod/providers/Microsoft.Logic/workflows/helloworldfromprodlogicapp"
apis:
- name: demo-conference-api
diagnostics:
- name: applicationinsights
properties:
verbosity: Error
loggerId: "/subscriptions/[subscription Guid goes here]/resourceGroups/rg-apim-lab-prod/providers/Microsoft.ApiManagement/service/apim-prod-wk-05102022/loggers/[application insights name you chose for the destination environment]"