Skip to content

Commit 9ab1930

Browse files
authored
Update dns-azuredns.md
Providing a Powershell object for the New-AzureRMADServicePrincipal does not work. Only need to create the Service Principal, and pass it the SecureString of the password.
1 parent e317f11 commit 9ab1930

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/dns-azuredns.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ Once connected, create the Application and Service Principal
3737
Run the following script:
3838

3939
```powershell
40-
$azureAccountName ="user@domain.com"
4140
$azurePassword = ConvertTo-SecureString "your secure password" -AsPlainText -Force
4241
43-
$psCred = New-Object System.Management.Automation.PSCredential($azureAccountName, $azurePassword)
44-
45-
New-AzureRmADServicePrincipal -DisplayName LetsEncrypt -Password $psCred
42+
New-AzureRmADServicePrincipal -DisplayName LetsEncrypt -Password $azurePassword
4643
```
4744

4845
Once this has successfully run, you need to retrieve the ApplicationID:

0 commit comments

Comments
 (0)