When using the Microsoft.Azure.Management.ResourceManager.Fluent
library to enumerate containers in a resource group:
azure.ContainerGroups.ListByResourceGroup(resouceGroup)
Returns an enumator, but doing any operation (e.g. .ToList()
) on the enumator will throw:
Exception thrown: 'Microsoft.Rest.Azure.CloudException' in System.Private.CoreLib.dll
The Resource 'Microsoft.ContainerInstance/containerGroups/myResource' under resource group 'myResourceGroup' was not found.