Azure Storage Account Contd
Replicating Storage Accounts
- Object Replications allows us to sync the blobs accross storage accounts in the same or different accounts
- Lets setup replication
- The data will be copied when the objects inside the container matches the rules.
- When will the execution happen?
- Execution happens asynchronously, whenever a change happens in storage account, the destination will be updated in few seconds to minutes depending on the sizes of data
Redundancy Levels
- By default in the case of GRS a region will be chosen by Azure
- Changing the Redundancy of the complete account can be done over here
- Exercise: Is it possible to change the Region shown in Redundancy Levels
Content Delivery Networks and storage account as Website
Lab setup for CDN Solution
- Ensure you have 4 videos of size atleast > 30 MB.
- rename the files as one.mp4, two.mp4, three.mp4, four.mp4
- Create a html page
index.html
with following content
<html>
<head>
<style>
@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700,700i&display=swap");
body {
padding: 2em;
font-family: Raleway, sans-serif;
font-size: 1.2em;
}
h1 {
font-size: 3.6em;
margin-bottom: 0.5em;
}
h2 {
font-size: 2.4em;
margin-bottom: 0.5em;
}
p {
margin: 1em 0;
line-height: 1.25;
}
</style>
</head>
<body>
<h1>Video Sample Page</h1>
<p>This is the video we will work with. It uses a movie from the Blender Foundation (thanks :) )</p>
<div id="container">
<video id='video' controls="controls" width="600">
<source id='mp4' src="one.mp4" type='video/mp4' />
</video>
</div> <!-- End Container -->
<br/>
<div id="container">
<video id='video' controls="controls" width="600">
<source id='mp4' src="two.mp4" type='video/mp4' />
</video>
</div>
<br/>
<div id="container">
<video id='video' controls="controls" width="600">
<source id='mp4' src="three.mp4" type='video/mp4' />
</video>
</div>
<br/>
<div id="container">
<video id='video' controls="controls" width="600">
<source id='mp4' src="four.mp4" type='video/mp4' />
</video>
</div>
</body>
</html>
- In the file replace
<your-bucket>
with your actual bucket name