Azure / azure-libraries-for-java

Azure Management Libraries for Java
https://docs.microsoft.com/en-us/java/azure/
MIT License
94 stars 98 forks source link

SqlDatabase.inner().getTags() isn't populated when loading databases from a SqlServer #1425

Closed anuj-soni1989 closed 2 years ago

anuj-soni1989 commented 2 years ago

Trying to fetch tags from SqlDatabase object, tried the Async methods as well. `List databasesList = sqlServer.databases().list();

                List<AzureSQLServerDataStream.SqlDatabase> sqlDatabases = Lists.newArrayList();

                databasesList.stream().forEach(sqlDatabase -> {
                sqlDatabase.inner().getTags()

}` when I do a SqlDatabase db = sqlDatabase.refresh(); , the db object then has the tags, but we can't do this for each SqlDatabase object as we can have 100s of databases, can this be added to the databases.list() or listAsync() call?

Tried this on version 1.31.1 and 1.41.3

weidongxu-microsoft commented 2 years ago

@anuj-soni1989

This lib is deprecated. Would you try migrate to https://aka.ms/azsdk/java/mgmt ? It contains a migration guide.

anuj-soni1989 commented 2 years ago

Thank you! I'll check it out.