question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Additional storage account properties

See original GitHub issue

It would be great to have some more common attributes on storage accounts, such as, ‘tier’, ‘kind’, and ‘properties’. Also Management polices for blob lifecycle management would be great (moved to #312)

// Create a storage account with a container
let myStorageAccount = storageAccount {
    name storageName
    sku Storage.Premium_LRS
    // tier Premium
    // kind "BlockBlobStorage"
    //   "properties": {
    //     "supportsHttpsTrafficOnly": true,
    //     "accessTier": "Hot"
    //   },
    // managementPolicies
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
isaacabrahamcommented, Oct 25, 2020

@BrianVallelunga @onionhammer @tehmufifnman OK. So having read through the docs, this is what I see the reality of the situation in terms of relationship between SKU and Kind:

type Sku = Standard_LRS | Standard_GRS | Standard_RAGRS | Standard_ZRS | Standard_GZRS | Standard_RAGZRS | Premium_LRS | Premium_ZRS
type BlobStorageSku = Standard_LRS | Standard_GRS | Standard_RAGRS
type StorageAccountKind =
    | StorageV1 of Sku
    | StorageV2 of Sku
    | BlobStorage of BlobStorageSku
    | FileStorage
    | BlockBlobStorage

FileStorage and BlockBlobStorage don’t need any options because they only support Premium_LRS anyway, so when we emit to ARM we can hard-code that into the emitter.

Does this all make sure? If so, I can push through a beta release next week for you to test out.

The main Storage Account builder won’t change - we’ll keep that “locked” to StorageV2 - but you’ll be able to manually create StorageV1 resources etc. as needed.

For VMs and Functions, thinking about this, I don’t really want to change that behaviour now as this would be a breaking change at the ARM level (which I’m concerned about) - but we could potentially add that as an option in the future (or in the next major release change it up).

1reaction
onionhammercommented, Sep 27, 2020

Sounds great as long as I can specify kind of “BlockBlobStorage” and tier of “Premium”!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get storage account configuration information - Azure ...
Navigate to your storage account in the Azure portal. · Locate these properties on the Overview page, in the Essentials section. Screenshot ...
Read more >
Storage Accounts - Get Properties - REST API (Azure ...
Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status.
Read more >
Azure Storage Account and its Complete Overview
In a nutshell, it covers storage services, comparison on the core storage services, properties and metrics of Storage Accounts, tools available to manage...
Read more >
Change Azure Blob storage account settings
Once your Azure Blob Storage working environment is available in the Canvas, you can change some storage account properties directly from ...
Read more >
Azure Blob Storage properties - Cloud
Enter the name of the storage account you need to access. The storage account name can be found in the Storage accounts dashboard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found