Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pwsh doc updates #273

Merged
merged 8 commits into from
Apr 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
provide execution policy for command
  • Loading branch information
KSchlobohm committed Mar 16, 2023
commit d136464889b66dc3761935bc3246fa086f420304
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,19 @@ and deploy the code.

1. To run the scripts, Windows users require Powershell 7.2 (LTS) or above. Alternatively, you can use a bash terminal using [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install). macOS users can use a bash terminal.

1. [Install Git](https://github.com/git-guides/install-git)
Run the following to verify that git is available
```ps1
git version
```

KSchlobohm marked this conversation as resolved.
Show resolved Hide resolved
1. [Install PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
Run the following to verify that you're running the latest PowerShell

```ps1
$PsVersionTable
```

> or install with `winget install -e --id Microsoft.PowerShell`

1. [Install the Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli).
Run the following command to verify that you're running version
2.38.0 or higher.
Expand All @@ -85,7 +89,7 @@ and deploy the code.
Run the following command to verify that the Azure Dev CLI is installed.

```ps1
azd version
azd login
asanjabi marked this conversation as resolved.
Show resolved Hide resolved
```

1. [Install .NET 6 SDK](https://dotnet.microsoft.com/download/dotnet/6.0)
Expand Down Expand Up @@ -222,7 +226,7 @@ App Configuration so that the web app can read this data.
<td>

```ps1
unblock-file -path .\infra\createAppRegistrations.ps1
pwsh -c "Set-ExecutionPolicy Bypass Process; .\infra\createAppRegistrations.ps1 -g '$myEnvironmentName-rg' -Debug"
KSchlobohm marked this conversation as resolved.
Show resolved Hide resolved
.\infra\createAppRegistrations.ps1 -g "$myEnvironmentName-rg"
```

Expand Down Expand Up @@ -341,8 +345,7 @@ New team members should setup their environment by following these steps.
<td>

```ps1
unblock-file -path .\infra\localDevScripts\getSecretsForLocalDev.ps1
.\infra\localDevScripts\getSecretsForLocalDev.ps1 -g "$myEnvironmentName-rg" -Web
pwsh -c "Set-ExecutionPolicy Bypass Process; .\infra\localDevScripts\getSecretsForLocalDev.ps1 -g '$myEnvironmentName-rg' -Web"
```

</td>
Expand Down Expand Up @@ -374,7 +377,7 @@ New team members should setup their environment by following these steps.
<td>

```ps1
.\infra\localDevScripts\getSecretsForLocalDev.ps1 -g "$myEnvironmentName-rg" -Api
pwsh -c "Set-ExecutionPolicy Bypass Process; .\infra\localDevScripts\getSecretsForLocalDev.ps1 -g '$myEnvironmentName-rg' -Api"
```

</td>
Expand Down Expand Up @@ -406,8 +409,7 @@ New team members should setup their environment by following these steps.
<td>

```ps1
unblock-file -path .\infra\localDevScripts\addLocalIPToSqlFirewall.ps1
.\infra\localDevScripts\addLocalIPToSqlFirewall.ps1 -g "$myEnvironmentName-rg"
pwsh -c "Set-ExecutionPolicy Bypass Process; .\infra\localDevScripts\addLocalIPToSqlFirewall.ps1 -g '$myEnvironmentName-rg'"
```

</td>
Expand All @@ -434,8 +436,7 @@ Run the following command to give your Azure AD account permission to access the
<td>

```ps1
unblock-file -path .\infra\localDevScripts\makeSqlUserAccount.ps1
.\infra\localDevScripts\makeSqlUserAccount.ps1 -g "$myEnvironmentName-rg"
pwsh -c "Set-ExecutionPolicy Bypass Process; .\infra\localDevScripts\makeSqlUserAccount.ps1 -g '$myEnvironmentName-rg'"
```

</td>
Expand Down