Azure / Azure/azure-dev

[Issue] azd down does not delete the app registration defined using the Bicep Graph provider

Open
#4,724 7 comments 0 reactions 0 assignees View on GitHub
area/bicep area/core-cli bug customer-reported needs-team-attention
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

- [x] Make sure you've installed the latest version using [instructions in the wiki](../wiki/install)

**Output from `azd version`**
azd version 1.11.1 (commit ae08ceba17c7078c547df9ee5f97e9e7ceb2fe53)
Set env var AZD_BICEP_TOOL_PATH to point to:
Bicep CLI version 0.32.4 (b326faa456)

**Describe the bug**
I use the resource [`Microsoft.Graph/applications`](https://learn.microsoft.com/en-us/graph/templates/reference/applications?view=graph-bicep-1.0) to define an app registration in the Bicep template.
I noticed multiple issues that may have a common cause, here I focus on what I think is the most relevant one:
`azd down` does not delete the app registration created when running `azd provision`

Reason for this scenario: I want to create an Azure function app, configured to require Entra ID authentication - https://github.com/Yvand/azd-function-spfx-custom-api

**To Reproduce**
Repo https://github.com/Yvand/azd-repro-bicepexp is a minimal azd project to illustrate the issue:

```shell
azd init Yvand/azd-repro-bicepexp
azd provision
azd down
```

**Expected behavior**
The app registration is deleted when running `azd down`

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.