microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
207 stars 225 forks source link

Policy Bot deployment Error in Azure cloud services(extended Support) from Visual studio #561

Open AjayDevulapalli opened 2 years ago

AjayDevulapalli commented 2 years ago

Deployment of Policy Bot sample is failing at Worker role throwing error: No such host is known

Unhandled Exception: No such host is known at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostEntry(String hostNameOrAddress) at Sample.PolicyRecordingBot.WorkerRole.AzureConfiguration.GetInstancePublicIpAddress(String publicFqdn) in ./Botcodeupdated\microsoft-graph\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\AzureConfiguration.cs:line 381 at Sample.PolicyRecordingBot.WorkerRole.AzureConfiguration.Initialize() in ./Botcodeupdated\microsoft-graph\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\AzureConfiguration.cs:line 230 at Sample.PolicyRecordingBot.WorkerRole.AzureConfiguration..ctor(IGraphLogger logger) in ./\Botcodeupdated\microsoft-graph\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\AzureConfiguration.cs:line 118 at Sample.PolicyRecordingBot.WorkerRole.WorkerRole.OnStart() in ./\Botcodeupdated\microsoft-graph\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\WorkerRole.cs:line 95 at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.

Below is the Cloud.config file settings.

A Wild card certificate is created and pointed tp the DNS name with a custom CName value xyz.domin.com and pointed to the default Azure cloud DNS name xyz..westeurope.cloudapp.azure.com config file.txt

<?xml version="1.0" encoding="utf-8"?>

1fabi0 commented 2 years ago

The Policy Recording Bot Sample was designed for Azure Cloud Service (classic) not Azure Cloud Service (extended Support)

omarEmocional commented 1 year ago

Hi!

tsubasaxZZZ commented 1 year ago

@1fabi0 Could you tell me if you have any plans to support Cloud Service(extended support) or VMSS?

1fabi0 commented 1 year ago

I think it is possible vmss and cloud service... I'm not a Microsoft employee neither I am a user of the two services... I use AKS which then internally uses vmss for the nodes... But all you need to be able to, is to route a tcp connection to the instance that is running a bot and http requests.

ajayraaviv commented 1 year ago

I received the same error. The suggestion from this issue helped me #477