Hi, I am working on Azure API Management using Pu...
# dotnet
a
Hi, I am working on Azure API Management using Pulumi.AzureNative.ApiManagement How can I get 'Product' type from below var productResult = GetProduct.InvokeAsync(new GetProductArgs { ProductId = ApimSettings.ApiManagementProductName, ResourceGroupName = ApimSettings.ApiManagementResourceGroup, ServiceName = ApimSettings.ApiManagementInstanceName }).GetAwaiter().GetResult(); productResult is of type 'GetProductResult' and we need 'Product' type out of it.
e
You might want to use
Product.Get(name, id)
instead of the invoke, that will return an actual Product value.
a
Yes Fraser, I want to use Product.Get() but I don't have name of Product as it is not visible on Portal
e
That's just the name for pulumi to track it by, it can be anything it doesn't have to be the same as the actual resource name (in fact in most cases it isn't)