Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

I get this error with Select-MsalClientApplication.ps1 #70

Open
ramonrub opened this issue May 26, 2023 · 0 comments
Open

I get this error with Select-MsalClientApplication.ps1 #70

ramonrub opened this issue May 26, 2023 · 0 comments

Comments

@ramonrub
Copy link

ramonrub commented May 26, 2023

I SET THE PARAMS FOR CONNECT

PS C:\WINDOWS\system32> $AppClientId = "ee141ac5-xxxx-xxxx-xxxx-6daee26d52ec"
PS C:\WINDOWS\system32> $TenantId = "e1397670-xxxx-xxxx-xxxx-ca06b4e77481"
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> $MsalParams = @{
ClientId = $AppClientId
TenantId = $TenantId
Scopes = "https://outlook.office.com/EWS.AccessAsUser.All"
}

HERE THE ERROR

PS C:\WINDOWS\system32> $MsalResponse = Get-MsalToken @MsalParams
**New-MsalClientApplication : No se puede convertir el argumento "builder", con el valor: "Microsoft.Identity.Client.PublicClientApplicationBuilder", para "WithDesktopFeatures", al tipo "Microsoft.Identity.Client.PublicClientApplicationBuilder": "No se puede convertir
el valor "Microsoft.Identity.Client.PublicClientApplicationBuilder" de tipo "Microsoft.Identity.Client.PublicClientApplicationBuilder" al tipo "Microsoft.Identity.Client.PublicClientApplicationBuilder"."
En C:\Users\ES00500216\Documents\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Select-MsalClientApplication.ps1: 56 Carácter: 29
... plication = New-MsalClientApplication -ErrorAction Stop @paramNewMsal ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [New-MsalClientApplication], MethodException
FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument,New-MsalClientApplication

No se encuentra la propiedad 'AppConfig' en este objeto. Compruebe que existe.
En C:\Users\ES00500216\Documents\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Select-MsalClientApplication.ps1: 88 Carácter: 9
Write-Debug ('Adding Application with ClientId [{0}] and Redi ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
FullyQualifiedErrorId : PropertyNotFoundStrict

Add-MsalClientApplication : No se puede enlazar el argumento al parámetro 'PublicClientApplication' porque es nulo.
En C:\Users\ES00500216\Documents\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Select-MsalClientApplication.ps1: 89 Carácter: 35
Add-MsalClientApplication $ClientApplication
~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidData: (:) [Add-MsalClientApplication], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-MsalClientApplication

No se encuentra la propiedad 'ClientId' en este objeto. Compruebe que existe.
En C:\Users\ES00500216\Documents\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Get-MsalToken.ps1: 291 Carácter: 21
... Write-Verbose ('Attempting Silent Authentication to Appli ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
FullyQualifiedErrorId : PropertyNotFoundStrict

Get-MsalToken : No se puede enlazar el argumento al parámetro 'PublicClientApplication' porque es nulo.
En C:\Users\ES00500216\Documents\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Get-MsalToken.ps1: 293 Carácter: 96
... ken -Silent -PublicClientApplication $PublicClientApplication @paramg ...
~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidData: (:) [Get-MsalToken], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MsalToken**

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant