microsoftgraph / microsoftgraph/microsoft-graph-comms-samples
[PolicyRecordingBot] No such host is known
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 253
- Forks
- 275
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
Describe the issue
I follow PolicyRecordingBot tutorial to deploy and test sample. After deploy to Azure worker throw error with text
Recovering role... 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 D:\microsoft-samples1\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\AzureConfiguration.cs:line 380
Code Snippet
i understand that next one instruction cause error
string instanceHostName = DomainNameLabel + "." + instanceNumber + "." + publicFqdn;
IPAddress[] instanceAddresses = Dns.GetHostEntry(instanceHostName).AddressList;
for my case value of instanceHostName is pip.1.my.domain.cl
is it problem in code or with DNS?
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 with WorkerRole\AzureConfiguration.cs at line 380 and review the PolicyRecordingBot deployment tutorial and the construction of instanceHostName. Reproduce the Azure worker deployment, then determine whether pip.1.my.domain.cl resolves; done means the sample either resolves the configured hostname or documents the required DNS or configuration correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100