-
Notifications
You must be signed in to change notification settings - Fork 647
Don't set properties on existing Azure SQL server resources #7705
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
b030fef
to
8d73431
Compare
Add a link to Azure.Provisioning issue.
|
||
/// <remarks> | ||
/// Workaround for issue using SqlServerAzureADAdministrator. | ||
/// See https://github.com/Azure/azure-sdk-for-net/issues/48364 for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @tg-msft - this is how we figured to work around this issue.
return new StringLiteralExpression("ActiveDirectory"); | ||
} | ||
|
||
protected override void DefineProvisionableProperties() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tg-msft this is the workaround, notice we don't call base
here. We just define the 4 properties we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the fix!
Hopefully we can remove the workaround once the Azure.Provisioning issue is fixed.
I think we should backport this to 9.1.
/backport to release/9.1 |
Started backporting to release/9.1: https://github.com/dotnet/aspire/actions/runs/13428002254 |
Description
Avoid setting fields that will be emitted in the
properties
of the Bicep file for Azure SQL server resources that already exist. Instead, add a SQL Admin through SqlServerAzureADAdministrator child resource.Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):