Microsoft is changing its reporting structure from three segments to two - Agents and Infra and Devices and Consumer - as the company responds to changes brought about by artificial intelligence.