v3.23.1
Restructuring - Restructuring and Related Costs (Details) - USD ($)
$ in Millions
3 Months Ended 12 Months Ended
Mar. 31, 2023
Mar. 31, 2022
Dec. 31, 2022
Restructuring Cost and Reserve [Line Items]      
Total share-based compensation expense $ 3,051 $ 2,498  
2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 621   $ 4,611
Plan to Date 5,232    
Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 807   2,295
Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 523    
Total share-based compensation expense 61    
Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (18)   975
Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (168)   1,341
Cost of revenue      
Restructuring Cost and Reserve [Line Items]      
Total share-based compensation expense 160 160  
Cost of revenue | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (110)   1,495
Plan to Date 1,385    
Cost of revenue | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 58   154
Cost of revenue | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 0   0
Cost of revenue | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (168)   1,341
Research and development      
Restructuring Cost and Reserve [Line Items]      
Total share-based compensation expense 2,449 1,941  
Research and development | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 480   1,719
Plan to Date 2,199    
Research and development | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 484   1,311
Research and development | Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 324    
Research and development | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (4)   408
Research and development | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 0   0
Marketing and sales      
Restructuring Cost and Reserve [Line Items]      
Total share-based compensation expense 219 216  
Marketing and sales | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 134   638
Plan to Date 772    
Marketing and sales | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 136   404
Marketing and sales | Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 5    
Marketing and sales | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (2)   234
Marketing and sales | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 0   0
General and administrative      
Restructuring Cost and Reserve [Line Items]      
Total share-based compensation expense 223 $ 181  
General and administrative | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 117   759
Plan to Date 876    
General and administrative | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 129   426
General and administrative | Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs 194    
General and administrative | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs (12)   333
General and administrative | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Severance and other personnel costs $ 0   $ 0