I have read this documentation from Microsoft which describes how secret volumes can be added to a container instance:
https://docs.microsoft.com/bs-latn-ba/azure///container-instances/container-instances-volume-secret
I would now like to read these secure values from my asp.net core application. How can i do that? I can't find any documentation for this anywhere.
I would ideally like to carry out this configuration in my Startup class:
something here:
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseSerilog()
.UseSetting(WebHostDefaults.ApplicationKey, typeof(Program).GetTypeInfo().Assembly.FullName); // beware of this
// shouldn't be removed otherwise site will start outputting 404.
// see: https://github.com/aspnet/Hosting/issues/903#issuecomment-269103645
}
Finally, I would like to be able to run the code locally so that i can check if it's working, before deploying the container to azure. is there a way I can mock/fake these secrets on my local installation (visual studio 2017, solution has docker support enabled, docker is running locally on my machine) do give me confidence that everything is working?
I've edited this question to make it clear that this is about secret volumes