Look at Environment planning page in D365FO documentation; it’ll give you an introduction to environments.