Skip to content

ERROR: deployment failed: PrincipalNotFound: Principal does not exist in the directory  #98

@vykhand

Description

@vykhand

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Latest MacOS, following the README

  1. checked out repo
  2. Installed azd; ran azd login
  3. running azd up
  4. Getting multiple errors like this:

ERROR: deployment failed: error deploying infrastructure: failed deploying: deploying to subscription:

Deployment Error Details:
PrincipalNotFound: Principal does not exist in the directory . Check that you have the correct principal ID. If you are creating this principal and then immediately assigning a role, this error might be related to a replication delay. In this case, set the role assignment principalType property to a value, such as ServicePrincipal, User, or Group. See https://aka.ms/docs-principaltype

  1. moreover, seems like the azd down command (or manually wiping the RG) does not do the proper clean up, as after the azd up the deployment complains about many conflicts, in particular for form recognizer and openai

Any log messages given by the failure

Expected/desired behavior

Is it a bug or am I missing a set up step?

OS and Version?

MacOS Ventura 13.3

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions