Learn how to list the Blobs in each container.
- [Instructor] Okay, let's take off the break point and back up. And we see that we had called get service stats for secondary async, we'll back up a little further. And here is where we're working our way through the samples. The next sample that we want to take a look at lists all the containers that we have put into the storage account. Here we've passed in the blob client and the string prefix. We're going to write out list all containers in account, and then we're going to do a for each loop, let me once again close down solution explorer so you can see.
Quite a for each loop. And we're going to look at each container in the list of containers. Passing in the prefix that we were passed in and then passing in the details, which we don't want any, and we're going to display container and the container name, just that. And we'll do that for each object in the container, and so let's put a break point at the end of that. We can now run the application and it will run through the test we've seen, and it'll end at this one where we're listing all the containers in the account.
So we'll run that. And we hit our break point. Let's go back. And here you can see, let me scroll that up a little bit. Right after our geo-replication, we have list all containers in the account, and there are four containers, and their names are the prefix, which is sample, followed by a GUID, that is a global unique ID. And so each of the containers is guaranteed to have a unique name.
- 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