зеркало из https://github.com/Azure/azure-saas.git
local powershell setup instructions
This commit is contained in:
Родитель
a1f7c66fb9
Коммит
47f8f17985
|
@ -16,7 +16,7 @@ This project uses [Azure Active Directory B2C](https://docs.microsoft.com/azure/
|
|||
|
||||
To setup the Identity Framework, we have provided an interactive PowerShell script that automates the setup for you. Upon running, it will ask you to sign into your home azure account, ask you a few questions, and then begin the setup process. This PowerShell script will output a parameters file that you'll need to provide when deploying the solution to Azure in step 2.b.
|
||||
|
||||
### 1.1. Setup Identity Framework - Docker (Recommended)
|
||||
### Option 1: Setup Identity Framework - Docker (Recommended)
|
||||
|
||||
Requirements:
|
||||
|
||||
|
@ -35,6 +35,30 @@ This will automatically pull and run the container image and its entrypoint is t
|
|||
|
||||
After finishing the identity framework setup, you may choose to either run the project locally first or immediately deploy the solution to Azure.
|
||||
|
||||
### Option 2: Setup Identity Framework - Powershell (Advanced)
|
||||
|
||||
**Requirements**:
|
||||
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/)
|
||||
- [Open SSL](https://www.openssl.org/)
|
||||
- [Powershell Core (v7.0+)](https://github.com/PowerShell/PowerShell)
|
||||
- Powershell Modules:
|
||||
- [Microsoft.Graph](https://www.powershellgallery.com/packages/Microsoft.Graph/1.5.0)
|
||||
- [Microsoft.Graph.Applications](https://www.powershellgallery.com/packages/Microsoft.Graph.Applications/1.9.6)
|
||||
- [Az.Resources](https://www.powershellgallery.com/packages/Az.Resources/6.0.0)
|
||||
- [Az.Accounts](https://www.powershellgallery.com/packages/Az.Accounts/2.8.0)
|
||||
|
||||
**Instructions**:
|
||||
1. Install all dependencies listed above
|
||||
2. Clone the Azure SaaS Dev Kit repository to your local machine
|
||||
3. Open a powershell window (`pwsh` command on Mac OS or Linux) and change your working directory to `src/Saas.Identity`
|
||||
4. Run the script from the powershell window with the command:
|
||||
```powershell
|
||||
./Saas.IdentityProvider/scripts/B2C-Create.ps1
|
||||
```
|
||||
5. Follow the prompts in the script to sign into Azure and deploy the Identity Framework.
|
||||
|
||||
After finishing the identity framework setup, you may choose to either run the project locally first or immediately deploy the solution to Azure.
|
||||
|
||||
## 2.a. Running the Dev Kit in your local dev environment
|
||||
|
||||
- Install the latest version of [Visual Studio 2022](https://visualstudio.microsoft.com/vs/). You may also use Visual Studio Code, but the solution and projects are targeted at VS2022.
|
||||
|
|
|
@ -466,11 +466,6 @@ function Invoke-IdentityBicepDeployment {
|
|||
|
||||
)
|
||||
|
||||
# # If running inside the docker container, fix the path
|
||||
# if ($null -eq $env:DOCKER -and $env:DOCKER -eq "true") {
|
||||
# $BicepTemplatePath = "Saas.Identity.IaC/main.bicep"
|
||||
# }
|
||||
|
||||
$params = @{
|
||||
azureAdB2cDomainSecretValue = $B2CDomain
|
||||
azureAdB2cInstanceSecretValue = $B2CInstanceName
|
||||
|
@ -1099,6 +1094,7 @@ function Write-OutputFile {
|
|||
Write-Host "No data directory was detected. If running this script via docker, you will need to copy this file out of the container onto your host machine."
|
||||
Write-Host "ie: docker cp <container_id>:/data/parameters.json /host/path/parameters.json"
|
||||
$outputJson > "./$OutputFile"
|
||||
Write-Host "Output file written to ./$OutputFile"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче