Skip to content

Commit

Permalink
azurerm_mssql_database - support for the recovery_point_id & restore_…
Browse files Browse the repository at this point in the history
…long_term_retention_backup_id property (hashicorp#24904)

* azurerm_mssql_database - support for recovery_point_id

* Update internal/services/mssql/mssql_database_resource.go

Co-authored-by: catriona-m <[email protected]>

* add nother property

* docs

---------

Co-authored-by: catriona-m <[email protected]>
  • Loading branch information
2 people authored and rizkybiz committed Feb 29, 2024
1 parent 5fd579c commit 6d6ce33
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema
Required: true,
Type: pluginsdk.TypeString,
},

"resource_group_name": commonschema.ResourceGroupName(),

"hub_profile": {
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
Expand All @@ -72,6 +74,7 @@ func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema
Optional: true,
Type: pluginsdk.TypeList,
},

"tags": commonschema.Tags(),
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ func resourceLogAnalyticsWorkspaceDelete(d *pluginsdk.ResourceData, meta interfa
return err
}

PermanentlyDeleteOnDestroy := meta.(*clients.Client).Features.LogAnalyticsWorkspace.PermanentlyDeleteOnDestroy
err = client.DeleteThenPoll(ctx, sharedKeyId, sharedKeyWorkspaces.DeleteOperationOptions{Force: utils.Bool(PermanentlyDeleteOnDestroy)})
permanentlyDeleteOnDestroy := meta.(*clients.Client).Features.LogAnalyticsWorkspace.PermanentlyDeleteOnDestroy
err = client.DeleteThenPoll(ctx, sharedKeyId, sharedKeyWorkspaces.DeleteOperationOptions{Force: utils.Bool(permanentlyDeleteOnDestroy)})
if err != nil {
return fmt.Errorf("issuing AzureRM delete request for Log Analytics Workspaces '%s': %+v", id.WorkspaceName, err)
}
Expand Down
Loading

0 comments on commit 6d6ce33

Please sign in to comment.