as an opportunity/chance to ~
This pattern expresses that an event or situation serves as a turning point or opportunity to start something new or change behavior.
を機に means 'taking the opportunity of' or 'with X as a turning point.' It highlights a specific event that triggers a change, a decision, or the beginning of a new habit. It is often used in formal contexts, such as speeches, announcements, or written statements, to explain a life change or a significant shift in circumstances. For example, marriage, a new job, graduation, or a move can be the '機' (opportunity).