title: Azure Automation Module Import - How to investigate module members not being exported/extracted as Activities?
body: <p>I have a custom module with some embedded Workflow &amp; Native ps1 cmdlets.</p>
  
  <p>When I import this module, only a subset of the cmdlets are showing up as extracted Activities under the Module. </p>
  
  <p>The module is completing the import successfully, and shows as Available. </p>
  
  <p><strong>Is there anywhere to look to find the specific output and any possible member-specific import errors?</strong> </p>
  
  <p>The cmdlets which are failing to load are dependent upon some new types added as part of an assembly. The cmdlets which <strong>are</strong> loading are also dependent on types from that assembly. </p>
  
  <p>Adding to the confusion, when I import this module locally in ISE, everything works fine and all the cmdlets are available/executable.</p>
  
  <p>Further: I've seen this with Native PowerShell cmdlets, but <strong>it also appears as though (single) PowerShell Workflow activity inside a .ps1 is not supported</strong>. </p>
  
  <p>In addition, I've seen that locally, depending on whether or not a load my module using the .psd1 or the .psm1, I get different behavior &amp; results WRT dependent assembly loading. </p>
  
  <p>In particular, when trying to troubleshoot the inconsistencies locally, I've gotten a number of "can't find type" or "found more than one overload for ctor with 1 arg" (despite the type in question not having a ctor with 1 arg) errors with types referenced via <code>[OutputType([typename])]</code>, etc, when OTHER cmdlets that DO rely on types from the SAME assembly are found just fine..</p>
  
  <p><strong>[EDIT]</strong> <Br>
  local verbose output from my testing .psm1</p>
  
  <blockquote>
    <p>VERBOSE: Importing function 'sync-test'.<br>
    VERBOSE: Importing command as workflow 'Sync-VsoGitRmRunbook'.</p>
  </blockquote>
  
  <p>In AA, sync-test (just a plain runbook that writes string output) is showing up fine, while Sync-VsoGitRmRunbook does not. <Br><br>
  If I convert sync-test to a workflow, it also stops importing, leading me to believe that there is a limitation with modules exporting Workflow activities that are bundled as .ps1 files (as opposed to being C# classes packaged in the module) </p>
  
  <p><strong>[EDIT]</strong><br>
  I've created a module that reproduces the problem. 
  <a href="https://github.com/JoeBrockhaus/AzureAutomationVsoGitSync" rel="nofollow">https://github.com/JoeBrockhaus/AzureAutomationVsoGitSync</a></p>