Env defaults

Defaulting values for environments to null if they're not set rather than defaulting to public azure endpoint. Explicitly throw when accessing a field that's not set rather than silently returning null.

TFS ID #1587635