Since script modules are pulled in as part of the variable snapshot for a runbook I’d expect the Publish runbook option to be available after making that change to a runbook process.
Steps to reproduce this:
Ensure you have a script module ready to use.
Navigate to a project that only has runbook processes (in my case /app#/Spaces-2/projects/azure-environments/operations/runbooks)
Navigate to the runbook process by clicking on the runbook, then the process tab (in my case app#/Spaces-2/projects/azure-environments/operations/runbooks/Runbooks-281/process/RunbookProcess-Runbooks-281)
Add a script module to the runbook
Since the runbook is changed, I expected the publish runbook button to be enabled at this point.
The publish runbook button remains disabled.
Simple - make an innocent change (in my case whitespace in a comment in the PowerShell step that was using the script module.
If you need any more info, let me know. On a scale of 1-10 on how annoying this is, it’s only a 3 for me
Thanks for getting in touch! Sorry to hear you’re hitting this issue. I appreciate you bringing this bug to our attention and for your detailed report. Your clear repro steps were very helpful.
I raised this as a bug report at the following link for you to track.
Another potential workaround would be to update the variables in the published snapshot, in case that’s of any help. That’ll pull the changes made to a variable set and/or script module in to the existing published snapshot.