Azure / Azure/bicep

Add General Setting for Automatically Restoring Soft-Deleted Resources in Bicep

Open
#10,655 1 comment 3 reactions 1 assignee Claimed by @stephaniezyen View on GitHub
enhancement revisit
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

Allow Bicep to have a general setting to automatically restore soft-deleted resources. Currently, when deleting and recreating Azure Key Vault resources using Bicep, users need to specifically set the "createMode" to "restore" in order for the Key Vault to be restored from a soft-deleted state.

Microsoft.CognitiveServices resources also have this issue. However, the way to address this is to set `properties.restore` to `true`.

It would be a valuable feature to have a general flag/setting/parameter in Bicep/ARM that allows automatic restoration of soft-deleted resources across Azure with a single flag set on such a resource, instead of having to flip between `creationMode: 'default'`, `creationMode: 'restore'`, and `creationMode: 'default'`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.