Skip to content

Commit f996a4e

Browse files
deployment guide azd changes
1 parent 23a2edd commit f996a4e

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

docs/DeploymentGuide.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,48 @@ The automated deployment process is very straightforward and simplified via a si
5656
6. Update Kubernetes configuration files.
5757
7. Deploy certificates, ingress controller and then application images from Azure Container Registry.
5858

59+
### Deploying with AZD
60+
61+
Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure by following these steps:
62+
63+
1. Clone the repository or download the project code via command-line:
64+
65+
```cmd
66+
git clone https://github.com/microsoft/Document-Knowledge-Mining-Solution-Accelerator
67+
```
68+
69+
Open the cloned repository in Visual Studio Code and connect to the development container.
70+
71+
```cmd
72+
code .
73+
```
74+
75+
2. Login to Azure:
76+
77+
```shell
78+
azd auth login
79+
```
80+
81+
#### To authenticate with Azure Developer CLI (`azd`), use the following command with your **Tenant ID**:
82+
83+
```sh
84+
azd auth login --tenant-id <tenant-id>
85+
```
86+
87+
3. Provision and deploy all the resources:
88+
89+
```shell
90+
azd up
91+
```
92+
93+
4. Provide an `azd` environment name (e.g., "ckmapp").
94+
5. Select a subscription from your Azure account and choose a location that has quota for all the resources.
95+
-- This deployment will take *7-10 minutes* to provision the resources in your account and set up the solution with sample data.
96+
- If you encounter an error or timeout during deployment, changing the location may help, as there could be availability constraints for the resources.
97+
98+
6. Once the deployment has completed successfully, open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service, and get the app URL from `Default domain`.
99+
100+
7. If you are done trying out the application, you can delete the resources by running `azd down`.
59101
60102
### Execute Deployment Script:
61103
Open PowerShell, change directory where you code cloned, then run the deploy script:
@@ -137,3 +179,9 @@ Execute uploadfiles.ps1 file with **-EndpointUrl** parameter as URL in console m
137179
```
138180
.\uploadfiles.ps1 -EndpointUrl https://kmgs<your dns name>.<datacenter>.cloudapp.azure.com
139181
```
182+
183+
If you run into issue with PowerShell script file not being digitally signed, you can execute below command:
184+
185+
```
186+
powershell.exe -ExecutionPolicy Bypass -File ".\uploadfiles.ps1" -EndpointUrl https://kmgs<your dns name>.<datacenter>.cloudapp.azure.com
187+
```

0 commit comments

Comments
 (0)