Skip to content

Commit b65138f

Browse files
committed
updated readme
1 parent 3308370 commit b65138f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.MD

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,16 @@ Data API builder may take a few seconds to run if you are using Azure SQL and En
129129

130130
### Azure deployment
131131

132-
The easiest way to deploy the full-stack application is to fork the repository and then create a new Static Web Apps pointing to the forked repository. Once the Static Web App is deployed, configure the [Database Connection](https://learn.microsoft.com/en-us/azure/static-web-apps/database-overview) feature of Static Web Apps to connect to the Azure SQL database where you have deployed the database objects and the sample data.
132+
The easiest way to deploy the full-stack application is to fork the repository and use the GitHub repo as the deployment option for both
133133

134-
Make sure you give the user thay you are using to connect to the database the permission to run the needed stored procedures:
134+
- Static Web Apps
135+
- Azure Container Apps
136+
137+
When deploying Data API builder to Azure Container Apps, make sure to point to the `dab` folder, which contains the needed `Dockerfile`. Also, create a `MSSQL` environment variable for the Container in Container Apps, with the connection string to the Azure SQL database.
138+
139+
Once the Static Web App is deployed, configure the [API](https://learn.microsoft.com/en-us/azure/static-web-apps/apis-overview) feature of Static Web Apps to connect to the Azure Container App that you have created.
140+
141+
Make sure you give the user that you are using to connect to the database the permission to run the needed stored procedures:
135142

136143
```sql
137144
GRANT SELECT ON SCHEMA::[dbo] TO [<your user>]
@@ -142,8 +149,8 @@ GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::[<openai_url>] TO [<your user>];
142149

143150
replace `<your user>` with the user you are using to connect to the database and `<openai_url>` with the name of the database scoped credential you are using to connect to Azure OpenAI, which is the same as the value you used for the `OPENAI_URL` variable in the `.env` file.
144151

145-
That's it! You can now access the full-stack application deployed in Azure Static Web Apps.
152+
That's it! You can now access the full-stack application deployed in Azure Static Web Apps that will automatically route all API calls to Data API builder running in Azure Container Apps.
146153

147154
## Sample Data
148155

149-
You can add some data do play with using the `sample-data.sql` file in the `db/sample` folder.
156+
You can add some data to play with using the `sample-data.sql` file in the `db-script/samples` folder.

0 commit comments

Comments
 (0)