Skip to content

Commit 532bcad

Browse files
committed
Requested updates to cover CLI-related content . . .
1 parent 418e65a commit 532bcad

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

articles/machine-learning/reference-yaml-feature-store.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: reference
99
author: fbsolo-ms1
1010
ms.author: franksolomon
1111
ms.reviewer: qiax
12-
ms.date: 05/23/2023
12+
ms.date: 09/12/2024
1313
ms.custom: cliv2, build-2023
1414
---
1515

@@ -21,7 +21,6 @@ ms.custom: cliv2, build-2023
2121

2222
## YAML syntax
2323

24-
2524
| Key | Type | Description | Allowed values | Default value |
2625
|--|--|--|--|--|
2726
| $schema | string | The YAML schema. If you use the Azure Machine Learning VS Code extension to author the YAML file, including $schema at the top of your file enables you to invoke schema and resource completions. | | |
@@ -82,6 +81,37 @@ tags:
8281
foo: bar
8382
```
8483
84+
## Configure the online store in the CLI with YAML
85+
86+
```yaml
87+
# online_store:
88+
89+
target: /subscriptions/{sub-id}/resourceGroups/{rg}/XXX
90+
type: redis
91+
```
92+
93+
## Configure the online store in the CLI with Python
94+
95+
```python
96+
redis_arm_id = f"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{redis_name}"
97+
online_store = MaterializationStore(type="redis", target=redis_arm_id)
98+
99+
fs = FeatureStore(
100+
name=featurestore_name,
101+
location=location,
102+
online_store=online_store,
103+
)
104+
105+
# wait for feature store creation
106+
fs_poller = ml_client.feature_stores.begin_create(fs)
107+
108+
# move the feature store to a YAML file
109+
110+
yaml_path = root_dir + "/featurestore/featurestore_with_online.yaml"
111+
fs.dump(yaml_path)
112+
113+
```
114+
85115
## Next steps
86116

87117
- [Install and use the CLI (v2)](how-to-configure-cli.md)

0 commit comments

Comments
 (0)