in code/KustoCopyConsole/JobParameter/MainJobParameterization.cs [142:164]
private void ValidateStagingUri(string uriText)
{
if (!Uri.TryCreate(uriText, UriKind.Absolute, out var uri))
{
throw new CopyException($"Not a valid staging URI: '{uri}'", false);
}
else
{
if (!string.IsNullOrWhiteSpace(uri.Query))
{
throw new CopyException(
$"{nameof(StagingStorageDirectories)} can't contain query string: '{uri}'",
false);
}
if (uri.Segments.Length < 2)
{
throw new CopyException(
$"{nameof(StagingStorageDirectories)} should point at " +
$"least to a container: '{uri}'",
false);
}
}
}