Remove the hard-coded location
MODIFY
azure-ts-msi-keyvault-rbac/Pulumi.yaml
azure-ts-msi-keyvault-rbac/Pulumi.yaml
@@ -6,3 +6,5 @@ template:
azure:environment:
description: The Azure environment to use (`public`, `usgovernment`, `german`, `china`)
default: public
+ azure:location:
+ description: The Azure location to use (e.g., `eastus` or `westeurope`)

MODIFY
azure-ts-msi-keyvault-rbac/README.md
azure-ts-msi-keyvault-rbac/README.md
@@ -40,6 +40,12 @@ The application consists of several parts:
$ dotnet publish webapp
```
+1. Set an appropriate Azure location like:
+
+ ```
+ $ pulumi config set azure:location westus
+ ```
+
1. Run `pulumi up` to preview and deploy changes:
```

MODIFY
azure-ts-msi-keyvault-rbac/index.ts
azure-ts-msi-keyvault-rbac/index.ts
@@ -4,9 +4,7 @@ import * as random from "@pulumi/random";
import { execSync} from "child_process";
// Create a resource group
-const resourceGroup = new azure.core.ResourceGroup("resourceGroup", {
- location: "West US",
-});
+const resourceGroup = new azure.core.ResourceGroup("resourceGroup");
// Create a storage account for Blobs
const storageAccount = new azure.storage.Account("storage", {

Remove the hard-coded location