Baku traffic can be chaotic, but once you head west toward Sheki or the mountains, the roads are decent and the scenery is fantastic. You'll likely need a valid license, and full insurance is a must. You can find motorcycle rental in Baku options through this platform
https://getrentacar.com/en-US/motorcycle-rental/azerbaijan . Always check the bike thoroughly before taking it, brakes, tires, chain. And avoid renting from unverified private sellers.