File tree 1 file changed +20
-2
lines changed 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,24 @@ azd auth login
33
33
# First-time project setup. Initialize a project in the current directory, using this template.
34
34
# azd init --template AndriyKalashnykov/todo-nodejs-mongo-terraform --no-prompt
35
35
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
+
36
54
azd env set RS_RESOURCE_GROUP tfstate-rg
37
55
azd env set RS_STORAGE_ACCOUNT tfstate29056
38
56
azd env set RS_CONTAINER_NAME tfstate
@@ -41,12 +59,12 @@ azd env set RS_CONTAINER_NAME tfstate
41
59
azd up
42
60
```
43
61
44
- ### Test API
62
+ ### Use APIs
45
63
46
64
``` bash
47
65
source <( azd env get-values)
48
66
49
- curl -X POST " $API_URI /api/Generate "
67
+ curl -X POST " $API_URI /api/GenerateAPIx "
50
68
51
69
az keyvault key delete --vault-name kv-n2m1njk5mwq3z --name 4ea92dfb-2091-40e3-ab1f-5b33097e1285
52
70
You can’t perform that action at this time.
0 commit comments