Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update Microsoft.ApiManagement/service/tenant - Method not allowed in StandardV2 pricing tier #2350

Open
AndriyDmytrenko opened this issue Nov 13, 2024 · 1 comment

Comments

@AndriyDmytrenko
Copy link

Bicep version
Bicep CLI version 0.31.34 (ec82b47d63)

Describe the bug
Wanted to update the APIM instance of SKU StandardV2 to apply the recommendation "API Management should disable public network access to the service configuration endpoints", but got the errors:

MultipleErrorsOccurred - Multiple error occurred: DeploymentWhatIfResourceError,DeploymentWhatIfResourceError,DeploymentWhatIfResourceError. Please see details.
DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/subscriptions/***********/resourceGroups/***********' has failed due to a resource error. See details for more information.
MethodNotAllowedInPricingTier - Method not allowed in StandardV2 pricing tier
DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/subscriptions/***********/resourceGroups/***********' has failed due to a resource error. See details for more information.
MethodNotAllowedInPricingTier - Method not allowed in StandardV2 pricing tier
DeploymentWhatIfResourceError - The request to predict template deployment changes to scope '/subscriptions/***********/resourceGroups/***********' has failed due to a resource error. See details for more information.
MethodNotAllowedInPricingTier - Method not allowed in StandardV2 pricing tier

To Reproduce
Have a code

targetScope = 'resourceGroup'

resource apim 'Microsoft.ApiManagement/service@2024-05-01' existing = {
  name: 'my-apim-instance-name'
}

resource apimTenant 'Microsoft.ApiManagement/service/tenant@2024-05-01' = [
  for item in ['access', 'gitaccess', 'gatewayaccess']: {
    name: item
    parent: apim
    properties: {
      enabled: false
    }
  }
]

run the command
az deployment group create --template-file apim.bicep --resource-group --name --what-if

Additional context
Add any other context about the problem here.

@stephaniezyen
Copy link
Contributor

Unfortunately this is a Microsoft.ApiManagement RP issue. Please open up a support ticket with this RP.

@stephaniezyen stephaniezyen transferred this issue from Azure/bicep Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants