Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support credential-less fileshare datastore #36392

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/ml/azure-ai-ml/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bugs Fixed
- Workspace update no longer broken for older workspaces due to deprecated tags.
- Support credential-less fileshare datastore

## 1.18.0 (2024-07-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class AzureFileSchema(AzureStorageSchema):
[
NestedField(AccountKeySchema),
NestedField(SasTokenSchema),
],
required=True,
NestedField(NoneCredentialsSchema),
]
)

@post_load
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AzureFileDatastore(Datastore):
:type protocol: str
:param properties: The asset property dictionary.
:type properties: dict[str, str]
:param credentials: Credentials to use for Azure ML workspace to connect to the storage.
:param credentials: Credentials to use for Azure ML workspace to connect to the storage. Defaults to None.
:type credentials: Union[~azure.ai.ml.entities.AccountKeyConfiguration,
~azure.ai.ml.entities.SasTokenConfiguration]
:param kwargs: A dictionary of additional configuration parameters.
Expand All @@ -67,7 +67,7 @@ def __init__(
endpoint: str = _get_storage_endpoint_from_metadata(),
protocol: str = HTTPS,
properties: Optional[Dict] = None,
credentials: Union[AccountKeyConfiguration, SasTokenConfiguration],
credentials: Optional[Union[AccountKeyConfiguration, SasTokenConfiguration]] = None,
PratibhaShrivastav18 marked this conversation as resolved.
Show resolved Hide resolved
PratibhaShrivastav18 marked this conversation as resolved.
Show resolved Hide resolved
PratibhaShrivastav18 marked this conversation as resolved.
Show resolved Hide resolved
**kwargs: Any
):
kwargs[TYPE] = DatastoreType.AZURE_FILE
Expand Down