Just trying to find if someone has successfully done this, basically automatize the deployment of an Add-in to Office 365
MSOffice Entra ID Token
Client Secret: “1111111111111111111” (This is a secret that should be protected and not shown, I am having a look how to improve this)
APP ID: “2222222222222222222222222”
TenantID : “333333333333333333333333”
I tried the below, but not working
Install-Module -Name O365CentralizedAddInDeployment
Import-Module -Name O365CentralizedAddInDeployment
$clientSecret = "1111111111111111111"
$appId = "2222222222222222222222222"
$tenantId = "333333333333333333333333"
$secureStringPwd = $clientSecret | ConvertTo-SecureString -AsPlainText -Force
$psCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList
$appId, $secureStringPwd
##Connect-AzAccount -ServicePrincipal -Credential $psCredential -Tenant $tenantId ## For Testing and worked
Connect-OrganizationAddInService -Credential $psCredential
I was expecting to at least connect to the service
2