This command provided by the documentation Restart Stopped Instances:
cf update-service <serviceName> -c '{"max_disk_threshold": "90"}'
It returns an invalid configuration error message:
PS C:\Users\ocs1oh\projects\Java_test> cf update-service Asset_App_Test_Service -c '{"max_disk_threshold": "90"}' FAILED Invalid configuration provided for -c flag. Please provide a valid JSON object or path to a file containing a valid JSON object.
Solution
You can use a JSON file as indicated on the CF page and this should always work:
cf update-service SERVICE_INSTANCE -c PATH_TO_FILE
For example, if you are in the location of the JSON file:
cf update-service <service_instance>-c instance_config.json
To confirm the sevice_instance , run the CF services command and use the service name from your application.
{"max_disk_threshold": "90"}Notes
As state in the documentation:
This is only a temporary solution. The service instance is stopped when the threshold is reached again. For a long-term solution, the service instance must be updated to a larger plan size if available.
For additional support, please create a support case via the Support Centre.