@@ -23,7 +23,7 @@ Write-Host "Enabling EasyAuth for the AKS Cluster"
23
23
24
24
$location = $env: AZURE_LOCATION
25
25
26
- $adAppName = " $env: AZURE_ENV_NAME -easy-auth-proxy "
26
+ $adAppName = " $env: AZURE_ENV_NAME "
27
27
28
28
29
29
$appHostName = " $adAppName .$location .cloudapp.azure.com"
@@ -127,7 +127,7 @@ $clientId = $appId
127
127
128
128
# ---------------------
129
129
# Deploy Easy Auth Proxy
130
- helm install -- set azureAd.tenantId= $azureTenantId -- set azureAd.clientId= $clientId -- set secret.name= easyauth- proxy- $adAppName - secret -- set secret.azureclientsecret= $clientSecret -- set appHostName= $appHostName -- set tlsSecretName= $tlsSecretName easyauth- proxy- $adAppName ./ easyauth/ easyauth- proxy
130
+ helm install -- set azureAd.tenantId= $azureTenantId -- set azureAd.clientId= $clientId -- set secret.name= easyauth- proxy- $adAppName - secret -- set secret.azureclientsecret= $clientSecret -- set appHostName= $appHostName -- set tlsSecretName= $tlsSecretName easyauth- proxy ./ easyauth/ easyauth- proxy
131
131
132
132
# ---------------------
133
133
# Apply proxy ingress rules
@@ -182,11 +182,9 @@ azd env set "AZURE_AD_APP_NAME" $adAppName
182
182
azd env set " AZURE_AD_APP_ID" $appId
183
183
184
184
$easyAuthConfig = @"
185
- ${Get-Date -Format "yyyy-MM-dd HH:mm:ss"}
186
- ## EasyAuth Configuration
187
185
EasyAuth for AKS has been configured successfully.
188
186
189
- The application is now available at [ ${homePage} ]( ${homePage} )
187
+ The application is now available at: ${homePage}
190
188
191
189
Configuration AD details:
192
190
- Azure AD Application: $adAppName
@@ -206,6 +204,9 @@ Configuration AKS details:
206
204
207
205
Write-Host $easyAuthConfig
208
206
207
+ Start-Process " ${homePage} "
208
+
209
+
209
210
# Add annotation to ALL ingress
210
211
# kubectl annotate ingress azure-open-ai/cm-acme-http-solver-s9fkg
211
212
# with class webapprouting.kubernetes.azure.com
0 commit comments