A global Microsoft Azure outage that impacted a range of services for consumers Tuesday—from reports of stalling Outlook emails to trouble ordering on Starbucks’ mobile app—was triggered by a distributed denial of service cyberattack, according to the tech giant.