Skip to content

Commit

Permalink
Add default resource state for SqlVulnerabilityAssessmentsSetting
Browse files Browse the repository at this point in the history
- Resource cannot be deleted or created as it has the same lifecycle as the SQL Server resource.
- Set the default state back to what is observed when the resource is first created.
  • Loading branch information
JasonWhall authored and thomas11 committed Feb 10, 2025
1 parent c7c1d06 commit 76230fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/pkg/openapi/defaults/defaultResourcesState.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ var defaultResourcesStateRaw = map[string]map[string]interface{}{
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/scm": {
"allow": true,
},
// https://github.com/pulumi/pulumi-azure-native/issues/3934
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}": {
"state": "Disabled",
},
}

var skipDeleteResources = map[string]bool{
Expand Down

0 comments on commit 76230fd

Please sign in to comment.