Automation account rerun, a jobshedule already exist

╄→尐↘猪︶ㄣ 提交于 2020-01-25 10:14:16

问题


I have created a CD pipeline in Azure DevOps that will deploy an Azure Automation account and a runbook , shedule , jobshedule through ARM templates.

All working fine except when rerunning the template. My template is a part of a large deployment process that is still under construction so until the total scope is finished the ARM template that creates the runbook, shedule, jobshedule will rerun with every release.

The problem right now is the following: Whenever I rerun the template with a new release pipeline, I receive following error

A job schedule for the specified runbook and schedule already exists.

At first I tried to be smart so added a GUI before the name of my jobshedule but the shedule itself attaches the runbook with the shedule and the deployment was smart enough to figure it out that the shedule was already connected to the runbook. Is there a way of making this still within the DevOps mindset / process so that I can rerun my templates with no problem.

The workaround solution I have created atm is to delete the shedule at every deployment but that seems like a very bad workaround.


回答1:


Related feature request from UserVoice / feedback forum is here that's currently in triaged state.



来源:https://stackoverflow.com/questions/57658522/automation-account-rerun-a-jobshedule-already-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!