If you are a California Resident every vehicle (trailer is a vehicle) you own MUST be registered in California, unless that vehicle will NEVER be brought into California. (Even just passing through, for repairs, or whatever)
Boats are different. They can be registered in the State of principle use. So no problems in registering the boat in AZ. However the trailer must be registered in CA.