Hi @PS,
Welcome to Microsoft Q&A platform , to clarify the requirement , you need from inside shell of running container to get the subscription/rg?
if that is the case , can you pass subscription/rg as environment variable inside the ACI container ,
and then you can consume it inside ACI
because inside the shell of running container it will not be aware of the context as subscription or resource group .