Skip to content

Commit 334cafe

Browse files
author
Russ Williams
committed
Fixed deployment scripts
1 parent 7bcaa8f commit 334cafe

12 files changed

+233
-71
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
**/Deployment/Resources/Dispatch/
1111
**/Deployment/Resources/QnA/**/*.json
1212
**/Deployment/Resources/LU/**/*.json
13+
**/localFeed
1314
/ACSAgentHubPublish.zip
1415
/ContactCenterVATBot/ContactCenterVATBot/code.zip
1516

ACSAgentHub/local.settings.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"Values": {
44
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
55
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
6-
"agentHubStorageConnectionString": "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=vatbotrhw;AccountKey=EePKrsPX352p3Xw9YGEiDakf2v5wD4Xu/a5V/9v11h3nkJjQISJFsVadeUds4Swpy01zpY+eq9l33P9UWfJzVQ==",
7-
"acsConnectionString": "endpoint=https://vatbotrhwacs.communication.azure.com/;accesskey=gy1ZevQixUEP96qmC4K4JuqBWYObuZrw7FC2YnER81yU2k5sdTRak6qGkNd8z1uOWl2kMKKuoZt0AmPbvmArwA==",
6+
"agentHubStorageConnectionString": "",
7+
"acsConnectionString": "",
88
"botBaseAddress": "http://localhost:3978/",
99
"useACSManagedIdentity": "false",
10-
"webPusSubConnectionString": "Endpoint=https://vatbotrhwwps.webpubsub.azure.com;AccessKey=GVuMftA6ii/b1cdconG+47yWx8KX8gNNeAFJV7Xt2X8=;Version=1.0;",
10+
"webPusSubConnectionString": "",
1111
"webPubSubHubName": "refreshConversations"
1212
},
1313
"Host": {

Deployment/Scripts/create_agent-portal_appsettings.ps1

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ This scripts creates the appsettings object used to provide app settings to the
33
#>
44

55
Param(
6-
[string] $hubName,
7-
[string] $resourceGroup
6+
[string] $webPubSubName,
7+
[string] $resourceGroup,
8+
[string] $showCommands = "false"
89
)
910

10-
$webPubSubName = $hubName + "WPS"
1111
$settingFile = $(Join-Path -Path $PSScriptRoot -ChildPath "..\..\agent-portal\src\settings\appsettings.ts")
12+
$resolvedPath = Resolve-Path $settingFile
13+
14+
# Add -NoNewline back in when "preview warning goes away"
15+
Write-Host "Updating " $resolvedPath -ForegroundColor Green
16+
if ($showCommands.ToLower() -eq "true") {Write-Host '$agentPortalAppsettings = Invoke-Expression "& ''$(Join-Path '$PSScriptRoot' ''create_agent-portal_appsettings.ps1'')'' -webPubSubName ""'$webPubSubName'"" -resourceGroup '$resourceGroup' -Encoding UTF8"'}
1217

1318
$appsettings = @{
1419
agentHubBaseAddress = 'http://localhost:7071' # Default to local settings so we can run local out of the box
@@ -32,8 +37,7 @@ Add-Content -Path $settingFile -Value " webPusSubConnectionString: '$($appset
3237
Add-Content -Path $settingFile -Value " webPubSubHubName: '$($appsettings.webPubSubHubName)'"
3338
Add-Content -Path $settingFile -Value "};"
3439

35-
$resolvedPath = Resolve-Path $settingFile
36-
Write-Host "Updated " $resolvedPath -ForegroundColor Green
40+
Write-Host " - Done." -ForegroundColor Green
3741

3842
return $appsettings | ConvertTo-Json
3943

Deployment/Scripts/create_agent_hub_appsettings.ps1

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ Param(
66
[string] $acsConnectionString,
77
[string] $wpsConnectionString,
88
[string] $storageConnectionString,
9-
[string] $resourceGroup
9+
[string] $resourceGroup,
10+
[string] $showCommands = "false"
1011
)
1112

1213
$acsAgentHubAppSettingFile = Join-Path $PSScriptRoot ..\..\ "ACSAgentHub\local.settings.json"
14+
$resolvedPath = Resolve-Path $acsAgentHubAppSettingFile
15+
16+
Write-Host "Updating " $resolvedPath -NoNewline -ForegroundColor Green
17+
if ($showCommands.ToLower() -eq "true") {Write-Host ''; Write-Host '$agentHubAppsettings = Invoke-Expression "& ''$(Join-Path '$PSScriptRoot' ''create_agent_hub_appsettings.ps1'')'' -resourceGroup '$resourceGroup' -acsConnectionString ""'$acsConnectionString'"" -wpsConnectionString ""'$wpsConnectionString'"" -storageConnectionString ""'$storageConnectionString'"" "'}
1318
$acsAgentHubLocalSettings = Get-Content $acsAgentHubAppSettingFile -Encoding UTF8 | ConvertFrom-Json -Depth 10
1419

1520
$acsAgentHubLocalSettings.Values.agentHubStorageConnectionString = $storageConnectionString
@@ -22,7 +27,6 @@ $acsAgentHubLocalSettings.Values.webPubSubHubName = "refreshConversations"
2227
# Write updated appsettings to appsettings file
2328
ConvertTo-Json $acsAgentHubLocalSettings -Depth 10 | Set-Content $acsAgentHubAppSettingFile -Encoding UTF8
2429

25-
$resolvedPath = Resolve-Path $acsAgentHubAppSettingFile
26-
Write-Host "Updated " $resolvedPath -ForegroundColor Green
30+
Write-Host " - Done." -ForegroundColor Green
2731

2832
return $acsAgentHubLocalSettings | ConvertTo-Json

Deployment/Scripts/deploy_acs_agent_hub.ps1

+36-11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Param(
88
[string] $hubName,
99
[string] $resourceGroup,
1010
[string] $location,
11+
[string] $NuGetFullPath,
1112
[string] $showCommands = "false",
1213
[string] $projDir = $(Get-Location),
1314
[string] $logFile = $(Join-Path $PSScriptRoot .. "deploy_log.txt")
@@ -68,7 +69,6 @@ if (-not $location) {
6869
}
6970

7071
# Get timestamp
71-
$timestamp = Get-Date -Format MMddyyyyHHmmss
7272
$startTime = Get-Date
7373

7474
# Create resource group
@@ -81,25 +81,50 @@ az group create `
8181
2>> "$logFile" | Out-Null
8282
Write-Host " - Done." -ForegroundColor Green
8383

84-
$appServicePlan = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_app_service.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
84+
$appServicePlan = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_app_service.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
8585

86-
$appInsights = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_app_insights.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
86+
$appInsights = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_app_insights.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
8787

88-
$agentHubStorage = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_storage.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -location ""$location"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
88+
$agentHubStorage = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_storage.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -location ""$location"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
8989

90-
$functionApp = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_function_app.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -storageAccountName ""$($agentHubStorage.storageAccountName)"" -functionAppServicePlanName ""$($appServicePlan.appServicePlanName)"" -appInsightsName ""$($appInsights.appInsightsName)"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
90+
$functionApp = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_function_app.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -storageAccountName ""$($agentHubStorage.storageAccountName)"" -functionAppServicePlanName ""$($appServicePlan.appServicePlanName)"" -appInsightsName ""$($appInsights.appInsightsName)"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
9191

92-
$acs = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_acs.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
92+
$acs = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_acs.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
9393

94-
$wps = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_webPubSub.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
94+
$wps = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_webPubSub.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
9595

96-
$eventGrid = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_eventgrid.ps1')' -name ""$hubName"" -resourceGroup ""$resourceGroup"" -communicationServerName ""$($acs.acsName)"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
96+
$eventGrid = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_eventgrid.ps1')' -hubName ""$hubName"" -resourceGroup ""$resourceGroup"" -communicationServerName ""$($acs.acsName)"" -showCommands ""$showCommands"" -Encoding UTF8" | ConvertFrom-Json
9797

98-
$agentPortalAppsettings = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'create_agent-portal_appsettings.ps1')' -webPubSubName ""$($wps.wpsName)"" -resourceGroup ""$resourceGroup"" -Encoding UTF8"
98+
$agentPortalAppsettings = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'create_agent-portal_appsettings.ps1')' -webPubSubName ""$($wps.wpsName)"" -resourceGroup $resourceGroup -showCommands ""$showCommands"" -Encoding UTF8"
9999

100-
$agentHubAppsettings = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'create_agent_hub_appsettings.ps1')' -resourceGroup ""$resourceGroup"" -acsConnectionString ""$($acs.acsConnectionString)"" -wpsConnectionString ""$($wps.wpsConnectionString)"" -storageConnectionString ""$($agentHubStorage.storageConnectionString)"" "
100+
$agentHubAppsettings = Invoke-Expression "& '$(Join-Path $PSScriptRoot 'create_agent_hub_appsettings.ps1')' -resourceGroup $resourceGroup -acsConnectionString ""$($acs.acsConnectionString)"" -wpsConnectionString ""$($wps.wpsConnectionString)"" -storageConnectionString ""$($agentHubStorage.storageConnectionString)"" -showCommands ""$showCommands"" "
101+
102+
# Build ACSConnector NuGet package
103+
Write-Host "Building ACSConnector" -NoNewline -ForegroundColor Green
104+
$acsConnectorProjectFile = Join-Path $PSScriptRoot ..\..\ "ACSConnector\ACSConnector.csproj"
105+
if ($showCommands.ToLower() -eq "true") {Write-Host ''; Write-Host "dotnet build $acsConnectorProjectFile -c Debug"}
106+
dotnet build $acsConnectorProjectFile -c Debug 2>> "$logFile" | Out-Null
107+
108+
Write-Host " - Done." -ForegroundColor Green
109+
110+
# Create local NuGet feed for ACSConnector
111+
Write-Host "Creating local NuGet feed for ACSConnector" -NoNewline -ForegroundColor Green
112+
$acsConnectorNuGetPackage = Join-Path $PSScriptRoot ..\..\ "ACSConnector\bin\Debug\ACSConnector.1.0.0.nupkg"
113+
$acsAgentHubSDKNuGetPackage = Join-Path $PSScriptRoot ..\.. "ACSAgentHubSDK\bin\Debug\ACSAgentHubSDK.1.0.0.nupkg"
114+
$acsConnectorLocalFeedFolder = join-Path $PSScriptRoot ..\..\ "ACSConnector\localFeed"
115+
# First, create folder for local NuGet feed
116+
if ($showCommands.ToLower() -eq "true") {Write-Host ''; Write-Host "mkdir -Force $acsConnectorLocalFeedFolder"}
117+
mkdir -Force $acsConnectorLocalFeedFolder
118+
119+
# Next, add ACSConnector and its dependencies to local feed
120+
if ($showCommands.ToLower() -eq "true") {Write-Host ''; Write-Host "$NuGetFullPath add $acsConnectorNuGetPackage -Source $acsConnectorLocalFeedFolder" }
121+
& $NuGetFullPath add $acsConnectorNuGetPackage -Source $acsConnectorLocalFeedFolder
122+
if ($showCommands.ToLower() -eq "true") {Write-Host ''; Write-Host "$NuGetFullPath add $acsAgentHubSDKNuGetPackage -Source $acsConnectorLocalFeedFolder" }
123+
& $NuGetFullPath add $acsAgentHubSDKNuGetPackage -Source $acsConnectorLocalFeedFolder
124+
125+
Write-Host " - Done." -ForegroundColor Green
101126

102127
$endTime = Get-Date
103128
$duration = New-TimeSpan $startTime $endTime
104-
Write-Host "Script took to $($duration.minutes) minutes finish"
129+
Write-Host "deploy_acs_agent_hub.ps1 took to $($duration.minutes) minutes finish"
105130

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
<#
2+
Run this script from the ACSAgentHub project folder (i.e., the one that has ACSAgentHub.csproj)
3+
#>
4+
5+
#Requires -Version 6
6+
7+
Param(
8+
[string] $hubName,
9+
[string] $resourceGroup,
10+
[string] $location,
11+
[string] $NuGetFullPath,
12+
[string] $showCommands = "false",
13+
[string] $projDir = $(Get-Location),
14+
[string] $logFile = $(Join-Path $PSScriptRoot .. "deploy_log.txt")
15+
)
16+
17+
# Get timestamp
18+
$startTime = Get-Date
19+
20+
# Reset log file
21+
if (Test-Path $logFile) {
22+
Clear-Content $logFile -Force | Out-Null
23+
}
24+
else {
25+
New-Item -Path $logFile | Out-Null
26+
}
27+
28+
# Get mandatory parameters
29+
if (-not $hubName) {
30+
$hubName = Read-Host "? Bot Name (used as default name for resource group and deployed resources)"
31+
}
32+
33+
if (-not $resourceGroup) {
34+
$resourceGroup = $hubName
35+
}
36+
37+
if (-not $location) {
38+
$location = Read-Host "? Azure resource group region"
39+
}
40+
41+
# Get timestamp
42+
$timestamp = Get-Date -Format MMddyyyyHHmmss
43+
$startTime = Get-Date
44+
45+
$solutionRoot = Get-Location
46+
$currentDir = $solutionRoot
47+
$agentPortalPath = ".\agent-portal"
48+
$ACSAgentHubPath = ".\ACSAgentHub"
49+
$errCnt = 0
50+
51+
# These steps follow the steps outlined in this solutions README in the "Manual Installation and Configuration" section
52+
# Step 1 - When manually deploying the ACSAgentHub, the first step is to clone this repo so
53+
# nothing to do in this step
54+
55+
# Step 2 - Deploy ACS Agent Hub
56+
# No need for Write-Host progress update since deploy_acs_agent_hub.ps1 reports its own status
57+
.\Deployment\Scripts\deploy_acs_agent_hub.ps1 -hubName $hubName -location $location -resourceGroup $resourceGroup -NuGetFullPAth $NuGetFullPath -showCommands $showCommands
58+
59+
# Step 3 - Start Agent Hub Service
60+
Write-Host "Starting Agent Hub service" -NoNewline -ForegroundColor Green
61+
# First, change working directory to the ACSAgentHub project folder
62+
Set-Location $ACSAgentHubPath
63+
start -FilePath "func" -ArgumentList "start" -WindowStyle Minimized
64+
# Sleep before continuing to ensure Function App time is fully up and running or else Create Agent Account step will fail
65+
Start-Sleep -s 120
66+
if ($?) {Write-Host " - Done." -ForegroundColor Green} else {Write-Host " - Failed" -ForegroundColor Green; $errCnt++}
67+
68+
Set-Location $solutionRoot
69+
70+
# Step 4 - Create Agent Accounts
71+
Write-Host "Creating agent account for agent 1" -NoNewline -ForegroundColor Green
72+
if ($showCommands.ToLower() -eq "true") { Write-Host ''; Write-Host 'curl -X POST http://localhost:7071/api/agents -H \"Content-Type:application/json\" -d ''{ \"id\": \"1\", \"name\": \"Agent 1\", \"status\": 1, \"skills\": [ \"skill 1\", \"skill 2\", \"skill 3\" ] }''' }
73+
curl -X POST http://localhost:7071/api/agents `
74+
-H "Content-Type:application/json" `
75+
-d '{
76+
\"id\": \"1\",
77+
\"name\": \"Agent 1\",
78+
\"status\": 1,
79+
\"skills\": [ \"skill 1\", \"skill 2\", \"skill 3\" ]
80+
}'
81+
82+
if ($?) {Write-Host " - Done." -ForegroundColor Green} else {Write-Host " - Failed" -ForegroundColor Green; $errCnt++}
83+
84+
Write-Host "Creating agent account for agent 2" -NoNewline -ForegroundColor Green
85+
if ($showCommands.ToLower() -eq "true") { Write-Host ''; Write-Host 'curl -X POST http://localhost:7071/api/agents -H \"Content-Type:application/json\" -d ''{ \"id\": \"2\", \"name\": \"Agent 2\", \"status\": 1, \"skills\": [ \"skill 1\", \"skill 2\", \"skill 3\" ] }''' }
86+
curl -X POST http://localhost:7071/api/agents `
87+
-H "Content-Type:application/json" `
88+
-d '{
89+
\"id\": \"2\",
90+
\"name\": \"Agent 2\",
91+
\"status\": 1,
92+
\"skills\": [ \"skill 1\", \"skill 2\", \"skill 3\" ]
93+
}'
94+
95+
if ($?) {Write-Host " - Done." -ForegroundColor Green} else {Write-Host " - Failed" -ForegroundColor Green; $errCnt++}
96+
97+
# Step 5 - Create Tunnel to Agent Hub
98+
Write-Host "Creating Tunnel to Agent Hub" -NoNewline -ForegroundColor Green
99+
start -FilePath "c:\ngrok\ngrok" -ArgumentList "http 7071 -host-header=localhost:7071" -WindowStyle Minimized
100+
101+
if ($?) {Write-Host " - Done." -ForegroundColor Green} else {Write-Host " - Failed" -ForegroundColor Green; $errCnt++}
102+
103+
# Sleep for a short bit while ngrok starts so we can ping it to get https endpoint
104+
Start-Sleep -s 15 2>> "$logFile" | Out-Null
105+
106+
# Step 6 - Subscribe to ACS Message Event
107+
# No need for Write-Host progress update since update_webhook.ps1 reports its own status
108+
# Frist, query ngrok and turn JSON result into object that we can use to get https endpoint
109+
$ngrokResult = curl http://127.0.0.1:4040/api/tunnels
110+
$ngrok = ConvertFrom-Json $ngrokResult
111+
112+
# Next, loop through results find https endpoint (I don't want to assume it's always at the same index in results)
113+
for($i = 0; $i -lt $ngrok.tunnels.length; $i++)
114+
{
115+
if ($ngrok.tunnels[$i].proto -eq 'https')
116+
{
117+
$httpsEndpoint = $ngrok.tunnels[$i].proto
118+
}
119+
}
120+
121+
# Finally, if we were able to grab the https endpoint then use it to configure Event Grid to subscribe to message events
122+
if ($httpsEndpoint)
123+
{
124+
.\Deployment\Scripts\update_webhook.ps1 -hubName $hubName -endpoint "$httpsEndpoint/api/agenthub/messagewebhook" -resourceGroup $resourceGroup -showCommands $showCommands
125+
}
126+
else
127+
{
128+
Write-Host "Subscribing to ACS Message Event - Failed" -ForegroundColor Green; $errCnt++
129+
}
130+
131+
# Step 7 - Install npm Packages
132+
Write-Host "Installing npm Packages... this step takes awhile" -NoNewline -ForegroundColor Green
133+
# First, switch to agent-portal folder
134+
Set-Location $agentPortalPath
135+
136+
# Next, install npm packages
137+
npm install 2>> "$logFile" | Out-Null
138+
139+
Write-Host " - Done." -ForegroundColor Green
140+
141+
# Step 8 - Launch Agent-Portal
142+
# Launch agent-portal so its ready to use
143+
Write-Host "Launching the agent portal in the browser. Note - initial app startup takes awhile" -ForegroundColor Green
144+
Start-Sleep -s 2
145+
start -FilePath "npm" -ArgumentList "start" -WindowStyle Minimized
146+
147+
# Fainally, switch to agent-hub project folder
148+
Set-Location $solutionRoot
149+
150+
$endTime = Get-Date
151+
$duration = New-TimeSpan $startTime $endTime
152+
Write-Host "deploy_and_configure.ps1 took to $($duration.minutes) minutes finish"
153+
154+
Write-Host "Deployment and configuration completed with $errCnt errors"

Deployment/Scripts/deploy_eventgrid.ps1

-17
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@ az eventgrid system-topic create `
2323
2>> "$logFile" | Out-Null
2424
Write-Host " - Done." -ForegroundColor Green
2525

26-
#$eventSubscriptionName = $hubName + "EventSubscription"
27-
#Write-Host "Creating Event Subscription that listens for ACS Messages" -ForegroundColor Green
28-
#Write-Host "az eventgrid event-subscription create --name $eventGridName" -NoNewline
29-
#$az eventgrid event-subscription create --name $eventGridName
30-
31-
# Create custom topic
32-
#$customTopicName = $hubName + "ACS"
33-
#Write-Host "Creating the Event Grid Message-Reveived Topic" -ForegroundColor Green
34-
#az eventgrid topic create --resource-group $resourceGroup --name $customTopicName --location $location
35-
36-
# Retrieve endpoint and key to use when publishing to the topic
37-
#endpoint=$(az eventgrid topic show --name $customTopicName -g $resourceGroup --query "endpoint" --output tsv)
38-
#key=$(az eventgrid topic key list --name $customTopicName -g $resourceGroup --query "key1" --output tsv)
39-
40-
#echo $endpoint
41-
#echo $key
42-
4326
# Create return object
4427
$result = [PSCustomObject]@{
4528
eventGridName = $eventGridName

Deployment/Scripts/deploy_storage.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if ($showCommands.ToLower() -eq "true") {
2727
Write-Host "az storage account show-connection-string -g ""$resourceGroup"" -n ""$storageAccountName"" "
2828
}
2929
$acsAgentHubStorage = az storage account show-connection-string -g "$resourceGroup" -n "$storageAccountName" | ConvertFrom-Json -Depth 10
30-
Write-Host " - Done." -ForegroundColor Green
30+
if ($showCommands.ToLower() -eq "true") { Write-Host " - Done." -ForegroundColor Green }
3131

3232
# Create return object
3333
$result = [PSCustomObject]@{

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ folder you used in previous step so you'll need to ```cd ACSAgentHub``` where th
6565
```
6666
func start
6767
```
68-
4) **Create Agent**
68+
4) **Create Agent Account**
6969
In PowerShell, create an agent in Azure Storage by running the Curl command below. You'll
7070
need to add at least one agent to be able to sign in to the agent-portal.
7171
```

0 commit comments

Comments
 (0)