<p>Hi I am getting following error</p>
<p><code>ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed precondition when calling the ServiceConsumerManager: tenantmanager::185014: Consumer 370525719069 should enable service:container.googleapis.com before generating a service account</code>.</p>
<p>can someone help me ?</p>

DISHA98 LODHA
<p>You should enable API service - container.googleapis.com, execute command:</p>
<pre><code>$ gcloud services enable container.googleapis.com
</code></pre>
<p>Please take a look at this intorduction especially: <a href="https://codelabs.developers.google.com/codelabs/cloud-deploy-website-on-gke#2" rel="noreferrer">environment setup and cluster creation on GKE</a>.</p>
<p>See more: <a href="https://cloud.google.com/service-usage/docs/enable-disable" rel="noreferrer">gcp-enabling-disabling-services</a>, <a href="https://cloud.google.com/iam/docs/troubleshooting-access#gcloud" rel="noreferrer">troubleshooting-enabling-gcp-services</a>, <a href="https://stackoverflow.com/questions/62751262/gcloud-console-cant-view-gke-resources">enabling-gcp-services-example</a>.</p>
<p><strong>Another option:</strong></p>
<p>It hard to answer due to lack of important additional information (e.g. environment )but  such error may indicate that you are working on some kind of multi-tenancy environment. Make sure that you have proper rights to create new clusters:</p>
<blockquote>
<p>Assign roles using IAM<br />
You can control access to Google Cloud
resources through IAM policies. Start by identifying the groups needed for your organization and their scope of operations, then assign the appropriate IAM role to the group. Use Google Groups to efficiently
assign and manage IAM for users.</p>
</blockquote>
<p>See: <a href="https://www.google.com/url?q=https://cloud.google.com/kubernetes-engine/docs/best-practices/enterprise-multitenancy%23assign-iam-roles&amp;sa=D&amp;source=hangouts&amp;ust=1603872827370000&amp;usg=AFQjCNEfcBMv755zdpSipKsHPuH8hg_rwA" rel="noreferrer">enterprise-multitenancy-roles</a>.</p>
<p>Also take a look on best practices how to set up <a href="https://cloud.google.com/kubernetes-engine/docs/best-practices/enterprise-multitenancy" rel="noreferrer">multi-tenant-cluster-gke-enterprise</a>.</p>
