Examine Azure's statistics for monitoring Blob storage.
- [Instructor] The next demo method is get service stats for secondary async. And we're going to pass into that the blob client that we created. Let's go ahead and look at the definition of that. You can see that this is an asynchronous method, so it returns a task. It's static, and it takes the blob client. To make a little bit more room, let's close down the solution explorer. And inside this method, we're going to get the secondary URI by asking the blob client for it.
And then we're going to create an instance of cloud blob client, which we'll call blob client secondary. With that, we're able to get the blob's statistics by calling blob client secondary's get service stats async method. Once we have blob stats, we can write out to the console the replication status and the replication last sync time. Let's put a break point so that we'll be able to see that data, and run the application.
Let's go back to the output. And we see that the geo-replication status is live, as we would expect. And the last time that it was synced.
- 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