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