No ticket is needed to enter the pavilion. BUT, there is a ticket if you want to go inside the main building. You can purchase the ticket at the buidling entrance (not at the pavilion entrance). No cameras allowed inside the building unfortunately. The ticket price is less than RM10
For the time I was there, there's no ticket needed to enter the place.
Get quick answers from Moroccan Pavilion Putrajaya staff and past visitors.