Deploying with Azure CLI, I found that I got an the:
'The parameter WEBSITE_CONTENTSHARE has an invalid value.'
error because my function app --name flag had an underscore in it.
For anyone else with this error - try removing the underscores.