Skip to content

Commit ec1924a

Browse files
fix: updates
Signed-off-by: Andriy Kalashnykov <[email protected]>
1 parent 417fd60 commit ec1924a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ azd auth login
3333
# First-time project setup. Initialize a project in the current directory, using this template.
3434
# azd init --template AndriyKalashnykov/todo-nodejs-mongo-terraform --no-prompt
3535

36+
#
37+
# Configure remote state storage account - https://github.com/MicrosoftDocs/azure-dev-docs/blob/main/articles/terraform/store-state-in-azure-storage.md#azure-cli
38+
#
39+
#!/bin/bash
40+
41+
# RESOURCE_GROUP_NAME=tfstate
42+
# STORAGE_ACCOUNT_NAME=tfstate$RANDOM
43+
# CONTAINER_NAME=tfstate
44+
45+
# # Create resource group
46+
# az group create --name $RESOURCE_GROUP_NAME --location eastus
47+
48+
# # Create storage account
49+
# az storage account create --resource-group $RESOURCE_GROUP_NAME --name $STORAGE_ACCOUNT_NAME --sku Standard_LRS --encryption-services blob
50+
51+
# # Create blob container
52+
# az storage container create --name $CONTAINER_NAME --account-name $STORAGE_ACCOUNT_NAME
53+
3654
azd env set RS_RESOURCE_GROUP tfstate-rg
3755
azd env set RS_STORAGE_ACCOUNT tfstate29056
3856
azd env set RS_CONTAINER_NAME tfstate
@@ -41,12 +59,12 @@ azd env set RS_CONTAINER_NAME tfstate
4159
azd up
4260
```
4361

44-
### Test API
62+
### Use APIs
4563

4664
```bash
4765
source <(azd env get-values)
4866

49-
curl -X POST "$API_URI/api/Generate"
67+
curl -X POST "$API_URI/api/GenerateAPIx"
5068

5169
az keyvault key delete --vault-name kv-n2m1njk5mwq3z --name 4ea92dfb-2091-40e3-ab1f-5b33097e1285
5270

0 commit comments

Comments
 (0)