There is an Azure CLI v2 task in one of my Azure DevOps release pipelines. Its Script Type is set as Shell and Script Location is set as Inline Script. The script contains a large az container create command at the moment and it works fine. I need to update this Inline Script with some additional environment variables but when copy/pasting the command in it I get the below error:
This input does not support more than 5,000 characters. The pasted content has been clipped.
What is a workaround for this?
I have tried adding environment variable with values longer than 5000 characters but I enclosed those characters in a double quotes and I did not receive any warning stating 5000 characters limit, Refer below:-
Output:-
Portal:-