Fix test.  Shorten the recommended stack name due to length limations
when pulumi adds extra 8 characters (was going over 24 chars).  Also
replace dashes in the name for storage accounts which do not allow them.
MODIFY
azure-ts-appservice/README.md
azure-ts-appservice/README.md
@@ -10,7 +10,7 @@ with App Service.
1. Create a new stack:
```
- $ pulumi stack init azure-appservice
+ $ pulumi stack init appservice
```
1. Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
@@ -28,10 +28,9 @@ with App Service.
1. Define SQL Server password (make it complex enough to satisfy Azure policy):
```
- pulumi config set <stack>:sqlPassword <value>
+ pulumi config set --secret <stack>:sqlPassword <value>
```
-
1. Run `pulumi up` to preview and deploy changes:
```

MODIFY
azure-ts-appservice/index.ts
azure-ts-appservice/index.ts
@@ -13,7 +13,9 @@ const resourceGroupArgs = {
location: resourceGroup.location,
};
-const storageAccount = new azure.storage.Account(`${name}sa`, {
+// Storage Accounts cannot have any dash characters
+const storageAccountName = `${name.replace(/-/g, "")}sa`;
+const storageAccount = new azure.storage.Account(storageAccountName, {
...resourceGroupArgs,
accountKind: "StorageV2",

Fix test.  Shorten the recommended stack name due to length limations
when pulumi adds extra 8 characters (was going over 24 chars).  Also
replace dashes in the name for storage accounts which do not allow them.