Skip to content

Commit

Permalink
Remove to other tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
pichuang committed Aug 26, 2023
1 parent bd2118b commit f2d5197
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/chatgpt-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Build KV based on this [article][3] and [Tutorial: Use a workload identity with
# 2. Export environment variables
#
# environment variables for the Azure Key Vault resource
export KEYVAULT_NAME="kv-aoai"
export KEYVAULT_NAME="kv-aoai-divecode"
export KEYVAULT_SECRET_NAME="secret-helloworld"
export KEYVAULT_RESOURCE_GROUP="rg-kv"
export AKS_RESOURCE_GROUP="rg-devdaysasia2023"
Expand Down
4 changes: 2 additions & 2 deletions app/chatgpt-lite/sa-wi-aoai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ metadata:
labels:
azure.workload.identity/use: "true"
annotations:
azure.workload.identity/client-id: 81504550-8929-4447-8c5f-dd9e9eae2237
azure.workload.identity/tenant-id: 16b3c013-d300-468d-ac64-7eda0820b6d3
azure.workload.identity/client-id: 00f1d4d1-aa25-44c0-ba16-07bce619e467
azure.workload.identity/tenant-id: 60c041af-d3e5-4152-a034-e8e449c34ab4
6 changes: 3 additions & 3 deletions app/chatgpt-lite/secret-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ spec:
parameters:
usePodIdentity: "false"
useVMManagedIdentity: "false"
clientID: "81504550-8929-4447-8c5f-dd9e9eae2237"
tenantId: "16b3c013-d300-468d-ac64-7eda0820b6d3"
keyvaultName: "kv-aoai"
clientID: "00f1d4d1-aa25-44c0-ba16-07bce619e467"
tenantId: "60c041af-d3e5-4152-a034-e8e449c34ab4"
keyvaultName: "kv-aoai-divecode"
cloudName: "AzurePublicCloud"
objects: |
array:
Expand Down
2 changes: 1 addition & 1 deletion app/workload-identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Build KV based on this [article][3] and [Tutorial: Use a workload identity with
# 2. Export environment variables
#
# environment variables for the Azure Key Vault resource
export KEYVAULT_NAME="kv-aoai"
export KEYVAULT_NAME="kv-aoai-divecode"
export KEYVAULT_SECRET_NAME="secret-helloworld"
export KEYVAULT_RESOURCE_GROUP="rg-kv"
export AKS_RESOURCE_GROUP="rg-devdaysasia2023"
Expand Down
4 changes: 2 additions & 2 deletions how-to/how-to-create-service-principle.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@


```bash
export APPLICATION_NAME="sp-devdaysasia2023-github"
export APPLICATION_NAME="sp-devdaysasia2023"

az cloud set --name AzurePublicCloud
az login
az login --tenant 20000000-0000-0000-0000-000000000000
az account set --subscription="20000000-0000-0000-0000-000000000000"
az ad sp create-for-rbac -n "${APPLICATION_NAME}" --role="Contributor" --scopes="/subscriptions/20000000-0000-0000-0000-000000000000"
```
Expand Down
2 changes: 1 addition & 1 deletion infra/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ terraform {
# https://developer.hashicorp.com/terraform/language/settings/backends/azurerm#example-configuration
backend "azurerm" {
resource_group_name = "rg-terraform"
storage_account_name = "saprodevdays2023asiaaks"
storage_account_name = "sadevdays2023asiaaks"
container_name = "tfstatfile"
key = "production.terraform.tfstate"
use_oidc = true
Expand Down

0 comments on commit f2d5197

Please sign in to comment.