查看代码,您将执行以下操作:
string msg = "Container Name: " + receivedMessage.GetBody<String>();
然后你做了以下事情:
imagesContainer = blobClient.GetContainerReference(msg); // Create the container if it doesn't already exist. imagesContainer.CreateIfNotExists();
所以基本上你要创建一个以其开头的容器名称 Container Name 这是容器名称的无效值。这就是你收到错误的原因。
Container Name
有关blob容器的有效命名约定,请参阅此链接: https://msdn.microsoft.com/en-us/library/azure/dd135715.aspx 。