Skip to content

Container Function

Brad Nissen edited this page Feb 24, 2019 · 1 revision

Sprint 2 - week 1:

I spent a few hours learning a bit more about working with containers in Azure. I had some trouble with understanding exactly what I was supposed to be researching this week. I learned about Triggers and Bindings in the functions, and how to set up an Azure function to connect to an existing storage account.

Spent about 3-4 hours reading the documentation and trying to use Azure CLI.


Sprint 2 - week 2:

After my questions were answered from Tuesday's class, I was able to understand more about my task. Mikal helped set up a project in Visual Studio. I then learned the more about creating functions from scratch (in Visual Studio) instead of using the portal in Azure. I created a storage account using Azure CLI (which was really easy). I then found an example from Azure documentation on how to build a blob container in blob storage.

Security error right now is that my environment variable could not be set up in my function.

got the connection string to my project and put into the .bash_profile
(This was not working properly and the problem should be solved when we have the key vault set up.) After the account has been initialized with the function, you create a blob client attached to the storage account and give it a name (which is formatted simply to comply with naming conventions) and it building the blob container in the blob storage. You then can apply rules (i.e. private or public). I have if set up locally running to my personal account on Azure. I got access to the class account but cannot create any resources to test it out.

Spent about 6 hours this week on my task

[continued]

I was able to get the function to read from the key vault in Azure making it more secure in version control. It took me a while to figure out how to update the function in Azure from my local machine. I had to right click on my project folder -> click "Publish" -> click "Publish to CreateContainer - Web Deploy - MSDeploy"

Link to function: https://createcontainer.azurewebsites.net/api/CreateContainer?name=

Link to storage account: https://portal.azure.com/#@toddysmlive.onmicrosoft.com/resource/.....

Fix bug: Changed Console.Write to Logs.

Time Estimate: 8-10 hours

Total time spent: 16 hours

Clone this wiki locally