Azure 门户中缺少 Table 存储
Missing Table storage in Azure Portal
我正在设置生产版本并因此在门户中创建所有新服务。我正在努力创建一个允许我创建 Azure tables 的存储帐户。目前我正在使用 NLOG Azure 存储,它总是在需要时创建 tables(如果我手动删除它们,重新 运行 我的应用程序,它将重新创建)。
如果我手动尝试创建 table 我会收到错误消息(请参阅下面的代码)
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(Configuration.AzureStorageConnectionString);
// Create the table client.
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
CloudTable table = tableClient.GetTableReference("TestTable");
// Create the CloudTable if it does not exist
bool test = table.CreateIfNotExists();
我可以轻松创建 blob,但无法使用 tables。我们以前的(暂存)存储帐户是在旧门户上创建的,这是否有影响?
这是我的配置:
<add key="AzureStorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=productionhalostorage;AccountKey=abc;EndpointSuffix=core.windows.net"
xdt:Transform="Replace"
xdt:Locator="Match(key)" />
忽略 xdt 我正在使用 slow cheetah 来维护我们的配置。
请检查有问题的存储帐户类型。它应该是 Standard
存储帐户而不是 Blob Storage
帐户,因为 Blob Storage
帐户不支持表。
如果账户类型为Standard
,请检查该账户的冗余类型。它不应该是 ZRS
或 Premium LRS
因为这些冗余类型也不支持表。
我正在设置生产版本并因此在门户中创建所有新服务。我正在努力创建一个允许我创建 Azure tables 的存储帐户。目前我正在使用 NLOG Azure 存储,它总是在需要时创建 tables(如果我手动删除它们,重新 运行 我的应用程序,它将重新创建)。
如果我手动尝试创建 table 我会收到错误消息(请参阅下面的代码)
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(Configuration.AzureStorageConnectionString);
// Create the table client.
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
CloudTable table = tableClient.GetTableReference("TestTable");
// Create the CloudTable if it does not exist
bool test = table.CreateIfNotExists();
我可以轻松创建 blob,但无法使用 tables。我们以前的(暂存)存储帐户是在旧门户上创建的,这是否有影响?
这是我的配置:
<add key="AzureStorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=productionhalostorage;AccountKey=abc;EndpointSuffix=core.windows.net"
xdt:Transform="Replace"
xdt:Locator="Match(key)" />
忽略 xdt 我正在使用 slow cheetah 来维护我们的配置。
请检查有问题的存储帐户类型。它应该是 Standard
存储帐户而不是 Blob Storage
帐户,因为 Blob Storage
帐户不支持表。
如果账户类型为Standard
,请检查该账户的冗余类型。它不应该是 ZRS
或 Premium LRS
因为这些冗余类型也不支持表。