10 Steps to deploy SharePoint Foundation 2013 that uses Azure AD Domain Services


**
Step 1.** Create and configure an Azure Active Directory Domain Services instance.

/en-us/azure/active-directory-domain-services/tutorial-create-instance

Step 2. Create a Windows Server VM (Suggest Windows Server 2016).

/en-us/azure/virtual-machines/windows/quick-create-portal

Note: You must use the virtual network of Azure AD Domain services in order to do Domain-join later.

Step 3. Join the VM to Azure AD Domain.

/en-us/azure/active-directory-domain-services/join-windows-vm

Step 4. Create necessary SharePoint and SQL service accounts for SharePoint 2013.

https://social.technet.microsoft.com/wiki/contents/articles/14500.sharepoint-2013-service-accounts.aspx

Note: For SharePoint Foundation 2013, I do not need all service accounts that list in the above article. 

**Step 5. **Set security settings and appropriate service accounts permissions for SharePoint and SQL server.

Step 6. Add Windows Role and Features that support for SharePoint 2013.

I use the following cmdlets on Windows Server 2016:

Import-Module ServerManager
 
Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45
 
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer

Step 7. Run and install SharePoint 2013 Foundation prerequisites.
Step 8. Install SharePoint 2013 Foundation with SQL Server 2008 Express.
Step 9. Configure the SharePoint 2013 Foundation single-server farm.
Step 10. Test and Go live. :)