GCP Demo application deployment

I’m pursuing GCP cloud digital leader certification. There, under USECASE section, there is a demo application deployment lab is there. ifollowed everything to create instance group with instance template.
In the instance template i used this bash code:
#!/bin/bash
apt update
apt -y install apache2
echo “simple application runnin on ‘$(hostname)’” > /var/www/html/index.html

But, i cant get the expected output when i use the external ip of the vm instance. anything we need to configure in the latest gcp. can anyone confirm

A link to the lab would be very helpful; this will allow us to see what you’re talking about.

shared the credentials to you…please take a look at it

actually just now i’ve deleted the instace group…please wait for 2min…ill create like the same

Im selecting all the checkbox while create instance-template to allow traffic. but while creating vm its looking like this.

Screenshot 2025-05-24 023030

the issue is resolved. i forgot to add ingress and egress before creating a instance group. Now its fine im getting the result…thankyou so much