All network rules and access rules are configured using Identify Provider Discovery. Ensure your Identity provider has on premises IWA Desktop SSO. See Configure Identity Provider routing rules.
If you turn off IWA DSSO, the IWA Routing Rule becomes Inactive and the next Routing Rule is used to direct users to the appropriate sign in. When you turn IWA DSSO on again, you must also switch the IWA Routing Rule to Active.