microsoftgraph / microsoftgraph/microsoft-graph-comms-samples
Policy Bot deployment Error in Azure cloud services(extended Support) from Visual studio
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 253
- Forks
- 275
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in WorkerRole/AzureConfiguration.cs at GetInstancePublicIpAddress, Initialize, and the constructor lines shown in the stack trace. Review the supplied ServiceConfiguration settings and reproduce the Policy Bot deployment from Visual Studio to trace why the configured host cannot be resolved. Done means the Worker role starts without the “No such host is known” exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100