You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:::image type="content" source="./media/managed-application-elements/microsoft-storage-storageaccountselector.png" alt-text="Screenshot of the storage account selector element that shows the default value for a new storage account.":::
20
21
21
-
The control enables the user to create a new storage account or select an existing storage account.
22
+
The `StorageAccountSelector`control allows you to create a new storage account or select an existing storage account.
:::image type="content" source="./media/managed-application-elements/microsoft-storage-storageaccountselector-new.png" alt-text="Screenshot that shows the storage account selector options to create a new storage account.":::
@@ -50,19 +51,120 @@ The control enables the user to create a new storage account or select an existi
50
51
```json
51
52
{
52
53
"name": "storageaccount01",
53
-
"resourceGroup": "rg01",
54
-
"type": "Premium_LRS",
55
-
"newOrExisting": "new"
54
+
"resourceGroup": "demoRG",
55
+
"type": "Standard_LRS",
56
+
"newOrExisting": "new",
57
+
"kind": "StorageV2"
56
58
}
57
59
```
58
60
59
61
## Remarks
60
62
61
-
-If specified, `defaultValue.name` is 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.
62
-
- The default value for `defaultValue.type` is **Premium_LRS**.
63
+
-The `defaultValue.name` is required and the value is 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.
64
+
- The default value for `defaultValue.type` is **Premium_LRS**. You can set any storage account type as the default value. For example, _Standard_LRS_ or _Standard_GRS_.
63
65
- 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 can't be used simultaneously.
64
-
- If `options.hideExisting` is **true**, the user can't choose an existing storage account. The default value is **false**.
66
+
- If `options.hideExisting` is **true**, the user can't choose an existing storage account. The default value is **false**. The control only shows storage accounts as _existing_ if they are in same resource group and region as the selections made on the **Basics** tab.
67
+
- The `kind` property displays the value if a new storage account was created, or an existing storage account's value.
68
+
69
+
## Example
70
+
71
+
The default values for the storage account name and type are examples. You can set your own default values for your environment.
72
+
73
+
In the `outputs` section, the `storageSelector` output includes all the values for a storage account. The `storageKind` and `storageName` are examples of how to output specific values.
* For an introduction to creating UI definitions, see [Getting started with CreateUiDefinition](create-uidefinition-overview.md).
68
-
* For a description of common properties in UI elements, see[CreateUiDefinition elements](create-uidefinition-elements.md).
169
+
- For an introduction to creating UI definitions, go to [CreateUiDefinition.json for Azure managed application's create experience](create-uidefinition-overview.md).
170
+
- For a description of common properties in UI elements, go to[CreateUiDefinition elements](create-uidefinition-elements.md).
0 commit comments