how to update IP rules in a Storage Account using the new Azure.ResourceManager package

Rashi Nair 0 Reputation points
2023-08-07T09:09:24.5566667+00:00

Can someone share sample code for how to update IP rules in a Storage Account using the new Azure.ResourceManager package? I am working on migrating some code from the old Microsoft.Azure.Management.Storage.Fluent package to Azure.ResourceManager.Storage and not able to figure out the code for updating IP rules. Any leads would be much appreciated, TIA!

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,461 questions
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,366 Reputation points Microsoft Employee
    2023-08-30T17:16:52.71+00:00

    @Rashi Nair

    Can you check out the sample C#.net code mentioned here:

    https://github.com/Azure-Samples/storage-dotnet-manage-storage-account-network-rules

    ManageStorageAccountNetworkRules.csproj has got program.cs main class file which has got the code to update/create the Firewall rules for the storage account !

    Checkout the program.cs which uses fluent APIs of Azure SDK

    https://github.com/Azure-Samples/storage-dotnet-manage-storage-account-network-rules/blob/master/Program.cs

    Regards,

    Shiva.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.