dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

Could Copy-DbaAgentJob include the ability to alter the @schedule_uid or @job_id to be unique?

Open arsqldba opened this issue 3 years ago • 2 comments

Summarize Functionality

While it's not an issue if the same job has the same @schedule_uid or @job_id and it's on different servers, when rolling up reporting it's often nice to have those be unique in some cases.

This may not even be possible, but I thought I'd present the topic to see.

Is there a command that is similiar or close to what you are looking for?

No

Technical Details

I'm not sure it's possible. Maybe it ties in to adding a Job_id or schedule_uid to Set-DbaAgentSchedule and require that to be used after Copy-DbaAgentJob.

arsqldba avatar Apr 06 '22 15:04 arsqldba

dunno perfectly the internals of this specific command but the verb Copy- "dictates" that what's in the source ends up untouched on the dest. If the requirement is altering the entity before it gets pushed to the dest, then it's definitely not a job for Copy- but for a Get- then Set-

niphlod avatar Apr 06 '22 15:04 niphlod

I agree with @niphlod - so can we close this issue?

andreasjordan avatar May 01 '22 08:05 andreasjordan

I am closing this issue now, but can reopen if there is still the need to discuss this.

andreasjordan avatar Oct 25 '22 08:10 andreasjordan