Hello Martin,
Are the VM role and the web role in the same azure service project or not? Different suggestion will be provided depending on this.
Basically, if you expose the SQL Service service via input endpoint, you may try connnecting to it using Microsoft SQL Server Management Studio from your machine. The server name is the same as the DNS name of your azure service project. And the definition
of the endpoint element will be:
<InputEndpoint name="SqlServerPort" protocol="tcp" port="1433" localPort="1433" />
If you expose it via internal endpoint, you may need to enable remote desktop for the web role and install Microsft SQL Server Management in a service instance to have a check. Since the IP addresses for internal conmmunication are dynamic, we need to use
the following code to get the IP address of the VM role.
RoleEnvironment.Roles["RoleName"].Instances[0].InstanceEndpoints["EnpointName"].IPEndpoint.Address.ToString();
If you need further assistance, please let me know.
Thanks,
Wengchao Zeng
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact
msdnmg@microsoft.com.
Microsoft One Code Framework