From 29a15f004edcf4220af8a3d40d2da2676a5ce05e Mon Sep 17 00:00:00 2001 From: "Brian T. Jackett" Date: Sun, 4 Oct 2020 14:31:18 -0400 Subject: [PATCH] Fix reference to ClientCredentialApp for SPN Fix reference to variable ($app4) of created application registration for "ClientCredentialApp" --- samples/9-Applications.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/9-Applications.ps1 b/samples/9-Applications.ps1 index 9ee6462eb77..42ccdd88d44 100644 --- a/samples/9-Applications.ps1 +++ b/samples/9-Applications.ps1 @@ -47,4 +47,4 @@ $app4 = New-MgApplication -"ClientCredentialApp" $AppName ` -KeyCredentials @(@{ Type = "AsymmetricX509Cert"; Usage = "Verify"; Key= $Certificate.RawData }) # Create corresponding service principal. -New-MgServicePrincipal -AppId $appRegistration.AppId \ No newline at end of file +New-MgServicePrincipal -AppId $app4.AppId