Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM Template locks #444

Open
mattboothman opened this issue Dec 23, 2020 · 3 comments
Open

ARM Template locks #444

mattboothman opened this issue Dec 23, 2020 · 3 comments
Labels
ARM enhancement New feature or request

Comments

@mattboothman
Copy link

I'd like the ability to lock a keyvalue at creation and/or after creation.

Perhaps something like this (see .properties.locked):

{
    "type": "Microsoft.AppConfiguration/configurationStores/keyValues",
    "apiVersion": "2020-07-01-preview",
    "name": "[concat(variables('configStoreName'), '/environment:name')]",
    "dependsOn": [
        "[variables('configStoreName')]"
    ],
    "properties": {
        "value": "[parameters('environmentName')]",
        "contentType": "text/plain",
        "tags": "",
        "locked": true
    }
},

The alternative is that I'm able to apply resource locks to configuration keyvalues, but this would also be useful in addition to the above method.

{
    "type": "Microsoft.Authorization/locks",
    "apiVersion": "2016-09-01",
    "name": "environmentNameLock",
    "scope": "[resourceId('Microsoft.AppConfiguration/configurationStores/keyValues', variables('configStoreName'), 'environment:name')]",
    "dependsOn": [
        "[resourceId('Microsoft.AppConfiguration/configurationStores/keyValues', variables('configStoreName'), 'environment:name')]"
    ],
    "properties": {
        "level": "ReadOnly",
        "notes": "Config must not be modified or deleted."
    }
},
@recao
Copy link

recao commented Dec 28, 2020

Hi @mattboothman

The ability to lock KV through ARM templates is not on our roadmap at this point, since we have not received this feature request from customers yet. As we are actively working on new features, this would be put into consideration for future designs. Thanks.

@mattboothman
Copy link
Author

Hey @recao I’m a customer actively using the product, requesting the feature.

@recao
Copy link

recao commented Dec 29, 2020

@mattboothman yes, and we always try our best to fulfill every customer's request based on our development capacity, feature priority and existing roadmap.

Add @zhenlan and @drago-draganov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants