Skip to content

Commit d1618a4

Browse files
authored
Deployment update (#405)
1. Address PowerShell deployment script error. 2. Adds an optional step to help users seeing the error: `ERROR: reauthentication required`
1 parent a42fbe6 commit d1618a4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ azd env set AZURE_LOCATION <pick_a_region>
153153

154154
### 5. Create the Azure resources and deploy the code
155155

156-
Run the following command to create the Azure resources and deploy the code (about 15-minutes to complete):
156+
(Optional) If your account has access to using multiple tenants, then you should reauthenticate before proceeding:
157+
```pwsh
158+
azd auth login --scope https://management.azure.com//.default
159+
```
160+
161+
Run the following command to create the Azure resources and deploy the code (about 25-minutes to complete):
157162

158163
```pwsh
159164
azd up

infra/core/database/create-sql-user-and-role.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ resource createSqlUserAndRole 'Microsoft.Resources/deploymentScripts@2020-10-01'
5757
}
5858
properties: {
5959
forceUpdateTag: uniqueScriptId
60-
azPowerShellVersion: '7.4'
60+
azPowerShellVersion: '14.0'
6161
retentionInterval: 'PT1H'
6262
cleanupPreference: 'OnSuccess' // No need to keep around any background resources if succeeded
6363
arguments: join(

0 commit comments

Comments
 (0)