@@ -136,6 +136,7 @@ Connect-AksEdgeArc -JsonConfigFilePath $tempDir\aksedge-config.json
136
136
# ####################################################################
137
137
helm repo add ingress- nginx https:// kubernetes.github.io/ ingress- nginx
138
138
helm repo update
139
+ Start-Sleep - Seconds 5
139
140
helm install ingress- nginx ingress- nginx/ ingress- nginx
140
141
141
142
# ####################################################################
@@ -149,19 +150,24 @@ Start-Sleep -Seconds 30
149
150
# ## Video Indexer setup
150
151
# ####################################################################
151
152
$viApiVersion = " 2023-06-02-preview"
152
- $extensionName = " videoindexer "
153
- # $version="1.0.28-preview " # switch to blank
153
+ $extensionName = " video-indexer "
154
+ $version = " 1.0.41 " # switch to blank
154
155
$namespace = " video-indexer"
155
156
$releaseTrain = " release" # switch to release
156
157
$storageClass = " longhorn"
157
158
158
159
Write-Host " Create Cognitive Services on VI resource provider"
159
160
$createResourceUri = " https://management.azure.com/subscriptions/${env: subscriptionId} /resourceGroups/${env: resourceGroup} /providers/Microsoft.VideoIndexer/accounts/${env: videoIndexerAccountName} /CreateExtensionDependencies?api-version=${viApiVersion} "
161
+
160
162
$result = $ (az rest -- method post -- uri $createResourceUri ) | ConvertFrom-Json
161
163
162
- Write-Host " Retrieving Cognitive Service Credentials... "
164
+
163
165
$getSecretsUri = " https://management.azure.com/subscriptions/${env: subscriptionId} /resourceGroups/${env: resourceGroup} /providers/Microsoft.VideoIndexer/accounts/${env: videoIndexerAccountName} /ListExtensionDependenciesData?api-version=$viApiVersion "
164
- $csResourcesData = $ (az rest -- method post -- uri $getSecretsUri ) | ConvertFrom-Json
166
+ while ($null -eq $csResourcesData ) {
167
+ Write-Host " Retrieving Cognitive Service Credentials..."
168
+ $csResourcesData = $ (az rest -- method post -- uri $getSecretsUri ) | ConvertFrom-Json
169
+ Start-Sleep - Seconds 10
170
+ }
165
171
Write-Host
166
172
167
173
Write-Host " Getting VM public IP address..."
@@ -177,14 +183,16 @@ az k8s-extension create --name $extensionName `
177
183
-- cluster- name $clusterName `
178
184
-- resource- group $Env: resourceGroup `
179
185
-- cluster- type connectedClusters `
180
- -- release - train $releaseTrain `
186
+ -- version $version `
181
187
-- auto- upgrade- minor- version false `
182
188
-- config- protected- settings " speech.endpointUri=$ ( $csResourcesData.speechCognitiveServicesEndpoint ) " `
183
189
-- config- protected- settings " speech.secret=$ ( $csResourcesData.speechCognitiveServicesPrimaryKey ) " `
184
190
-- config- protected- settings " translate.endpointUri=$ ( $csResourcesData.translatorCognitiveServicesEndpoint ) " `
185
191
-- config- protected- settings " translate.secret=$ ( $csResourcesData.translatorCognitiveServicesPrimaryKey ) " `
186
- -- config " videoIndexer.accountId=${Env: videoIndexerAccountId} " `
192
+ -- config- protected- settings " ocr.endpointUri=$ ( $csResourcesData.ocrCognitiveServicesEndpoint ) " `
193
+ -- config- protected- settings " ocr.secret=$ ( $csResourcesData.ocrCognitiveServicesPrimaryKey ) " `
187
194
-- config " frontend.endpointUri=https://$ipAddress " `
195
+ -- config " videoIndexer.accountId=${Env: videoIndexerAccountId} " `
188
196
-- config " storage.storageClass=$storageClass " `
189
197
-- config " storage.accessMode=ReadWriteMany"
190
198
@@ -195,7 +203,7 @@ New-NetFirewallRule -DisplayName "Allow Inbound Port 443" -Direction Inbound -Lo
195
203
196
204
Write-Host " Adding port forward for VI frontend..."
197
205
Start-Sleep - Seconds 20
198
- $ing = kubectl get ing videoindexer - vi- arc - n $namespace - o json | ConvertFrom-Json
206
+ $ing = kubectl get ing video - indexer - vi- arc - n $namespace - o json | ConvertFrom-Json
199
207
$ingIp = $ing.status.loadBalancer.ingress.ip
200
208
netsh interface portproxy add v4tov4 listenaddress= 0.0 .0.0 listenport= 80 connectaddress= $ingIp connectport= 80
201
209
netsh interface portproxy add v4tov4 listenaddress= 0.0 .0.0 listenport= 443 connectaddress= $ingIp connectport= 443
0 commit comments