As good as the IAEA is, it can only be as good as what they are permitted to see,....Iran has publicly declared that it will not allow access to military sites but the Joint Comprehensive Plan of Action (JCPOA) makes no distinction between military and non-military sites.

Source here