implementing Azure Spring Cloud Configuration and Service Discovery for Microservices
I'm trying to figure out I'm currently working on a microservices architecture using Azure Spring Cloud, but I'm running into issues with service discovery and configuration management. I've set up my services to communicate using Spring Cloud Netflix Eureka for service discovery, but I'm seeing `java.lang.IllegalStateException: No instances available for <service-name>` in my logs when trying to call one service from another. I've configured Eureka in my `application.yml` as follows: ```yaml spring: application: name: service-a cloud: service-registry: auto-registration: enabled: true discovery: service-url: defaultZone: http://<eureka-server-url>/eureka/ ``` And for the calling service (service-b), the configuration looks like this: ```yaml spring: application: name: service-b cloud: loadbalancer: retry: enabled: true ``` I made sure that both services are running and I can access them individually, but when service-b attempts to call service-a using the `@LoadBalanced RestTemplate`, it canβt find the instance. I've checked the Eureka dashboard, and service-a appears as registered, but it seems like service-b isn't able to retrieve any instances. I've also tried increasing the registration timeout and ensuring that the application instances are healthy. Additionally, Iβve verified that the Eureka server is accessible from both services. However, I still receive the same behavior. Is there a step I'm missing in the setup or perhaps a configuration that needs to be adjusted? Any advice on troubleshooting this would be greatly appreciated! My team is using Java for this REST API. Any ideas how to fix this?