You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEPLOYMENT.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,13 @@ Application will use a pre-built docker image hosted in GitHub registry: `ghcr.i
36
36
37
37
1.**Option 1 - Using a Personal Access Token in the Backend**:
38
38
39
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fgithub-copilot-resources%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-token%2Fazuredeploy.json)
39
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fgithub-copilot-resources%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-token%2Fazuredeploy.json/uiFormDefinitionUri/https%3A%2F%2Fraw.githubusercontent.com%2Fgithub-copilot-resources%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-token%2Fportal.json)
40
40
41
41
2.**Option 2 - Using GitHub App Registration and GitHub Authentication**:
42
42
43
43
When using this method, [register your app in Github first](#github-app-registration).
44
44
45
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fgithub-copilot-resources%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-app-registration%2Fazuredeploy.json)
45
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fgithub-copilot-resources%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-app-registration%2Fazuredeploy.json/uiFormDefinitionUri/https%3A%2F%2Fraw.githubusercontent.com%2Fgithub-copilot-resources%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-app-registration%2Fportal.json)
46
46
47
47
**Important**: After deploying Option 2, the redirect URI needs to be updated with the URL of the deployed container app.
"text": "Copilot Metrics Viewer allows users to view usage metrics for GitHub copilot. The application is deployed without authentication, any user who can access the app can view the metrics.",
26
+
"link": {
27
+
"label": "https://aka.ms/missionlz",
28
+
"uri": "https://aka.ms/missionlz"
29
+
}
30
+
}
31
+
},
32
+
{
33
+
"name": "name",
34
+
"type": "Microsoft.Common.TextBox",
35
+
"label": "Name",
36
+
"subLabel": "",
37
+
"defaultValue": "copilot-metrics",
38
+
"toolTip": "",
39
+
"constraints": {
40
+
"required": false,
41
+
"regex": "",
42
+
"validationMessage": "",
43
+
"validations": []
44
+
},
45
+
"infoMessages": [],
46
+
"visible": true
47
+
},
48
+
{
49
+
"name": "location",
50
+
"type": "Microsoft.Common.TextBox",
51
+
"label": "Location",
52
+
"subLabel": "",
53
+
"defaultValue": "[[resourceGroup().location]",
54
+
"toolTip": "The Azure Container App Location",
55
+
"constraints": {
56
+
"required": false,
57
+
"regex": "",
58
+
"validationMessage": "",
59
+
"validations": []
60
+
},
61
+
"infoMessages": [],
62
+
"visible": true
63
+
},
64
+
{
65
+
"name": "ghAppSection",
66
+
"label": "GitHub Application details",
67
+
"type": "Microsoft.Common.Section",
68
+
"elements": [
69
+
{
70
+
"name": "infoBoxLocation",
71
+
"type": "Microsoft.Common.InfoBox",
72
+
"options": {
73
+
"text": "Follow documentation to create GitHub App registration https://github.com/github-copilot-resources/copilot-metrics-viewer/blob/main/DEPLOYMENT.md#github-app-registration",
74
+
"style": "Info"
75
+
}
76
+
},
77
+
{
78
+
"name": "github-client-id",
79
+
"type": "Microsoft.Common.PasswordBox",
80
+
"label": {
81
+
"password": "GitHub App Client Id",
82
+
"confirmPassword": "Confirm client id"
83
+
},
84
+
"defaultValue": "",
85
+
"toolTip": "GitHub Client ID from App Installation",
86
+
"constraints": {
87
+
"required": true,
88
+
"regex": "",
89
+
"validationMessage": "",
90
+
"validations": []
91
+
},
92
+
"options": {
93
+
"hideConfirmation": true
94
+
},
95
+
"visible": true
96
+
},
97
+
{
98
+
"name": "github-client-secret",
99
+
"type": "Microsoft.Common.PasswordBox",
100
+
"label": {
101
+
"password": "GitHub App Client Secret",
102
+
"confirmPassword": "Confirm client secret"
103
+
},
104
+
"defaultValue": "",
105
+
"toolTip": "GitHub Client Secret (key) from App Registration",
106
+
"constraints": {
107
+
"required": true,
108
+
"regex": "",
109
+
"validationMessage": "",
110
+
"validations": []
111
+
},
112
+
"options": {
113
+
"hideConfirmation": true
114
+
},
115
+
"visible": true
116
+
}
117
+
]
118
+
},
119
+
{
120
+
"name": "ghSection",
121
+
"label": "GitHub Configuration",
122
+
"type": "Microsoft.Common.Section",
123
+
"elements": [
124
+
{
125
+
"name": "scope",
126
+
"type": "Microsoft.Common.DropDown",
127
+
"label": "Select the scope of the application",
128
+
"toolTip": "Organization or Enterprise.",
129
+
"placeholder": "",
130
+
"multiselect": false,
131
+
"selectAll": false,
132
+
"multiLine": false,
133
+
"constraints": {
134
+
"required": true,
135
+
"allowedValues": [
136
+
{
137
+
"value": "org",
138
+
"label": "Organization"
139
+
},
140
+
{
141
+
"value": "ent",
142
+
"label": "Enterprise"
143
+
}
144
+
]
145
+
}
146
+
},
147
+
{
148
+
"name": "github-organization",
149
+
"type": "Microsoft.Common.TextBox",
150
+
"label": "Github organization slug",
151
+
"subLabel": "",
152
+
"defaultValue": "",
153
+
"toolTip": "GitHub Organization - provide only if application-scope is organization",
0 commit comments