Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't publish a App Engine application to GCloud using the Google Cloud Platform tools in Visual Studio 2019

I just moved my application to use ASP.Net on .Net Core 3.1. I previously was using NodeJS and Express. I installed the Google Cloud Platform tools for Visual Studio, generated the app.yaml and Dockerfile using the right click menu on my project, modified the app.yaml to what I would assume is a valid configuration, and attempted to publish it. I selected App Engine Flex, selected my project, and I got a "The selected GCP project needs services to be enabled before you can deploy. Enable the services" message. Clicking on Enable the services (which looks like a link) does not do anything. This is preventing be from publishing my app, which is kind of annoying.

Any help would be greatly appreciated :)

app.yaml

service: api
runtime: custom
env: flex
env_variables:
    ASPNETCORE_ENVIROMENT: "production"
instance_class: F2
automatic_scaling:
    min_idle_instances: 0
    max_idle_instances: 2
    min_pending_latency: 15ms
    max_pending_latency: 100ms

Dockerfile

FROM gcr.io/google-appengine/aspnetcore:3.1
COPY . /app
WORKDIR /app
ENTRYPOINT ["dotnet", "Project Phoenix Game Services.dll"]
like image 539
Djgaven588 Avatar asked Oct 20 '25 18:10

Djgaven588


2 Answers

Enable the App Engine Admin API.

like image 132
Mitulát báti Avatar answered Oct 22 '25 07:10

Mitulát báti


This happened to me also, when trying to publish a .NET 6 Web API. In order to solve it this is what I did:

  1. Went to my dashboard https://console.cloud.google.com/
  2. Searched for "App Engine Admin API", using the search bar on the top
  3. Enabled it.
like image 41
Martin Castellon Avatar answered Oct 22 '25 07:10

Martin Castellon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!