Closed vigneshrams closed 4 years ago
Hi @vigneshrams ,
This issue was fixed already, please checkout the upcoming release on 11/26 fixed in #10492
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.
Description
I am trying to create a Service Principal Using New-AzADServicePrincipal. But I get error as "Object reference not set to an instance of an object."
DEBUG: 3:40:23 PM - NewAzureADServicePrincipalCommand begin processing with ParameterSet 'SimpleParameterSet'. DEBUG: 3:40:23 PM - using account id 'kameshwaran.ramachandran@vembu.com'... DEBUG: Caught exception, type: System.NullReferenceException New-AzADServicePrincipal : Object reference not set to an instance of an object. At line:1 char:1
DEBUG: AzureQoSEvent: CommandName - New-AzADServicePrincipal; IsSuccess - False; Duration - 00:00:00.0632971; Exception - System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Azure.Commands.ActiveDirectory.ActiveDirectoryBaseCmdlet.HandleException(Exception exception) at Microsoft.Azure.Commands.ActiveDirectory.ActiveDirectoryBaseCmdlet.ExecutionBlock(Action execAction) at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord(); DEBUG: Finish sending metric. DEBUG: 3:40:24 PM - NewAzureADServicePrincipalCommand end processing. DEBUG: 3:40:24 PM - NewAzureADServicePrincipalCommand end processing.
Steps to reproduce
Environment data
Module versions
Debug output
Error output