Skip to content

Commit 7a61b45

Browse files
authored
Merge pull request #15 from hunterjam/fixDeploymentGuide
update deployment guide
2 parents feebc1e + bd786ef commit 7a61b45

1 file changed

Lines changed: 1 addition & 62 deletions

File tree

content-gen/docs/DEPLOYMENT.md

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -136,68 +136,7 @@ Depending on your subscription quota and capacity, you can adjust quota settings
136136

137137
### Deploying with AZD
138138

139-
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:
140-
141-
1. Login to Azure:
142-
143-
```shell
144-
azd auth login
145-
```
146-
147-
To authenticate with Azure Developer CLI (`azd`), use the following command with your **Tenant ID**:
148-
149-
```shell
150-
azd auth login --tenant-id <tenant-id>
151-
```
152-
153-
2. Provision and deploy all the resources:
154-
155-
```shell
156-
azd up
157-
```
158-
159-
3. Provide an `azd` environment name (e.g., "contentgen").
160-
4. Select a subscription from your Azure account and choose a location that has quota for all the resources.
161-
- This deployment will take *7-10 minutes* to provision the resources in your account and set up the solution with sample data.
162-
- If you encounter an error or timeout during deployment, changing the location may help, as there could be availability constraints for the resources.
163-
164-
5. Once the deployment has completed successfully, copy the bash commands from the terminal for later use.
165-
166-
> **Note**: if you are running this deployment in GitHub Codespaces or VS Code Dev Container skip to step 7.
167-
168-
6. Create and activate a virtual environment:
169-
170-
```shell
171-
python -m venv .venv
172-
```
173-
174-
```shell
175-
.venv\Scripts\activate
176-
```
177-
178-
On Linux/Mac/GitBash:
179-
180-
```shell
181-
source .venv/bin/activate
182-
```
183-
184-
7. Login to Azure:
185-
186-
```shell
187-
az login
188-
```
189-
190-
8. Run the data setup scripts to populate product catalogs and upload sample images:
191-
192-
```shell
193-
bash ./infra/scripts/data_scripts/run_upload_data_scripts.sh
194-
```
195-
196-
If you don't have azd env then you need to pass parameters along with the command. Check the script for required parameters.
197-
198-
9. Once the scripts have run successfully, go to the deployed resource group, find the App Service, and get the app URL from `Default domain`.
199-
200-
10. If you are done trying out the application, you can delete the resources by running `azd down`.
139+
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 the steps in the [AZD Deployment Guide](AZD_DEPLOYMENT.md)
201140
202141
## Post Deployment Steps
203142

0 commit comments

Comments
 (0)