Microsoft.Storage.StorageAccountSelector UI element

A control for selecting a new or existing storage account. You use this element when creating an Azure Managed Application.

UI sample

Microsoft.Storage.StorageAccountSelector

Schema

{
  "name": "element1",
  "type": "Microsoft.Storage.StorageAccountSelector",
  "label": "Storage account",
  "toolTip": "",
  "defaultValue": {
    "name": "storageaccount01",
    "type": "Premium_LRS"
  },
  "constraints": {
    "allowedTypes": [],
    "excludedTypes": []
  },
  "options": {
    "hideExisting": false
  },
  "visible": true
}

Remarks

  • If specified, defaultValue.name is automatically validated for uniqueness. If the storage account name is not unique, the user must specify a different name or choose an existing storage account.
  • The default value for defaultValue.type is Premium_LRS.
  • Any type not specified in constraints.allowedTypes is hidden, and any type not specified in constraints.excludedTypes is shown. constraints.allowedTypes and constraints.excludedTypes are both optional, but cannot be used simultaneously.
  • If options.hideExisting is true, the user can't choose an existing storage account. The default value is false.

Sample output

{
  "name": "storageaccount01",
  "resourceGroup": "rg01",
  "type": "Premium_LRS",
  "newOrExisting": "new"
}

Next steps