Skip to content

Commit 3cddf87

Browse files
Edits
1 parent 25f7086 commit 3cddf87

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

articles/storage/blobs/snapshots-manage-dotnet.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ To create a snapshot of a block blob, use one of the following methods:
2929
The following code example shows how to create a snapshot. Include a reference to the [Azure.Identity](https://www.nuget.org/packages/azure.identity) library to use your Azure AD credentials to authorize requests to the service. For more information about using the [DefaultAzureCredential](/dotnet/api/azure.identity.defaultazurecredential) class to authorize a managed identity to access Azure Storage, see [Azure Identity client library for .NET](/dotnet/api/overview/azure/identity-readme).
3030

3131
```csharp
32-
private static async Task CreateBlockBlobSnapshot(string accountName, string containerName, string blobName, Stream data)
32+
private static async Task CreateBlockBlobSnapshot(
33+
string accountName,
34+
string containerName,
35+
string blobName,
36+
Stream data)
3337
{
3438
const string blobServiceEndpointSuffix = ".blob.core.windows.net";
35-
Uri containerUri = new Uri("https://" + accountName + blobServiceEndpointSuffix + "/" + containerName);
39+
Uri containerUri =
40+
new Uri("https://" + accountName + blobServiceEndpointSuffix + "/" + containerName);
3641

3742
// Get a container client object and create the container.
3843
BlobContainerClient containerClient = new BlobContainerClient(containerUri,

0 commit comments

Comments
 (0)