Gilo
Gilo

Reputation: 720

How to set Azure Blob Storage storage lifecycle with Golang?

I am trying to set storage lifecycle with azure-sdk-for-go unsuccessfully. How can it be done using Golang?

Upvotes: 0

Views: 196

Answers (1)

Gilo
Gilo

Reputation: 720

I first tried it with AccountsClient which only creates the account. The solution was to use ManagementPoliciesClient which can be used for adding lifecycle rules, after the account was created.

Upvotes: 1

Related Questions