Hi Ravi,
As discussed, Please use below Resource graph query to fetch the required details.
RecoveryServicesResources
| where type =~ 'microsoft.recoveryservices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems'
| extend props = properties
| project
name,
vaultName = tostring(split(id, "/")[8]),
resourceGroup = tostring(split(id, "/")[4]),
location,
friendlyName = props.friendlyName,
protectionState = props.protectionState,
recoveryStaticIP = tostring(props.providerSpecificDetails.vmNics[0].ipConfigs[0].recoveryStaticIPAddress),
originalStaticIP = tostring(props.providerSpecificDetails.vmNics[0].ipConfigs[0].staticIPAddress),
testFailoverStaticIP = tostring(props.providerSpecificDetails.vmNics[0].ipConfigs[0].tfoStaticIPAddress),
recoverySubnet = tostring(props.providerSpecificDetails.vmNics[0].ipConfigs[0].recoverySubnetName),
originalSubnet = tostring(props.providerSpecificDetails.vmNics[0].ipConfigs[0].subnetName),
testFailoverSubnet = tostring(props.providerSpecificDetails.vmNics[0].ipConfigs[0].tfoSubnetName)
Please let me know if you face any challenge here, I can help you to resolve this issue further
Provide your valuable Comments.
Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.