@hehehehehehe Azure OpenAI does not publish IP addresses of the endpoint. You can however configure virtual networks with your OpenAI resource to restrict traffic from specific IP addresses in this case, in this case the webserver that you are using.
If the AWS SG cannot be opened for public internet, you will have to configure virtual network for Azure OpenAI resource and then resources from on-premises networks (AWS in this case) can connect to the virtual network by using Azure VPN Gateway or ExpressRoutes with private-peering.
See this page for all possibilities of using networking restriction on Azure AI services. Thanks!!
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.