Learn how to create a storage account in the Visual Studio application.
- [Narrator] With that, we can close NuGet, and our application is ready for us to examine. The sample application turns out to be somewhat complex, with quite a bit going on to illustrate all of the aspects of blog storage. Rather than walking through it line by line, we're going to go through it logically. And that means that we'll do some searching for various parts of the program, and put some break points to see what it's doing.
This sample illustrates all of it's action through a console window. So, we'll use that to see how it's progressing. The first thing that we want to do is see where the program is going to get the Storage Connection String, so that it can create the storage account. To do that, let's search for CloudStorageAccount.Parse Remember to change the drop down here from Current Document to Entire Solution, and search.
And, sure enough it comes up. We can close the search window, and we can take a look at how the storage account is created within the application. Let's bring this down, and so we see, that to create the storage account, we use the CloudStorageAccount object, and we use it's static parse method. We pass into it the result of calling CloudConfigurationManager and it's static method GetSetting And the setting that we look for is the StorageConnectionString If we skip over to AppConfig, we see that StorageConnectionString, and that's exactly what we were working on earlier, where we set up the value, the account name, and the key.
By getting the setting for that and parsing it out, we can create our StorageAccount, which you will remember is the starting point, it's what holds the containers.
- Creating an MVC web app
- Publishing an MVC app to Azure
- Creating a SQL database on Azure
- Enabling migrations
- Updating an Azure database
- Changing the schema
- Exploring various types of Blob storage
- Creating Blob storage accounts in Azure
- Examining Azure statistics for monitoring Blob storage