Open JeromeBollinger opened 8 months ago
@JeromeBollinger Yes, this is normal behavior. If a second task is executed when the first task is incomplete, the second task will report an error because the resource used in the first task was not released. Thank you!
Sorry for posting here again but Just for my understanding: was this closed because it is not a bug? I marked this ticket as feature request because I would like to be able to have different backup intervals in the same policy, as this is supported by azure but not in this module.
@JeromeBollinger According to your error, your operation failed because a process was in progress. So I don't think it's a Bug. Could you explain your requirements in detail? This will help solve the problem you are experiencing. Thank you!
First of all, Thank you for taking some time! So the error that I am experiencing comes from my workaround of having two different policies with different backup time interval. I understand, that this is not a bug. I would like to not be needing this workaround but instead having two or more different time intervals in one policy instead of different policies. This means, I would like to be able to specify that I want a daily backup and a weekly backup with different retention periods etc. This could look like the snippet that I send in my first comment.
I believe this should be possible as you can configure multiple backup intervals in one single policy in the azure portal
SUMMARY
Currently it is not possible to define a policy which does daily and weekly backups (or possibly other combinations). A way around it is to create different policies which does only one of the backup intervals and then assign the vm to both policies. However, this can result in an error if the operations are done in a rapid succession:
ISSUE TYPE
COMPONENT NAME
azure_rm_backuppolicy
ADDITIONAL INFORMATION
Might look like this:
Azure does support this usecase, so I think it is possible to implement