MaterializationStore Class

Materialization Store

Inheritance
builtins.object
MaterializationStore

Constructor

MaterializationStore(type: str, target: str)

Parameters

Name Description
type
Required
str

The type of the materialization store.

target
Required
str

The ARM ID of the materialization store target.

Examples

Configuring a Materialization Store


   from azure.ai.ml.entities import ManagedIdentityConfiguration, MaterializationStore

   gen2_container_arm_id = "/subscriptions/{sub_id}/resourceGroups/{rg}/providers/Microsoft.Storage/storageAccounts/{account}/blobServices/default/containers/{container}".format(
       sub_id=subscription_id,
       rg=resource_group,
       account=storage_account_name,
       container=storage_file_system_name,
   )

   offline_store = MaterializationStore(
       type="azure_data_lake_gen2",
       target=gen2_container_arm_id,
   )

   # Must define materialization identity when defining offline/online store.
   fs = FeatureStore(
       name=featurestore_name,
       offline_store=offline_store,
       materialization_identity=ManagedIdentityConfiguration(
           client_id="<YOUR-UAI-CLIENT-ID>",
           resource_id="<YOUR-UAI-RESOURCE-ID>",
           principal_id="<YOUR-UAI-PRINCIPAL-ID>",
       ),
   )

Attributes

target

Get target value

Returns

Type Description
str

returns the ID of the target