File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
cli/azd/pkg/infra/provisioning/bicep Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -829,8 +829,10 @@ func (p *BicepProvider) Destroy(
829829 return nil , fmt .Errorf ("mapping resources to resource groups: %w" , err )
830830 }
831831
832- // If no resources found, we still need to void the deployment state
833- // This can happen when resources have been manually deleted
832+ // If no resources found, we still need to void the deployment state.
833+ // This can happen when resources have been manually deleted before running azd down.
834+ // Voiding the state ensures that subsequent azd provision commands work correctly
835+ // by creating a new empty deployment that becomes the last successful deployment.
834836 if len (groupedResources ) == 0 {
835837 p .console .StopSpinner (ctx , "" , input .StepDone )
836838 // Call deployment.Delete to void the state even though there are no resources to delete
You can’t perform that action at this time.
0 commit comments