Hello ,
Thanks for reaching Microsoft Q and A platform.
Your query is to create a NSG flow logs, where the Storage Account and NSG are in different subscription?
- NSGs hosted in East US must be enabled with flow logs in East US only on that storage account in East US only. (So the NSG flow logs you would create for the NSG must be mapped to the respected Storage Account).
- For the ones in West US, it must add the NSG flow logs to West US only. (For all the NSG present in the West US, must be mapped to the Storage Account which is in West US region.)
- Now question arise on how would you map the NSG flow logs in different Subscription to the Storage Account.
- If the storage account is in a different subscription, the network security group and storage account must be associated with the same Azure Active Directory tenant. The account you use for each subscription must have the necessary permissions.
- The storage account can't have network rules that restrict network access to only Microsoft services or specific virtual networks.
- For all the configuration via the Powershell, please follow this Document: https://learn.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-powershell
Regards,
Priya Kumar