Microsoft.Storage.StorageAccountSelector UI element
A control for selecting a new or existing storage account.
UI sample
The control shows the default value.

The control enables the user to create a new storage account or select an existing storage account.

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
}
Sample output
{
"name": "storageaccount01",
"resourceGroup": "rg01",
"type": "Premium_LRS",
"newOrExisting": "new"
}
Remarks
- If specified,
defaultValue.nameis automatically validated for uniqueness. If the storage account name isn't unique, the user must specify a different name or choose an existing storage account. - The default value for
defaultValue.typeis Premium_LRS. - Any type not specified in
constraints.allowedTypesis hidden, and any type not specified inconstraints.excludedTypesis shown.constraints.allowedTypesandconstraints.excludedTypesare both optional, but can't be used simultaneously. - If
options.hideExistingis true, the user can't choose an existing storage account. The default value is false.
Next steps
- For an introduction to creating UI definitions, see Getting started with CreateUiDefinition.
- For a description of common properties in UI elements, see CreateUiDefinition elements.
Tilbakemeldinger
Send inn og vis tilbakemelding for