Skip to content

Object reference not set to an instance of an object when deploying app service or slot with one of the properties value as object. #8189

Open

Description

Azure Bicep Cli Version - 0.9.1

We were using below module code to deploy app service since past 3 months but never faced the failure but now when we try to deploy it randomly throws the below error.
We are deploying 5 app services using a for loop and app service module.
"Object reference not set to an instance of an object ".
image
After spending couple of hours of debugging the below module, we concluded if the property value for 'ipSecurityRestrictions' is not passed then its working fine but as soon as we are passing this highlighted array then its failing randomly for any app service. On further checking the ARM template in deployment history its creating object for its values.
We are not only sending object as IPSecurityRestrictions but also for app service config application settings also.
Please let us know if this issue is due to recent upgrades in resource manage or do we need to pass all the objects as parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions