File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_datastore Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,12 @@ def from_rest_datastore_credentials(
30
30
config_class : Any = NoneCredentialConfiguration
31
31
32
32
if isinstance (rest_credentials , (models .AccountKeyDatastoreCredentials , models2024 .AccountKeyDatastoreCredentials )):
33
- config_class = AccountKeyConfiguration
33
+ # we are no more using key for key base account.
34
+ # https://github.com/Azure/azure-sdk-for-python/pull/35716
35
+ if isinstance (rest_credentials .secrets , models2024 .SasDatastoreSecrets ):
36
+ config_class = SasTokenConfiguration
37
+ else :
38
+ config_class = AccountKeyConfiguration
34
39
elif isinstance (rest_credentials , (models .SasDatastoreCredentials , models2024 .SasDatastoreCredentials )):
35
40
config_class = SasTokenConfiguration
36
41
elif isinstance (
You can’t perform that action at this time.
0 commit comments