unable to run get-azlog

%3CLINGO-SUB%20id%3D%22lingo-sub-2718818%22%20slang%3D%22en-US%22%3Eunable%20to%20run%20get-azlog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2718818%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20try%20to%20get%20the%20detail%20of%20correlation%20ID.%20I%20installed%20the%20AZ%20module%20and%20tried%20the%20run%20the%20get-azlog%20cmdlet.%20However%2C%20I%20am%20getting%20the%20following%20error%20even%20if%20I%20tried%20it%20on%20different%20PC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWARNING%3A%203%3A04%3A24%20PM%20-%20The%20namespace%20for%20all%20the%20model%20classes%20will%20change%20from%3CBR%20%2F%3EMicrosoft.Azure.Management.Monitor.Management.Models%20to%20Microsoft.Azure.Management.Monitor.Models%20in%20future%20releases.%3CBR%20%2F%3EWARNING%3A%203%3A04%3A24%20PM%20-%20The%20namespace%20for%20output%20classes%20will%20be%20uniform%20for%20all%20classes%20in%20future%20releases%20to%20make%20it%3CBR%20%2F%3Eindependent%20of%20modifications%20in%20the%20model%20classes.%3CBR%20%2F%3EWARNING%3A%20%5BGet-AzActivityLog%5D%20Parameter%20deprecation%3A%20The%20DetailedOutput%20parameter%20will%20be%20deprecated%20in%20a%20future%3CBR%20%2F%3Ebreaking%20change%20release.%3CBR%20%2F%3Eget-azlog%20%3A%20Exception%20type%3A%20ValidationException%2C%20Message%3A%20Microsoft.Rest.ValidationException%3A%3CBR%20%2F%3E'this.Client.SubscriptionId'%20cannot%20be%20null.%3CBR%20%2F%3Eat%20Microsoft.Azure.Management.Monitor.ActivityLogsOperations.%3CLISTWITHHTTPMESSAGESASYNC%3Ed__5.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.Azure.Management.Monitor.ActivityLogsOperationsExtensions.%3CLISTASYNC%3Ed__1.MoveNext()%2C%20Code%3A%20Null%2C%3CBR%20%2F%3EStatus%20code%3ANull%2C%20Reason%20phrase%3A%20Null%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20get-azlog%3CBR%20%2F%3E%2B%20~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20CloseError%3A%20(%3A)%20%5BGet-AzActivityLog%5D%2C%20PSInvalidOperationException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.Azure.Commands.Insights.Events.GetAzureRmLogCommand%3C%2FLISTASYNC%3E%3C%2FLISTWITHHTTPMESSAGESASYNC%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Visitor

I am try to get the detail of correlation ID. I installed the AZ module and tried the run the get-azlog cmdlet. However, I am getting the following error even if I tried it on different PC.

 

WARNING: 3:04:24 PM - The namespace for all the model classes will change from
Microsoft.Azure.Management.Monitor.Management.Models to Microsoft.Azure.Management.Monitor.Models in future releases.
WARNING: 3:04:24 PM - The namespace for output classes will be uniform for all classes in future releases to make it
independent of modifications in the model classes.
WARNING: [Get-AzActivityLog] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future
breaking change release.
get-azlog : Exception type: ValidationException, Message: Microsoft.Rest.ValidationException:
'this.Client.SubscriptionId' cannot be null.
at Microsoft.Azure.Management.Monitor.ActivityLogsOperations.<ListWithHttpMessagesAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Management.Monitor.ActivityLogsOperationsExtensions.<ListAsync>d__1.MoveNext(), Code: Null,
Status code:Null, Reason phrase: Null
At line:1 char:1
+ get-azlog
+ ~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzActivityLog], PSInvalidOperationException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Insights.Events.GetAzureRmLogCommand

 

Thanks

0 Replies