-
Notifications
You must be signed in to change notification settings - Fork 514
Description
Check for previous/existing GitHub issues
- I have checked for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/network/application-gateway
(Optional) Module Version
0.7.2
Description
Issue
Mismatch in API versions between applicationGateway resource and module parameters prevents using new properties.
Details
The applicationGateway resource in the module uses API version 2024-10-01:
resource applicationGateway 'Microsoft.Network/applicationGateways@2024-10-01' ...
However, all module parameters are pinned to version 2024-07-01. For example:
Impact
This mismatch prevents referencing new configuration properties introduced in 2024-10-01.
Example: dedicatedBackendConnection in backendSettingsCollection.
- Attempting to use the property triggers a Bicep BCP037 warning/error.
- Ignoring the error with #disable-next-line BCP037 and deploying fails during template validation:
Value for resource type Microsoft.WindowsAzure.Networking.Nrp.Frontend.Contract.Csm.Public.ApplicationGateway is invalid, exception: Null object cannot be converted to a value type. (Code: InvalidJsonResourceType)
Expected Behavior
Parameters should align with the resource API version (2024-10-01) so new properties can be referenced without errors.
Workaround
We tested by making a local copy of the module and updating all parameter type references to 2024-10-01. Deployment succeeded as expected.
Proposed Fix
Update all module parameter type references from 2024-07-01 to 2024-10-01 to match the resource version.
(Optional) Correlation Id
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status