I have an inline script where one of the command is the below one. How can i Replace LINUX_PASSWD with a variable in Azure release.
I have added LINUX_PASSWD and FILENAME as variable in Azure release pipeline but they are empty after release
sed -i 's/password/$(LINUX_PASSWD)/g' FILENAME
If you want to replace your variables with their values, use $(varable_name) template. In your case:
sed -i 's/password/$(LINUX_PASSWD)/g' $(FILENAME)
Check the documentation: Understand variable syntax, Using custom variables