Alarm Profile

I am trying to set a profile for when my alarm clock is activated on my phone that a certain task activates to enable the do not disturb function on my phone. Is there a way to do this?
You can set the context event for alarm clock. As far as the task I do not know if there's an actual do not disturb function but you could simulate it with tasker by entering silent mode, disable notification pulse, etc