fsprojects / AzureStorageTypeProvider

An F# Azure Type Provider which can be used to explore Blob, Table and Queue Azure Storage assets and easily apply CRUD operations on them.
http://fsprojects.github.io/AzureStorageTypeProvider/
The Unlicense
84 stars 34 forks source link

Fails on validating connection string because underlying library doesn't support it #117

Closed Szer closed 5 years ago

Szer commented 5 years ago

Description

Just use 2.0.0-beta with any connection string. Type providers tries to validate connection string here by checking table exists https://github.com/fsprojects/AzureStorageTypeProvider/blob/83bf546b5983d12e6b80d0297b00502a15d81e65/src/FSharp.Azure.StorageTypeProvider/Configuration.fs#L50

But fails horribly because Tables are not supported by WindowsAzure.Storage https://github.com/Azure/azure-storage-net Quote: As of 9.4.0, Tables are not supported by this library.

Repro steps

Please provide the steps required to reproduce the problem

type BlobType = AzureTypeProvider

Expected behavior

It should compile

Actual behavior

Please provide a description of the actual behavior you observe. image

isaacabraham commented 5 years ago

Oh great. A fat breaking change. There's already some work I've done to support blob only accounts so it might not be so bad but I'm wondering what the solution for tables will be going forward.

isaacabraham commented 5 years ago

Looking at this error message are you sure that's actually not the problem here - that you've created a blob only storage account? If so there's another issue to sort that out, I'll make that part of the next release.

Szer commented 5 years ago

@isaacabraham, yes, you right, it is blob-only storage account :) Anyway, beware about WindowsAzure.Storage!

isaacabraham commented 5 years ago

OK - I'm going to close this since it's a duplicate of #110 - I want to get that working next :-)

isaacabraham commented 5 years ago

@Szer there's a build here that you can try.

Szer commented 5 years ago

@isaacabraham it works! Thanks :D

isaacabraham commented 5 years ago

Excellent - thanks for confirming! It still shows the Tables and Queues properties, but they will never show anything - not ideal but it works. I'll push out a full 2.0 release this week with it in :-)