All about Azure ExpressRoute

What is Azure ExpressRoute ?

Microsoft Azure ExpressRoute lets you extend your on-premises networks into the Microsoft Cloud over a private connection with the help of a connectivity provider. With ExpressRoute, you can establish connections to Microsoft Cloud services, such as Microsoft Azure and Microsoft 365.

Please refer recent cheat sheet: https://techcommunity.microsoft.com/t5/azure-networking-blog/microsoft-azure-expressroute-overview-cheat-sheet/ba-p/4110389

Documentation: https://learn.microsoft.com/en-us/azure/expressroute/expressroute-introduction#expressroute-cheat-sheet

Posted in General | Tagged , , , , , | Leave a comment

Retrieve External IP Address of GCP VM Instance from Metadata Server

Introduction

In Google Cloud Platform (GCP), virtual machine (VM) instances are assigned external IP addresses for communication with the internet. These addresses are essential for various network-related tasks, such as accessing web services or allowing external traffic to your applications. In this blog post, we’ll explore how to retrieve the external IP address of your GCP VM instance programmatically using the metadata server.

What is the Metadata Server?

The GCP metadata server is a service provided to every VM instance that allows it to access information about itself and its environment. This information includes instance attributes, network settings, and service account details, among other metadata.

Challenge

By default, external IP address will not appear in ipconfig /all or ip addr show commands.
Refer below screenshot for reference.

How to retrieve External IP Address within OS ?

For Linux VMs

  1. SSH into your VM instance: Use the Google Cloud Console or the gcloud command-line tool to SSH into your VM instance.
  2. Query the metadata server: Once connected to your VM instance, you can use tools like curl or wget to make an HTTP request to the metadata server. The external IP address can be obtained from the network-interfaces section of the metadata.

Command using curl:

curl -H "Metadata-Flavor: Google" http://metadata/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip

You can see respective external IP Address of Linux VM, in above example 35.193.202.150 was result.

For Windows VMs

  1. RDP into your Windows VM
  2. Open PowerShell or Command Prompt and run below command
  3. This PowerShell command sends an HTTP request to the metadata server endpoint and retrieves the external IP address of the Windows server instance.
(Invoke-WebRequest -Uri "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" -Headers @{"Metadata-Flavor"="Google"}).Content

Windows VM

Confirmation from GCP Console

In above example, you can see the External IP’s are matching within Operating systems and from GCP Console.

Posted in Cloud Computing, GCP, General | Tagged , , , , , | Leave a comment

GCP IAP Desktop Error – Access Blocked: Authorization Error

Issue : Error while authenticating to IAP Desktop.

Error Message: Access to your account data is restricted by policies within your organization. Please contact the administrator of your organization for more information.

Error Code: Error 400: admin_policy _enforced

Error Screenshot :

How to Fix this ?

Pre-requisites : You should have administrative rights to Cloud Identity (Google Admin) console.

Navigate to Security Section within Cloud Identity

Access and Data Control ==> API controls

Select the Cloud Platform and check Unrestricted: Any user-approved app can access a service.

Then Click on Change.

Re-Login using IAP Desktop, issue will be fixed.

Posted in General | Tagged , , , , , | Leave a comment

Google Cloud Next – 2023 Updates

Google Cloud Next -2023 was huge success with great announcements for Google Cloud services.

Mainly on below categories

AI platforms and tools
Data analytics
Databases
Business Intelligence
Infrastructure for AI workloads
Compute and traditional enterprise workloads
Networking
Distributed workloads
Modern container-based workloads
Developer experience
Migration and Management
Security Cloud
Customer Awards
Partner Awards

All the announcement to individual product / services can be found Here.

Posted in General | Tagged , , , | Leave a comment

Free Google Cloud Training and Certificate Voucher

Google is offering a free Cloud Training and Certificate Voucher for Cloud Developer communities.

Register using : https://inthecloud.withgoogle.com/get-cloud-certified-2023/faqs.html

This is a first‑come‑first‑served, no-cost Google Cloud certification journey offer. This program will run during BST (UK/London) hours only and might require a significant time investment of approximately 9‑10 hours per week, depending on your experience.

FAQ : https://inthecloud.withgoogle.com/get-cloud-certified-2023/faqs.html

Posted in Cloud Computing, GCP | Tagged , , , | Leave a comment