Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add Cmdlet(s) for creating and updating Runbook drafts #25511

Closed
michaeldcanady opened this issue Jul 11, 2024 · 4 comments
Closed
Labels
customer-reported feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team.

Comments

@michaeldcanady
Copy link

Description of the new feature

Currently there is no way, as far as I know, to create or update runbook drafts using the PowerShell SDK

Proposed implementation details (optional)

No response

@michaeldcanady michaeldcanady added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
@ITJoeSchmo
Copy link

ITJoeSchmo commented Jul 12, 2024

Import-AzAutomationRunbook without -Published switch should do the trick right?

@michaeldcanady
Copy link
Author

No, at least not with how the Cmdlet is now, "all" that does is create a new runbook utilizing the provided PowerShell.

I checked the debug logs and it does make the desired call during it's execution but I needed it to be able to add a draft an existing runbook.

@ITJoeSchmo
Copy link

ITJoeSchmo commented Jul 12, 2024

No, at least not with how the Cmdlet is now, "all" that does is create a new runbook utilizing the provided PowerShell.

I checked the debug logs and it does make the desired call during it's execution but I needed it to be able to add a draft an existing runbook.

It does work with an existing runbook if you use -Force I just tested it:
image

You can see the creation date was not updated as it just updated the draf; also confirmed it updated the draft version while the current published version is in place:

image

@michaeldcanady
Copy link
Author

michaeldcanady commented Jul 12, 2024

Thank you for posting this out!
Though, it would be helpful if that was outlined in the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team.
Projects
None yet
Development

No branches or pull requests

2 participants