-
Couldn't load subscription status.
- Fork 712
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
With the changes to custom bicep resources utilizing a single keyvault in 9.2, it's become less clear to me how to create bicep resources which have secret output.
Looking at #2587 (comment) I see it seems like this may be the way to go, so I created this repository:
With this repro, it runs and works once, but subsequent runs fail, unless you clear out the deployments section of your secrets.json and restart your apphost.
I may be going about this all wrong, but the docs aren't updated so forgive me :)
Expected Behavior
There should be a straightforward/documented way to create and retrieve secrets generated in bicep
Steps To Reproduce
- Clone https://github.com/onionhammer/repro-aspire-issue/
- Add your subscription to the apphost path; cd into the directory and use
dotnet user-secrets set "Azure:SubscriptionId" "your-subscription-id" - Run the apphost with
dotnet run- should work the first time - Stop the app host, then run it again
- This time you'll see it will not be able to resolve the Translator API key
Exceptions (if any)
No response
.NET Version info
.NET SDK:
Version: 9.0.202
Commit: 3a53853c30
Workload version: 9.0.200-manifests.5c4e24dc
MSBuild version: 17.13.13+1c2026462
Anything else?
No response