I need to have a simple example of a Azure Function that have Setting that changes the behavior.
I actually needs a File and have it included in the project and deployed.
I want to have a more flixible way to add/change certificate.
I want ho upload the [login to view URL] and change the settings (and restart) from Azure Portal.
Because I have a [login to view URL] I also need a password that also is setting that I can change in Azure Portal
This project can be done in 2 ways.
* The total solution with uploadable Certificate storage and Password setting in Azre portal
* Only the password setting in Azure portal
Here is a simple example of a Azure Function
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
namespace AzureFunctionWithSettings
{
public static class SimpleFunction
{
private static readonly string ThisIsThePasswordString = "secret";
private static readonly string ThisIsTheFilename = "[login to view URL]";
[FunctionName("FunctionWithParameters")]
public static async Task<HttpResponseMessage> Run([HttpTrigger([login to view URL], "get", "post", Route = null)]HttpRequestMessage req, TraceWriter log)
{
[login to view URL]("C# HTTP trigger function processed a request.");
X509Certificate2 certificate = new X509Certificate2(ThisIsTheFilename, ThisIsThePasswordString);
return certificate == null
? [login to view URL]([login to view URL], "Please pass a name on the query string or in the request body")
: [login to view URL]([login to view URL], "Hello " + [login to view URL]);
}
}
}
Hi,
I am Shivani Mishra from India and having 10+ years of experience in .Net technology. My skills are .Net, MVC, C#, VB.Net, Azure, Dynamic CRM and many more.
Looking forward to hear from you.
Thanking you,
Shivani Mishra
Hi There
I am professional azure migration & developer . I can definitely help you with the requirements.
Please get in touch so that we can discuss the requirements more clearly & proceed with the project implementation.
Best Regards