https://pulumi.com logo
#typescript
Title
# typescript
s

salmon-beard-79336

07/30/2019, 2:10 PM
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

jolly-egg-4894

07/30/2019, 2:37 PM
s

salmon-beard-79336

07/30/2019, 2:40 PM
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