Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 136865b

Browse files
small updates to usability of powershell script
1 parent 5e1ca84 commit 136865b

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

00 - Resource Deployment/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ There are two options for deploying the resources to Azure for this solution acc
2626
## Prerequisites
2727

2828
1. Access to an Azure Subscription
29+
2. If you're running the PowerShell script, you'll also need to install the [Az PowerShell Module](https://docs.microsoft.com/powershell/azure/install-az-ps)
2930

3031
## Running the PowerShell Script
3132

@@ -34,10 +35,15 @@ There are two options for deploying the resources to Azure for this solution acc
3435
To run the [PowerShell script](./deploy.ps1):
3536

3637
1. Open PowerShell and navigate to this folder.
38+
39+
```cmd
40+
cd "00 - Resource Deployment"
41+
```
42+
3743
2. Run the following command:
3844
3945
```cmd
40-
./deploy.ps1
46+
./deploy.ps1
4147
```
4248
4349
3. After running the script, you'll be prompted to login and provide additional information.

00 - Resource Deployment/deploy.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function Deploy
3333
{
3434
# Read parameters from user.
3535
Write-Host "Press enter to use [default] value."
36+
Write-Host "For uniqueName, please enter a string with 10 or less characters."
3637
while (!($uniqueName = Read-Host "uniqueName")) { Write-Host "You must provide a uniqueName."; }
3738
while (!($resourceGroupName = Read-Host "resourceGroupName")) { Write-Host "You must provide a resourceGroupName."; }
3839
while (!($subscriptionId = Read-Host "subscriptionId")) { Write-Host "You must provide a subscriptionId."; }
@@ -47,7 +48,7 @@ function Deploy
4748
$webappname = $uniqueName + "app";
4849
$cogServicesName = $uniqueName + "cog";
4950
$appInsightsName = $uniqueName + "insights";
50-
$storageAccountName = $uniqueName + "storage";
51+
$storageAccountName = $uniqueName + "str";
5152
$storageContainerName = "documents";
5253

5354
$dataSourceName = $uniqueName + "-datasource";

01 - Search Index Creation/Create-Index-PowerShell.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,15 @@ The following code will create a search index for you based on the json files in
7878
To run the [PowerShell script](./deploy.ps1):
7979

8080
1. Open PowerShell and navigate to this folder.
81+
82+
```cmd
83+
cd "00 - Resource Deployment"
84+
```
85+
8186
2. Run the following command:
8287
8388
```cmd
84-
./deploy.ps1
89+
./deploy.ps1
8590
```
8691
87-
3. After running the script, you'll be prompted to login and provide additional information.
92+
3. After running the script, you'll be prompted to login and provide additional information.

0 commit comments

Comments
 (0)