Is it possible to during the backend service (https) creation attach it to a http health-check?
I'm asking that because if I try that manually (google cloud web console), I'm able to do it.
My script is the following:
gcloud compute http-health-checks create my-health-check --port 80 \
--host <my host goes here> \
--project "$PROJECT"`enter code here`
gcloud compute backend-services create my-bs \
--http-health-checks my-health-check \
--protocol HTTPS \
--timeout 5m \
--project "$PROJECT" \
--global
And I get the following error:
This HTTPS/HTTP2 backend service supports HealthCheck and HttpsHealthCheck
But if I create manually it the google (web console) allows me.