code: def get_conn():
      '''
      Return a conn object for the passed VM data
      '''
      certificate_path = config.get_cloud_config_value(
          'certificate_path',
          get_configured_provider(), __opts__, search_global=False
      )
      subscription_id = salt.utils.stringutils.to_str(
          config.get_cloud_config_value(
              'subscription_id',
              get_configured_provider(), __opts__, search_global=False
          )
      )
      management_host = config.get_cloud_config_value(
          'management_host',
          get_configured_provider(),
          __opts__,
          search_global=False,
          default='management.core.windows.net'
      )
      return azure.servicemanagement.ServiceManagementService(
          subscription_id, certificate_path, management_host
      f get_conn():
      '''
      Return a conn object for the passed VM data
      '''
      certificate_path = config.get_cloud_config_value(
          'certificate_path',
          get_configured_provider(), __opts__, search_global=False
      )
      subscription_id = salt.utils.stringutils.to_str(
          config.get_cloud_config_value(
              'subscription_id',
              get_configured_provider(), __opts__, search_global=False
          )
      )
      management_host = config.get_cloud_config_value(
          'management_host',
          get_configured_provider(),
          __opts__,
          search_global=False,
          default='management.core.windows.net'
      )
      return azure.servicemanagement.ServiceManagementService(
          subscription_id, certificate_path, management_host
      )
docs: Return a conn object for the passed VM data