Skip to content

Blueprint endpoint registration fails #319

@raghava-reddy-ifs

Description

@raghava-reddy-ifs

Description

Once after initializing the configuration for a365 when I run
a365 setup all

The blueprint app gets created fine, however when it tries registering endpoint if fails with the following error

Making request to create endpoint (Location: eastus).
ERROR: Failed to call create endpoint. Status: BadRequest
ERROR: Error response: {"error":"Invalid roles","message":"User does not have a required role"}
ERROR: To resolve this issue:
ERROR: 1. Check if endpoint exists: Review error details above
ERROR: 2. Delete conflicting endpoint: a365 cleanup blueprint --endpoint-only
ERROR: 3. Try registration again: a365 setup blueprint --endpoint-only
ERROR: Failed to register blueprint messaging endpoint
WARNING: Endpoint registration failed: [SETUP_VALIDATION_FAILED] Blueprint messaging endpoint registration failed
WARNING: Setup will continue to configure Bot API permissions
WARNING: To resolve endpoint registration issues:
WARNING: 1. Delete existing endpoint: a365 cleanup blueprint --endpoint-only
WARNING: 2. Register endpoint again: a365 setup blueprint --endpoint-only
WARNING: Or rerun full setup: a365 setup blueprint

If I try to delete endpoint using the command a365 cleanup blueprint --endpoint-only

It fails with the following response

Making request to delete endpoint (Location: eastus).
Delete request payload:
AzureBotServiceInstanceName: desired-ready-rat-ngrok-free-app-b7b6125a
AppId: b7b6125a-3e65-4f4f-80ef-dd9504edb864
TenantId: 68767578-3e26-446e-b414-a7f0248c887f
Location: eastus
Environment: prd
ERROR: Failed to delete bot endpoint. Status: BadRequest
ERROR: Invalid roles
WARNING: Failed to delete messaging endpoint

Expected behavior

No response

SDK Version

1.1.109-preview+4d2fda154d

Language/Runtime

.NET 10.0!

OS

Windows 11

How to Reproduce

after initializing the project using a365 config init setup the project a365 setup all

Output

No response

Screenshots

No response

Code of Conduct

Metadata

Metadata

Assignees

Labels

P2High prioritybugSomething isn't workingescalatedIssue has breached SLA and been escalated

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions