[BUG] - SqlDatabaseResource entity has NULL value for FederatedClientId in case of CMK scenario #48433
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
SQL
Library name and version
Azure.ResourceManager.Sql 1.2.1
Describe the bug
Not sure if wrong expectation from our side or just a bug. But we are trying to evaluate if a database has CMK enabled or not.
According to the field description, we thought the below will be the best field to asses this.
///
[WirePath("properties.federatedClientId")]
public Guid? FederatedClientId { get; set; }
If that is not the case, will be nice if you can let us know what is the best way to fetch this data (identify a DB is CMK or MMK)?
.GetSqlDatabases()/GetSqlDatabase() functions return SqlDatabaseResource entity with NULL value for FederatedClientId even if CMK is enabled on the database.
Missing property value for: FederatedClientId
Expected behavior
Functions return correct/expected values for property for this field when CMK is enabled on the database
Actual behavior
Null values FederatedClientId.
Reproduction Steps
Just run below on a database that has CMK enabled.
var database= server.GetSqlDatabase(databaseName);
Environment
Prod and non-prod
Library name and version
Azure.ResourceManager.Sql 1.2.1
The text was updated successfully, but these errors were encountered: