@Mithila Lishan I think this is a resource in a custom VNET. Unfortunately, new QnAMaker resources cannot be created anymore to test this scenario for others. But, AFAIK for cognitive service resources, a custom sub domain needs to be created for turning on firewall rules. See this page from AI services.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.