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 (#24904)

* azurerm_mssql_database - support for recovery_point_id

* Update internal/services/mssql/mssql_database_resource.go

Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com>

* add nother property

* docs

---------

Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com>
  • Loading branch information
katbyte and catriona-m committed Feb 27, 2024
1 parent 42ccf70 commit 2da5d98
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 192 deletions.
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
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

0 comments on commit 2da5d98

Please sign in to comment.