This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: Appliance Notifications & Actions | |
| description: > | |
| # 📳 Appliance Notifications & Actions | |
| **Version: 4.0** | |
| 🤔 Watts your appliance up to, you're always in the know from start to finish! 🛎️🔌💸 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func (s *$SUITE$) Test$NAME$() { | |
| $END$ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type $SUITE$Suite struct { | |
| suite.Suite | |
| } | |
| func Test$SUITE$Suite(t *testing.T) { | |
| suite.Run(t, new($SUITE$Suite)) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-PCAppUserAuthenticationBearer { | |
| <# | |
| .SYNOPSIS | |
| Function to retrieve App+User bearer token from Microsoft CSP API | |
| .DESCRIPTION | |
| This function connects to Azure AD to generate an oAuth token. | |
| Aquired token is then used against the partner center REST API to generate a App+User jwt token. https://api.partnercenter.microsoft.com/generatetoken | |
| You can read more about the authentication method here: https://msdn.microsoft.com/en-us/library/partnercenter/mt634709.aspx | |
| .PARAMETER ClientID |