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
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,19 @@ The Metrics Viewer can be integrated with GitHub application authentication, whi
10
10
11
11
With a Personal Access Token, user credentials are not verified, and the application simply renders Copilot metrics fetched using the PAT stored in the backend.
12
12
13
-
## One-click Azure Deployment
13
+
## Scenario 1: One-click Azure Deployment
14
14
15
-
By far the simplest way is to use the "one-click" option that creates resources in Azure. The deployment creates:
15
+
The simplest way to deploy is to use the "one-click" option that creates resources in Azure. The deployment includes:
16
16
17
17
* Azure Container App with a consumption environment
18
18
* Azure Log Analytics Workspace
19
19
20
+
Application will use a pre-built docker image hosted in GitHub registry: `ghcr.io/karpikpl/copilot-metrics-viewer-with-proxy`.
21
+
22
+
**Prerequisites:** Contributor permission to a resource group in Azure and a subscription with the `Microsoft.App` resource provider enabled.
23
+
24
+
**Estimated cost** for running this in Azure is about $1 per month, as Container Apps have the first 2 million requests each month free.
25
+
20
26
1.**Option 1 - Using a Personal Access Token in the Backend**:
21
27
22
28
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fkarpikpl%2Fcopilot-metrics-viewer%2Fmain%2Fazure-deploy%2Fwith-token%2Fazuredeploy.json)
@@ -31,16 +37,24 @@ By far the simplest way is to use the "one-click" option that creates resources
31
37
32
38
Go to: `https://github.com/organizations/<your-org>/settings/apps/<your-app>` or in the UI to the settings of the registered application and add the following redirect URLs:
If more control over the deployed container image is needed, an infrastructure-as-code option has been provided using Azure Bicep. The application can be deployed using the [Azure Developer CLI](https://aka.ms/azd) (azd).
43
48
49
+
In this scenario, the container is built from the source code locally, which provides additional opportunities to modify, scan, etc.
50
+
51
+
**Prerequisites:**
52
+
- Contributor permission to a subscription in Azure with the `Microsoft.App` resource provider enabled.
**Estimated cost** for running this in Azure is about $10 per month, Container Apps have the first 2 million requests each month free and Container Registry costs about $5.
57
+
44
58
The deployment creates:
45
59
46
60
* Azure Resource Group
@@ -63,9 +77,9 @@ azd env set GITHUB_CLIENT_ID <client id>
63
77
azd env set GITHUB_CLIENT_SECRET <client secret for the GH App>
64
78
```
65
79
66
-
## Deploying the container
80
+
## Scenario 3: Deploying the container
67
81
68
-
When using other deployment methods, the application can run as a Docker container with the required environment variables:
82
+
Application can be deployed anywhere where containers can run and configured via environment variables:
0 commit comments