We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8085c6d commit a3924efCopy full SHA for a3924ef
src/WebJobs.Script/Host/ScriptHost.cs
@@ -54,7 +54,9 @@ public string InstanceId
54
{
55
if (_instanceId == null)
56
57
- _instanceId = Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID") ?? Guid.NewGuid().ToString("N");
+ _instanceId = Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID")
58
+ ?? Environment.MachineName.GetHashCode().ToString("X").PadLeft(32, '0');
59
+
60
_instanceId = _instanceId.Substring(0, 32);
61
}
62
0 commit comments