Skip to content

Commit e84bc43

Browse files
Merge branch 'development' into 1003858-Separate-OpenSave
2 parents 8d6eb93 + 00a235c commit e84bc43

11 files changed

Lines changed: 171 additions & 1 deletion

Document-Processing-toc.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5228,7 +5228,13 @@
52285228
<li><a href="/document-processing/excel/spreadsheet/react/cloud-storage/save-to-cloud/google-cloud-storage">Google Cloud Storage</a></li>
52295229
</ul>
52305230
</li>
5231-
<li><a href="/document-processing/excel/spreadsheet/react/docker-deployment">Docker Deployment</a></li>
5231+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment">Server Deployment</a>
5232+
<ul>
5233+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/docker-deployment">How to Deploy Spreadsheet Docker Image Locally</a></li>
5234+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-visual-studio">Deploy Spreadsheet Server Docker Image to Azure App Service using Azure CLI</a></li>
5235+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-azure-cli">Deploy Spreadsheet Server to Azure App Service using Visual Studio</a></li>
5236+
</ul>
5237+
</li>
52325238
<li><a href="/document-processing/excel/spreadsheet/react/worksheet">Worksheet</a></li>
52335239
<li><a href="/document-processing/excel/spreadsheet/react/cell-range">Cell Range</a></li>
52345240
<li><a href="/document-processing/excel/spreadsheet/react/editing">Editing</a></li>

Document-Processing/Excel/Spreadsheet/React/docker-deployment.md renamed to Document-Processing/Excel/Spreadsheet/React/Server-Deployment/docker-deployment.md

File renamed without changes.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
layout: post
3+
title: Deploy Spreadsheet Server to Azure App Service using CLI | Syncfusion
4+
description: Learn how to deploy the Syncfusion Spreadsheet Server Docker image to Azure App Service using Azure CLI.
5+
control: How to deploy Spreadsheet Server Docker Image to Azure App Service using Azure CLI
6+
platform: document-processing
7+
documentation: ug
8+
---
9+
10+
# Deploy Spreadsheet Server Docker Image to Azure App Service via CLI
11+
12+
## Prerequisites
13+
14+
* `Docker` installed on your machine (Windows, macOS, or Linux).
15+
* `Azure CLI` installed based on your operating system. [Download Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
16+
* An active [`Azure subscription`](https://azure.microsoft.com/en-gb) with App Services access.
17+
* The [`Spreadsheet Server Docker image`](https://hub.docker.com/r/syncfusion/spreadsheet-server) available.
18+
19+
## Deploy to Azure App Service using Azure CLI
20+
21+
**Step 1:** Log in to Azure
22+
23+
Open your terminal and sign in to Azure using the command below. This authenticates your CLI with Azure.
24+
25+
```bash
26+
az login
27+
```
28+
29+
**Step 2:** Create a resource group
30+
31+
Create a resource group with the following command in your preferred location.
32+
33+
```bash
34+
az group create --name < your-app-name> --location <your-selected-region>
35+
```
36+
37+
**Step 3:** Create an app service plan
38+
39+
Create a resource group with the following command in your preferred location.
40+
41+
```bash
42+
az appservice plan create --name --resource-group < your-resource-group> --sku S1 --is-linux
43+
```
44+
45+
This creates an App Service plan in the standard pricing tier (S1) and ensures it runs on Linux containers with the --is-linux flag.
46+
47+
**Step 4:** Create the docker-compose.yml file
48+
49+
Define your container configuration in a docker-compose.yml file. This file specifies the container name, image, and environment variables for the Spreadsheet Server:
50+
51+
```bash
52+
version: '3.4'
53+
54+
services:
55+
spreadsheet-server:
56+
image: syncfusion/spreadsheet-server
57+
environment:
58+
59+
# Provide your license key for activation
60+
SYNCFUSION_LICENSE_KEY: YOUR_LICENSE_KEY
61+
ports:
62+
- "6002:8080"
63+
64+
```
65+
66+
Note: Replace YOUR_LICENSE_KEY with your valid Syncfusion license key.
67+
68+
**Step 5:** Create a Docker compose app
69+
70+
Deploy the containerized app to Azure App Service using the following command.
71+
72+
```bash
73+
az webapp create --resource-group <your-resource-group> --plan < your-app-service-plan> --name <your-app-name> --multicontainer-config-type compose --multicontainer-config-file docker-compose.yml
74+
```
75+
76+
This command creates a web app that runs your Spreadsheet Server Docker container using the configuration defined in the docker-compose.yml file.
77+
78+
**Step 6:** Browse your app
79+
80+
Once deployed, your app will be live at https://XXXXXXXXXX.azurewebsites.net.
81+
82+
![azure cli](../images/azure-cli.png)
83+
84+
**Step 7:** With your server running, verify that it supports import and export operations by testing the following endpoints:
85+
```
86+
openUrl="https://XXXXXXXXXX.azurewebsites.net/api/spreadsheet/open"
87+
saveUrl="https://XXXXXXXXXX.azurewebsites.net/api/spreadsheet/save
88+
```
89+
Append the App Service running URL to the service URL in the client‑side Spreadsheet Editor component. For more information about how to get started with the Spreadsheet Editor component, refer to this [`getting started page`](../getting-started.md)
90+
91+
For more information about the app container service, please look deeper into the [`Microsoft Azure App Service`](https://docs.microsoft.com/en-us/visualstudio/deployment/) for a production-ready setup.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
layout: post
3+
title: Deploy Spreadsheet Server to Azure App Service via VS | Syncfusion
4+
description: Learn how to publish the Syncfusion Spreadsheet Server Web API to Azure App Service using Visual Studio.
5+
control: How to publish Spreadsheet Server in Azure App Service using Visual Studio
6+
platform: document-processing
7+
documentation: ug
8+
---
9+
10+
# Deploy Spreadsheet Server to Azure App Service from Visual Studio
11+
12+
## Prerequisites
13+
14+
* `Visual Studio 2022` or later is installed.
15+
* [`.NET 8.0 SDK`](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or later installed.
16+
* An active [`Azure subscription`](https://azure.microsoft.com/en-gb) with App Services access.
17+
* The [`Spreadsheet Web API project`](https://github.com/SyncfusionExamples/EJ2-Spreadsheet-WebServices/tree/main/WebAPI) repository cloned locally.
18+
19+
Make sure you build the project using the Build > Build Solution menu command before following the deployment steps.
20+
21+
## Publish to Azure App Service
22+
23+
**Step 1:** In Solution Explorer, right-click the project and click Publish (or use the Build > Publish menu item).
24+
25+
![azure publish ](../images/azure_publish.png)
26+
27+
**Step 2:** In the Pick a publish target dialog box, select Azure as deployment target.
28+
29+
![azure target ](../images/azure_target.png)
30+
31+
**Step 3:** After selecting Azure, choose Azure App Service under the target options.
32+
33+
![azure app service](../images/azure_app_service.png)
34+
35+
**Step 4:** Select Publish. The Create App Service dialog box appears. Sign in with your Azure account, if necessary, and then the default app service settings populate the fields.
36+
37+
![azure credentials](../images/azure_credentials.png)
38+
39+
**Step 5:** Select Create. Visual Studio deploys the app to your Azure App Service, and the web app loads in your browser with the app name at,
40+
```
41+
http://<app_name>.azurewebsites.net
42+
```
43+
44+
![azure_published_window](../images/azure_published_window.png)
45+
46+
**Step 6:** Once the deployment process is complete, The deployed API will be live at the following URL:
47+
https://XXXXXXXXXX.azurewebsites.net
48+
49+
**Step 7:** With your server running, verify that it supports import and export operations by testing the following endpoints:
50+
```
51+
openUrl="https://XXXXXXXXXX.azurewebsites.net/api/spreadsheet/open"
52+
saveUrl="https://XXXXXXXXXX.azurewebsites.net/api/spreadsheet/save
53+
```
54+
Append the App Service running URL to the service URL in the client‑side Spreadsheet Editor component. For more information about how to get started with the Spreadsheet Editor component, refer to this [`getting started page`](../getting-started.md)
55+
56+
For more information about the app container service, please look deeper into the [`Microsoft Azure App Service`](https://docs.microsoft.com/en-us/visualstudio/deployment/) for a production-ready setup.
39.6 KB
Loading
40.4 KB
Loading
28 KB
Loading
92.6 KB
Loading
55.7 KB
Loading
32.9 KB
Loading

0 commit comments

Comments
 (0)