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
ADX has additional authentication method, On-Behalf-Of, which is not supported by Grafana Azure SDK and could be defined locally in the ADX plugin code:
Credentials should be parsed from JsonData during datasource initialization and passed over further as an abstract AzureCredentials object (see Azure Monitor example here).
NewServiceCredentialshere doesn't need to receive raw models.DatasourceSettings as an input (at least not for credentials) but a AzureCredentials object.
The ADX plugin has been using own schema for storage of credentials in JsonData which requires custom parser. New implementation should first try to read credentials in the common format using standard parser azcredentials.FromDatasourceData and if credentials not found using this parser then fallback to a legacy parser and read them in legacy format.
This would allow to migrate ADX datasource into the new format of credentials in JsonData while preserving compatibility with existing format.
The text was updated successfully, but these errors were encountered:
Grafana Azure SDK provides hierarchy of domain entities that describe Azure credentials:
ADX has additional authentication method, On-Behalf-Of, which is not supported by Grafana Azure SDK and could be defined locally in the ADX plugin code:
Credentials should be parsed from
JsonData
during datasource initialization and passed over further as an abstractAzureCredentials
object (see Azure Monitor example here).NewServiceCredentials
here doesn't need to receive rawmodels.DatasourceSettings
as an input (at least not for credentials) but aAzureCredentials
object.The ADX plugin has been using own schema for storage of credentials in
JsonData
which requires custom parser. New implementation should first try to read credentials in the common format using standard parser azcredentials.FromDatasourceData and if credentials not found using this parser then fallback to a legacy parser and read them in legacy format.This would allow to migrate ADX datasource into the new format of credentials in
JsonData
while preserving compatibility with existing format.The text was updated successfully, but these errors were encountered: