I'm looking for a way to obtain which OMS workspace my APIM Services resource is logging to using PowerShell. I want to then configure my Application Gateway to log to the same workspace.
When I go to "Logs" under the APIM service, it shows all available workspaces in my subscription.
I'm not sure how to get just the workspace that it is logging to.
This is not really a PowerShell Code errors / functionality issue, but how do I find and match up my AzureRM resources and extract information.
However, since you are here...
If the property is not there, then you are not looking at the correct resource cmdlet / object. I don't have this type of scenario deployed in my sub, so no way to dig at it. Take a look at this
Workspaces - Get
And use the provided properties to cross reference, specifically the resourceGroupName and or workspaceName.