Skip to content

Conversation

@mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented Mar 28, 2024

Partially addresses #2590

This PR will automatically call AddAzureProvisioning.

This PR also improves the error message if there is a provisioning issue due to missing configuration data.

This is what you will now see if a resource fails to provision because it is missing subscription information:

image

Resources that depend on the resource via enviroment variables have also had some improvements to their error logging:

image

I haven't removed the exceptions completely on the dependent resources because there are some cases where this could obscure a real issue. So if you turn on debug level logging for DCP you can get the full exception shown (example):

image

I do not put this debug information in the dashboard (its in the console). This is because the ResourceLoggerService infrastructure doesn't really honor any config settings for controlling verbosity levels. We should probably decide what we want to do here around controlling verbosity of resource loggers.

@ghost ghost added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 28, 2024
@mitchdenny mitchdenny requested a review from davidfowl March 28, 2024 11:43
@mitchdenny mitchdenny added this to the preview 5 (Apr) milestone Mar 28, 2024
@mitchdenny mitchdenny self-assigned this Mar 28, 2024
@davidfowl davidfowl changed the title Automatically AddAzureProviisioning when Azure resource type is used. Automatically AddAzureProvisioning when Azure resource type is used. Mar 28, 2024
@davidfowl
Copy link
Member

We need AddBicep** and AddAzureConstruct to also call AddAzureProvisioning

@mitchdenny mitchdenny requested a review from davidfowl March 28, 2024 14:40
@davidfowl
Copy link
Member

/backport to release/8.0-preview5

@github-actions
Copy link
Contributor

Started backporting to release/8.0-preview5: https://github.com/dotnet/aspire/actions/runs/8471077932

@davidfowl davidfowl merged commit d59d62a into main Mar 28, 2024
@davidfowl davidfowl deleted the mitchdenny/add-provisioning-automagically branch March 28, 2024 17:23
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants