DevOpsAssignment/00-Setup.md

40 lines
1.6 KiB
Markdown
Raw Normal View History

2023-07-20 04:47:15 +00:00
# Starting from scratch on Windows 11
2023-07-20 06:27:14 +00:00
1. Signed up for Azure Free account at <https://portal.azure.com>
2023-07-20 04:47:15 +00:00
2023-07-20 06:27:14 +00:00
~~2. Installed Az PowerShell Module ...~~
~~3. Install AzureAD PowerShell Module ...~~
~~3. Install Microsoft Graph Module ...~~
2023-07-20 04:47:15 +00:00
2. Working with **mcr.microsoft.com/microsoftgraph/powershell** docker
2023-07-20 06:27:14 +00:00
container.
Chose this path after failing to setup my personal local
Windows 11 machine with the above libraries, realizing this should
have been my first choice.
2023-07-20 04:47:15 +00:00
NOTE: All console actions described below are from within the docker
container.
All Web UI action were done on my personal machine. I do not describe
the process of copying over the file from the container / remote
machine into my local-browser machine.
2023-07-20 06:27:14 +00:00
```console
# bash command line:
docker run --rm -it -v "$PWD/data:/data" \
-v "$PWD/data/.dotnet:/root/.dotnet" \
-v "$PWD/src:/data/src" \
-w "/data" \
mcr.microsoft.com/microsoftgraph/powershell
```
3. Following [this tutorial page](https://learn.microsoft.com/en-us/graph/tutorials/powershell-app-only?tabs=linux-macos&tutorial-step=1#register-application-for-app-only-authentication)
I've created the following utility scripts to help with this process:
1. [`Create-Cert`](Create-Cert.ps1) -
Create a self-signed certificate and load it into the .NET
cert-store (see Load-Cert next).
2. [`Load-Cert`](Load-Cert.ps1) -
Load certificate files into the local .NET cert-store.
3. [`Connect-AppCert`](Connect-AppCert.ps1) -
This will be used to establish a new app connection.