Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Azure storage does not support changing the "accessTier" or V2 #222

Open
gavinvandermerwe opened this issue Sep 24, 2020 · 0 comments
Open

Comments

@gavinvandermerwe
Copy link

gavinvandermerwe commented Sep 24, 2020

Hi

We are using this tile to provision azure storage blobs. The first thing we noticed was that we were not getting next gen V2 storage. We also dug a little deeper to see why.

It would seem that we are using the v2016-01-01 version of the storage API.

Now what is intersting about this is that the Microsoft documentation would lead you to believe that for Standard_LRS we should be able to have:

  • Storage
  • BlobStorage
  • StorageV2

Please see link here: https://docs.microsoft.com/en-us/rest/api/storagerp/srp_sku_types

However StorageV2 never turns up when provisioning through this tile and here is the code:

  • Handlers.provision = function(params, next) {
    log.debug('Provision params: %j', params);
    var reqParams = params.parameters || {};
    var reqParamsKey = ['resourceGroup', 'storageAccountName', 'location', 'accountType'];
    var errMsg = common.verifyParameters(reqParams, reqParamsKey);
    if (errMsg) {
    return common.handleServiceErrorEx(HttpStatus.BAD_REQUEST, errMsg, next);
    }
    var resourceGroupName = reqParams[reqParamsKey[0]];
    var storageAccountName = reqParams[reqParamsKey[1]];
    var groupParameters = {
    location: reqParams[reqParamsKey[2]]
    };
    var accountParameters = reqParams.parameters || {
    location: reqParams[reqParamsKey[2]],
    kind: 'Storage',
    sku: {
    name: reqParams[reqParamsKey[3]],
    }
    };

Furthermore we would also like to change the access tier. It should be possible.

Could we please consider upgrading to the the latest storage API?

Many Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant