Skip to content

Commit a528887

Browse files
commit
1 parent e885d00 commit a528887

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

docs/DeploymentGuide.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,16 @@ bash ./infra/scripts/setup_auth.sh
370370

371371
The auth script is idempotent and performs preflight validation before making changes.
372372

373+
#### Skipping auth setup
374+
375+
If your tenant blocks programmatic app registration, or you need to defer authentication setup, you can skip this step:
376+
377+
```powershell
378+
azd env set AZURE_SKIP_AUTH_SETUP true
379+
```
380+
381+
Then follow the manual instructions in [App Authentication Configuration](./ConfigureAppAuthentication.md). To re-enable later, set the value to `false` and re-run `setup_auth.ps1`.
382+
373383
#### Required Permissions for auth setup
374384

375385
- Create/update app registrations: **Application Administrator**, **Cloud Application Administrator**, or **Global Administrator**

infra/scripts/test_configure_auth_preflight.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ try {
4848
# Behaviour controlled by AZ_MOCK_SCENARIO environment variable.
4949
# =============================================================================
5050
$MockAzPs1Content = @'
51-
param([Parameter(ValueFromRemainingArguments=$true)]$allArgs)
51+
$allArgs = $args
5252
$SCENARIO = if ($env:AZ_MOCK_SCENARIO) { $env:AZ_MOCK_SCENARIO } else { "happy" }
5353
$S = ($allArgs -join " ")
5454
function has($t) { $S -like "*$t*" }
@@ -95,7 +95,7 @@ exit 0
9595
# Behaviour controlled by AZD_MOCK_SCENARIO environment variable.
9696
# =============================================================================
9797
$MockAzdPs1Content = @'
98-
param([Parameter(ValueFromRemainingArguments=$true)]$allArgs)
98+
$allArgs = $args
9999
$SCENARIO = if ($env:AZD_MOCK_SCENARIO) { $env:AZD_MOCK_SCENARIO } else { "happy" }
100100
$S = ($allArgs -join " ")
101101
@@ -154,7 +154,7 @@ function Run-Test {
154154
$env:AZD_MOCK_SCENARIO = $AzdScenario
155155
$env:AZURE_SKIP_AUTH_SETUP = ""
156156

157-
$rawOutput = powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass `
157+
$rawOutput = pwsh -NoProfile -NonInteractive -ExecutionPolicy Bypass `
158158
-File $Subject "--preflight-only" 2>&1
159159
$exitCode = $LASTEXITCODE
160160
$outputStr = ($rawOutput | Out-String)

0 commit comments

Comments
 (0)