Skip to content

Instantly share code, notes, and snippets.

@troydai
Created September 6, 2017 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troydai/cd2511d16ec242d7180bdc3d38169cd4 to your computer and use it in GitHub Desktop.
Save troydai/cd2511d16ec242d7180bdc3d38169cd4 to your computer and use it in GitHub Desktop.
Register module correlation ID
def load_params(_):
import azure.cli.command_modules.storage._params # pylint: disable=redefined-outer-name, unused-variable
from azure.cli.core.telemetry import set_module_correlation_data
from datetime import datetime
set_module_correlation_data('module correlation {}'.format(datetime.now().strftime('%Y %m %d %H:%M:%S')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment