Use Azure SPN Account to run your PowerShell scripts.
Bug Report
·
Request Feature
- Azuer Service Principal (SPN) Login
Clone the git reop to start:
https://git.com/adminph-de/ps-azure-spn-login
Change the JSON file (spn-login.json):
[
{
"object": {
"TENANT_ID": "0000000-0000-0000-0000-00000000000",
"SPN_ID": "0000000-0000-0000-0000-00000000000",
"SPN_PW": "yourSecretSPNpassword"
}
}
]
Execute the script:
spn-login.ps1 -JsonFile spn-account.json
Script Output:
You are authenicated (SPN) by:
SPN_ID : 0000000-0000-0000-0000-00000000000
TENANT_ID : 0000000-0000-0000-0000-00000000000
Don't forget to select a Subscrtiption by going ahead
Check my usage of the code-snipe as an example in ps-powerbi-asr-report. I used it in the
report.ps1
script to authenticate before executing the script.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch
git checkout -b feature/AmazingFeature
- Commit your Changes
git commit -m 'Add some AmazingFeature'
- Push to the Branch
git push origin feature/AmazingFeature
- Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/adminph-de/ps-azure-spn-login