Created
July 20, 2020 13:55
-
-
Save duffney/8dcf10051131a01d75cd712dc1736e95 to your computer and use it in GitHub Desktop.
Code Snippet for become Ansible Chapter 2 pg 18
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
$credentials = New-Object Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential -Property @{ StartDate=Get-Date; EndDate=Get-Date -Year 2024; Password='<Password>'}; | |
$spSplat = @{ DisplayName = 'ansible' ; PasswordCredential = $credentials} ; | |
$sp = New-AzAdServicePrincipal @spSplat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment