Hello @Anonymous
You can export ARM template from ADF by clicking Manage tab as below
But as you said you are getting an error while publishing from ADF portal itself, then ARM template won't show the env parameter
Are you running pipeline via Debug mode? That is why you might be passing parameter during runtime. To publish a pipeline you will have to provide a default value or a dynamic value