add timestamp with date, time, seconds , timezone.
adds same time to log and output
example:
2023-01-25T16:12:25+00 [Information]:############################## Initializing Start-AzBasicLoadBalancerUpgrade ##############################
2023-01-25T16:12:25+00 [Information]:[Start-AzBasicLoadBalancerUpgrade] Checking that user is signed in to Azure PowerShell
2023-01-25T16:12:25+00 [Information]:[Start-AzBasicLoadBalancerUpgrade] User is signed in to Azure with account, subscription 'Microsoft Azure Internal Consumption' selected
2023-01-25T16:12:25+00 [Information]:[Start-AzBasicLoadBalancerUpgrade] Loading Azure Resources
add timestamp with date, time, seconds , timezone. adds same time to log and output
example: 2023-01-25T16:12:25+00 [Information]:############################## Initializing Start-AzBasicLoadBalancerUpgrade ############################## 2023-01-25T16:12:25+00 [Information]:[Start-AzBasicLoadBalancerUpgrade] Checking that user is signed in to Azure PowerShell 2023-01-25T16:12:25+00 [Information]:[Start-AzBasicLoadBalancerUpgrade] User is signed in to Azure with account, subscription 'Microsoft Azure Internal Consumption' selected 2023-01-25T16:12:25+00 [Information]:[Start-AzBasicLoadBalancerUpgrade] Loading Azure Resources