Hi,
I have a problem if I want to add additional Azure Apps to my O365 Backup App in Commvault Command Center. The Process failes for all kinds of O365 Apps and I see this issue on Customer Site with FR20 and in my demo env with FR22.
In the webserver.log I found following error:
7688 14 01/28 08:19:18 ### TEST\kaiser CVWeSvc::CreateAzureAdApp - BEGIN
7688 14 01/28 08:19:18 ### TEST\kaiser CVWeSvc::CreateAzureAdApp - Save to client flag is set
7688 14 01/28 08:19:18 ### TEST\kaiser CVWeSvc::CreateAndSaveAzureAdApp - BEGIN
7688 14 01/28 08:19:18 ### TEST\kaiser CVWeSvc::CreateAndSaveAzureAdApp - Request Message - [<App_AzureAdAppCreationReq instanceId="24" opType="1" subClientId="180" isOneDriveV2="1" saveToClient="1" redirectUriForApp="https://commserve.test.viso/adminconsole" />]
7688 14 01/28 08:19:18 ### TEST\kaiser GetInstanceProperties - Processing POST request : ] Headers :[Content-Length=149].[Accept=application/json].[Accept-Encoding=gzip, deflate, br].[Accept-Language=en].[Host=commserve.Test.ViSo:81].[Referer=https://commserve.test.viso/adminconsole/].[locale=en].[client-location=172.16.31.10].[LookupNames=false].[sec-fetch-mode=cors].[sec-fetch-site=same-origin].[origin=https://commserve.test.viso].[ref-endpoint=proxy/ActiveDirectory/Azure/AADApp].[csrf=-2kd93lk97gzx].[timezoneinfo=+01:00].[ref-page=#/office365/clientDetails/onedrive_v2/35/180/configuration?instanceId=24&backupsetId=60].[sec-ch-ua="Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"].[sec-ch-ua-mobile=?0].[x-requested-with=XMLHttpRequest].[ts=1611236057011].[ref-ts=1611733987462].[sec-fetch-dest=empty].[FormatOutput=false].[SkipOldJsonConverter=true].[trace-id=cvjsXhKfgE].Arguments : Parameters :[instanceId=24]
7688 14 01/28 08:19:18 ### TEST\kaiser AppMgrProcessor::Process<GetInstancePropertiesRequest> - AppMgrService handling GetInstancePropertiesRequest XML message request for user [6] on locale [0].
7688 2cf8 01/28 08:19:20 ### cccAuthClient() - Only built-in certificate is loaded. Client name requested by remote end: ()(). Physical node in the registry: (commserve).
7688 2cf8 01/28 08:19:20 ### DBBase-SQL() - dbmethods.cpp:1431, DB Layer will use [Exec] access by default. Use SetAdminAccess API for on demand Admin access.
7688 2cf8 01/28 08:19:20 ### DetectNativeClient() - Found reg key [SOFTWARE\Microsoft\Microsoft SQL Server\SQLNCLI11]. Using driver [SQL Server Native Client 11.0].
7688 14 01/28 08:19:24 ### TEST\kaiser AppMgrProcessor::Process<GetInstancePropertiesRequest> - AppMgrService processed GetInstancePropertiesRequest request in 5710,7704 ms. Processing status [0]-[].
7688 14 01/28 08:19:24 ### ManagedLogger::SetCLRThreadPoolMaxThreads - CLR ThreadPool's max threads is already set by another thread in the process. maxWorkerThreads = [32767], maxIOThreads = [1000], PID = [7688], ProcessName = [w3wp].
7688 14 01/28 08:19:24 ### TEST\kaiser GetInstanceProperties - Status : SUCCESS. HTTP code 'OK'. Log:[<?xml version='1.0' encoding='utf-8' ?><App_GetInstancePropertiesResponse><instanceProperties scIdxEnabled="0" applicationSize="0" isDeleted="0"><instance instanceId="24" instanceName="OneDrive" applicationId="134" appName="Cloud Apps" clientId="35" clientName="onedrive_v2" displayName="onedrive_v2" instanceGUID="714EDE3A-97FC-4391-83E2-CA149739814B"/><cloudAppsInstance instanceType="7"><oneDriveInstance isAutoDiscoveryEnabled="0" isEnterprise="1" callbackUrl="" autoDiscoveryMode="0" manageContentAutomatically="0" domainName="" additionalSubclientscreated="0" cloudRegion="1"><serviceAccounts><accounts AdminSmtpAddress="kaiser@xxxx.onmicrosoft.com" serviceType="4"><userAccount userName=""/></accounts></serviceAccounts><azureAppList><azureApps appStatus="1" azureAppDisplayName="CVODBackupApp1608537063" azureAppId="152686ac-adcd-453d-a022-ef5947e19fab" azureDirectoryId="fb933cfe-8ff0-440a-bda8-b5090391ad5b" isCVCreated="1"/></azureAppList><discoverState><discoveryStatus>2</discoveryStatus><discoveryProgress>100</discoveryProgress><lastCacheUpdateTime>1611741832</lastCacheUpdateTime><lastCacheUsersCount>21</lastCacheUsersCount><lastCacheGroupsCount>14</lastCacheGroupsCount><totalDiscoveredUsers>21</totalDiscoveredUsers><totalDiscoveredGroups>14</totalDiscoveredGroups></discoverState></oneDriveInstance><generalCloudProperties numberOfBackupStreams="10" userAccountsCount="2"><memberServers><client _type_="3" clientId="3" clientName="cv-ma01"/></memberServers><storageDevice><dataBackupStoragePolicy storagePolicyId="7" storagePolicyName="plan_fileservers"/></storageDevice><indexServer clientId="15" clientName="IS_commserve" _type_="3"/></generalCloudProperties></cloudAppsInstance><instanceActivityControl><activityControlOptions activityType="1" enableActivityType="1" enableAfterADelay="0"/><activityControlOptions activityType="2" enableActivityType="1" enableAfterADelay="0"/></instanceActivityControl><cloudDBInstance overRideAccessNode="0"><accessNodes/></cloudDBInstance></instanceProperties></App_GetInstancePropertiesResponse>].
7688 14 01/28 08:19:24 ### TEST\kaiser CVWeSvc::CreateAndSaveAzureAdApp - Client Id [35] Application Type [134]
7688 14 01/28 08:19:24 ### TEST\kaiser CVWeSvc::CreateAndSaveAzureAdApp - Azure App creation request info -- OpType: CreateAzureAdAppForOneDrive Admin Account: kaiser@xxxx.onmicrosoft.com
7688 14 01/28 08:19:24 ### ### AzureAccountGeneratorEntry - Log intialized
7688 14 01/28 08:19:24 ### ### setAdminCredential - Admin Credential Set: kaiser@xxxx.onmicrosoft.com
7688 14 01/28 08:19:25 ### ### valdiateAdminPermission() - Admin not logged in. Logging in..
7688 14 01/28 08:19:32 ### ### doLogin - Connect-AzureAd Script response[True]
7688 14 01/28 08:19:32 ### ### doLogin - Exchange PS Session [True] AzureAD Session[True]
7688 14 01/28 08:19:32 ### ### doLogin - Login Status[LoggedIn_NoErrors] Attempt[1]
7688 14 01/28 08:19:32 ### ### valdiateAdminPermission() - Validating Administrator Permissions..
7688 14 01/28 08:19:32 ### TEST\kaiser CVWeSvc::CreateAndSaveAzureAdApp - failed to create azure app.<App_AzureAdAppCreationResp errorMessage="Something went wrong. Check Logs." errorCode="1" isBasicAuthDisabled="0">
<azureAppDetails />
</App_AzureAdAppCreationResp>
7688 14 01/28 08:19:32 ### ### runPowerShellScript - Exception in PowerShell script: 'System.AggregateException: One or more errors occurred. ---> System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'ObjectId' because it is null.
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at AzureCredentialGenerator.AzurePsProvider.<>c__DisplayClass38_0.<runPowerShellScript>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at AzureCredentialGenerator.AzurePsProvider.runPowerShellScript(String script, ICollection`1& results, String& sError)
---> (Inner Exception #0) System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'ObjectId' because it is null.
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at AzureCredentialGenerator.AzurePsProvider.<>c__DisplayClass38_0.<runPowerShellScript>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
'
7688 14 01/28 08:19:32 ### ### valdiateAdminPermission() - Powershell Failed to Execute
A few weeks ago I configured the whole O365 Apps and everything worked fine and now it does not anymore (there where no changes on the cv and the ms site).
Kind Regards
Florian