Skip to content

adminph-de/ps-azure-spn-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azuer Service Principal (SPN) Login

Contributors Forks Stargazers Issues MIT License LinkedIn


Code Snipes

Use Azure SPN Account to run your PowerShell scripts.
Bug Report · Request Feature

Content

Installation

Clone the git reop to start:

https://git.com/adminph-de/ps-azure-spn-login

Usage

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.

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch git checkout -b feature/AmazingFeature
  3. Commit your Changes git commit -m 'Add some AmazingFeature'
  4. Push to the Branch git push origin feature/AmazingFeature
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/adminph-de/ps-azure-spn-login

Patrick Hayo

N00ky2010

Acknowledgements

Referenzes

Releases

No releases published

Packages

No packages published