Hello @Ananya Sarkar ,
Please find below the articles for your requested operations through Azure Rest Api call:
Creating Vnet peering : https://learn.microsoft.com/en-us/rest/api/virtualnetwork/virtualnetworkpeerings/createorupdate
Creating log analytics workspace : https://learn.microsoft.com/en-us/rest/api/loganalytics/workspaces/createorupdate
Adding log analytics workspace to NSG : https://learn.microsoft.com/en-us/rest/api/virtualnetwork/networksecuritygroups/createorupdate
Adding Firewall to log analytics workspace : Not available.
Creating Storage account : https://learn.microsoft.com/en-us/rest/api/storagerp/storageaccounts/create
Adding NSG to Storage account - Not possible. Azure Storage Services are not part of a Virtual Network. So what did you refer as adding NSG to Storage?
Adding Firewall to Storage : Could you please provide clarity on this requirement?
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.