-
Notifications
You must be signed in to change notification settings - Fork 243
Expand file tree
/
Copy pathconfiguration.prod.yaml
More file actions
197 lines (181 loc) · 6.25 KB
/
configuration.prod.yaml
File metadata and controls
197 lines (181 loc) · 6.25 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
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#}"
policies:
- name: policy
properties:
format: rawxml
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]"
gateways:
- name: gatewayName1
properties:
locationData:
name: "gateway location"
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"
versionSets:
- name: versionSetName1
properties:
displayName: "My Version Set"
groups:
- name: groupName1
properties:
displayName: "My Group"
subscriptions:
- name: subscriptionName1
properties:
displayName: "My Subscription"
products:
- name: productName1
properties:
displayName: "My Product"
apis:
- name: demo-conference-api
properties:
displayName: "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]"
operations:
- name: operationName1
policies:
- name: policy
properties:
format: rawxml
policies:
- name: policy
properties:
format: rawxml
releases:
- name: releaseName1
properties:
notes: "Release notes"
tags:
- name: tagName1
properties:
displayName: "Tag 1"
policyFragments:
- name: policyFragment1
properties:
description: "Policy fragment description"
workspaces:
- name: workspaceName1
properties:
description: "Workspace description"
groups:
- name: workspaceGroupName1
properties:
displayName: "Workspace Group"
namedValues:
- name: workspaceNamedValueName1
properties:
displayName: workspaceNamedValueName1
value: "{#workspaceNamedValue#}"
backends:
- name: workspaceBackendName1
properties:
url: "https://workspace-backend.example.com"
loggers:
- name: workspaceLoggerName1
properties:
loggerType: applicationInsights
description: "Workspace logger"
tags:
- name: workspaceTagName1
properties:
displayName: "Workspace Tag"
versionSets:
- name: workspaceVersionSetName1
properties:
displayName: "Workspace Version Set"
products:
- name: workspaceProductName1
properties:
displayName: "Workspace Product"
policies:
- name: policy
properties:
format: rawxml
subscriptions:
- name: workspaceSubscriptionName1
properties:
displayName: "Workspace Subscription"
diagnostics:
- name: workspaceDiagnosticName1
properties:
verbosity: Error
policyFragments:
- name: workspacePolicyFragmentName1
properties:
description: "Workspace policy fragment"
apis:
- name: workspaceApiName1
properties:
displayName: "Workspace API"
diagnostics:
- name: workspaceApiDiagnosticName1
properties:
verbosity: Error
operations:
- name: workspaceApiOperationName1
policies:
- name: policy
properties:
format: rawxml
policies:
- name: policy
properties:
format: rawxml
releases:
- name: workspaceApiReleaseName1
properties:
notes: "Workspace release notes"