Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment: local vs azure with managed services #1680

Closed
BoBiene opened this issue Jan 17, 2024 · 2 comments
Closed

Deployment: local vs azure with managed services #1680

BoBiene opened this issue Jan 17, 2024 · 2 comments
Assignees
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication area-deployment azure Issues associated specifically with scenarios tied to using Azure

Comments

@BoBiene
Copy link

BoBiene commented Jan 17, 2024

Hi there,

I would like to use .NET Aspire for my project and I'm trying to accomplish the following:

Define all needed resources in AppHost like

  • mongodb
  • influxdb container
  • etc.

In local dev environment on debugging it works fine containers are running and the required connection strings are injected to my services.

How can I now do the deployment to azure with azd and point to existing managed services?

  • For the mongdb I want to use mongodb atlas and point to a connectionstring in a keyvault.
  • When i run azd azd provision it creates a mongodb container in the azure environment
    • i have tried to use conditions in the AppHost like if (builder.Environment.IsDevelopment()) but it does not work.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Jan 17, 2024
@davidfowl
Copy link
Member

and doesn’t support this yet but we’re working through a design for this.

cc @mitchdenny @ellismg

@davidfowl davidfowl added area-deployment azure Issues associated specifically with scenarios tied to using Azure and removed untriaged labels Jan 19, 2024
@mitchdenny mitchdenny self-assigned this Jan 22, 2024
@mitchdenny mitchdenny added this to the preview 4 (Mar) milestone Jan 22, 2024
@davidfowl
Copy link
Member

Closing as dupe of #1757

@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 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 area-deployment azure Issues associated specifically with scenarios tied to using Azure
Projects
None yet
Development

No branches or pull requests

4 participants