Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add self-hosting docs for Azure App Service

Tuan Dang70f1122362cf
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-configuration.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-configuration.png
new file mode 100644
index 0000000000..20df647f3d
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-configuration.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-deployment-complete.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-deployment-complete.png
new file mode 100644
index 0000000000..3594e85722
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-deployment-complete.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-overview.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-overview.png
new file mode 100644
index 0000000000..fed2f8adb3
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-app-service-overview.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-basics.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-basics.png
new file mode 100644
index 0000000000..d449bd0b85
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-basics.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-docker.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-docker.png
new file mode 100644
index 0000000000..49c3e7d9de
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-docker.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-review.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-review.png
new file mode 100644
index 0000000000..20cb407d45
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-review.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service.png
new file mode 100644
index 0000000000..60a3e4d69e
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-app-services/aas-select-app-services.png b/docs/images/self-hosting/deployment-options/azure-app-services/aas-select-app-services.png
new file mode 100644
index 0000000000..17dd978a51
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-app-services/aas-select-app-services.png differ
diff --git a/docs/mint.json b/docs/mint.json
index ec90bea655..70ab21b8f2 100644
--- a/docs/mint.json
+++ b/docs/mint.json
@@ -162,6 +162,7 @@
"self-hosting/deployment-options/kubernetes-helm",
"self-hosting/deployment-options/aws-ec2",
"self-hosting/deployment-options/gcp-cloud-run",
+ "self-hosting/deployment-options/azure-app-services",
"self-hosting/deployment-options/azure-container-instances",
"self-hosting/deployment-options/docker-compose",
"self-hosting/deployment-options/digital-ocean-marketplace",
diff --git a/docs/self-hosting/deployment-options/azure-app-services.mdx b/docs/self-hosting/deployment-options/azure-app-services.mdx
new file mode 100644
index 0000000000..a8472ae2bf
--- /dev/null
+++ b/docs/self-hosting/deployment-options/azure-app-services.mdx
@@ -0,0 +1,71 @@
+---
+title: "Azure App Services"
+description: "Deploy Infisical with Azure App Service"
+---
+
+Prerequisites:
+ - Have an account with [Microsoft Azure](https://azure.microsoft.com/en-us)
+
+<Steps>
+ <Step title="Create a Web App in Azure App Services">
+ 1.1. In Azure, navigate to the **App Services** solution and press **Create > Web App**.
+
+ ![Azure app services](/images/self-hosting/deployment-options/azure-app-services/aas-select-app-services.png)
+
+ ![Azure create app service](/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service.png)
+
+ 1.2. In the **Basics** section, specify the **Subscription** and **Resource group** to manage the deployed resource.
+
+ Also, give the container a friendly name like Infisical and specify a **Region** for it to be deployed to.
+
+ ![Azure app service basics](/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-basics.png)
+
+ 1.3. In the **Docker** section, select the **Single Container** option under **Options** and specify **Docker Hub** as the image source
+
+ Next, under the **Docker hub options** sub-section, select the **Public** option under **Access Type** and fill in your intended [Infisical public Docker image](https://hub.docker.com/r/infisical/infisical) in the **Image and tag** field; this will pull the image from Docker Hub.
+
+ For example, in order to opt for Infisical `v0.43.4`, you would input: `infisical/infisical:v0.43.4`.
+
+ ![Azure app service docker](/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-docker.png)
+
+ 1.4. Finally, in the **Review + create** section, double check the information from the previous steps and press **Create** to create the Azure app service.
+
+ ![Azure app service review](/images/self-hosting/deployment-options/azure-app-services/aas-create-app-service-review.png)
+
+ 1.5. Next, wait a minute or two on the deployment overview page for the app to be created. Once the deployment is complete, press **Go to resource**
+ to head to the **App Service dashboard** for the newly-created app.
+
+ ![Azure app service deployment complete](/images/self-hosting/deployment-options/azure-app-services/aas-app-service-deployment-complete.png)
+
+ 1.6. Running Infisical requires a few environment variables to be set for the Azure app service.
+ At minimum, Infisical requires that you set the variables `ENCRYPTION_KEY`, `AUTH_SECRET`, `MONGO_URL`, and `REDIS_URL`
+ which you can read more about [here](/self-hosting/configuration/envars).
+
+ <Note>
+ To use more features like emailing and single sign-on, you can set additional configuration options [here](/self-hosting/configuration/envars).
+ </Note>
+
+ Additionally, you must set the variable `WEBSITES_PORT=8080` since
+ Infisical listens on port `8080`.
+
+ In the **Settings > Configuration** section of the newly-created app service, fill in the required environment variables.
+
+ ![Azure app service deployment complete](/images/self-hosting/deployment-options/azure-app-services/aas-app-service-configuration.png)
+ </Step>
+ <Step title="Navigate to your deployed instance of Infisical">
+ In the **Overview** section, check out the **Default domain** for your instance of Infisical; you can visit the instance at this URL.
+
+ ![Azure app service deployment complete](/images/self-hosting/deployment-options/azure-app-services/aas-app-service-overview.png)
+ </Step>
+</Steps>
+
+<AccordionGroup>
+ <Accordion title="Do you have any recommendations for deploying Infisical with Azure App Services?">
+ Yes, here are a few that come to mind:
+ - In step 1.3, we recommend pinning the Docker image to a specific [version of Infisical](https://hub.docker.com/r/infisical/infisical/tags)
+ instead of referring to the `latest` tag to avoid any unexpected version-to-version migration issues.
+ - In step 1.2, we recommend selecting a **Region** option that is closest to your infrastructure/clients to reduce latency.
+
+ We're working on putting together a fuller list of deployment best practices as well as minimum resource configuration requirements for running Infisical so stay tuned!
+ </Accordion>
+</AccordionGroup>
\ No newline at end of file
diff --git a/docs/self-hosting/deployment-options/azure-container-instances.mdx b/docs/self-hosting/deployment-options/azure-container-instances.mdx
index e2df879707..5aca5663ce 100644
--- a/docs/self-hosting/deployment-options/azure-container-instances.mdx
+++ b/docs/self-hosting/deployment-options/azure-container-instances.mdx
@@ -13,6 +13,8 @@ Prerequisites:
- [Enabling a TLS endpoint in a sidecar container](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-ssl).
- [Enabling automatic HTTPS with Caddy in a sidecar container](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-automatic-ssl).
- Using Azure Function Proxies, Application Gateway, etc.
+
+ For a simpler deployment experience with complete TLS/SSL setup, you may try [deploying Infisical with Azure App Services](/self-hosting/deployment-options/azure-app-services).
</Note>
<Steps>
@@ -48,7 +50,7 @@ Prerequisites:
![Azure container instance networking](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-networking.png)
- 1.4. Running Infisical requires a few environment variables to be set for the GCP Cloud Run service.
+ 1.4. Running Infisical requires a few environment variables to be set for the Azure container instance.
At minimum, Infisical requires that you set the variables `ENCRYPTION_KEY`, `AUTH_SECRET`, `MONGO_URL`, and `REDIS_URL`
which you can read more about [here](/self-hosting/configuration/envars).
@@ -65,7 +67,6 @@ Prerequisites:
![Azure container instance review](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-review.png)
</Step>
<Step title="Navigate to your deployed instance of Infisical">
-
Head to the **Overview** page of the newly-created container instance to view its **IP address (Public)**; you can access your instance of Infisical by this IP address under the port `:8080`.
For example, in the image below, the IP address of the sample deployed container instance is `4.255.87.109`; the instance would be accessible in the browser by heading to `4.255.87.109:8080`.
@@ -84,4 +85,4 @@ Prerequisites:
We're working on putting together a fuller list of deployment best practices as well as minimum resource configuration requirements for running Infisical so stay tuned!
</Accordion>
-</AccordionGroup>
+</AccordionGroup>
\ No newline at end of file
diff --git a/docs/self-hosting/overview.mdx b/docs/self-hosting/overview.mdx
index 3e0fac2ce9..1f09be3f17 100644
--- a/docs/self-hosting/overview.mdx
+++ b/docs/self-hosting/overview.mdx
@@ -53,6 +53,13 @@ Choose from a variety of deployment options listed below to get started.
>
Deploy Infisical with GCP Cloud Run
</Card>
+ <Card
+ title="Azure App Services"
+ color="#ea5a0c"
+ href="deployment-options/azure-app-services"
+ >
+ Deploy Infisical with Azure App Services
+ </Card>
<Card
title="Azure Container Instances"
color="#ea5a0c"