How can I indicate `SubscriptionRequired: false` f...
# typescript
s
How can I indicate
SubscriptionRequired: false
for an
Api
in an Azure
Api Management Service
?
subscriptionRequired: false
is not an accepted argument in
azure.apimanagement.Api
j
s
Already did that…
Copy code
const apiProduct = new azure.apimanagement.Product(`${prefix}-product`, {
    displayName: 'Shortener API Product',
    productId: 'shortener-api-product',
    description: 'Test',
    resourceGroupName: resourceGroup.name,
    apiManagementName: service.name,
    subscriptionRequired: false,
    published: true,
    approvalRequired: true
});

const frontpageProductApi = new azure.apimanagement.ProductApi("frontpage", {
    apiManagementName: service.name,
    apiName: homepageApi.name,
    productId: apiProduct.productId,
    resourceGroupName: resourceGroup.name,
});

const processProductApi = new azure.apimanagement.ProductApi("process", {
    apiManagementName: service.name,
    apiName: processApi.name,
    productId: apiProduct.productId,
    resourceGroupName: resourceGroup.name,
});
But still have to toggle that setting in the panel in order to accomplish this desired effect