Skip to content

az deployment sub what-if shows that Microsoft.Elastic resource has changed but it doesn't #26031

@akorobanov

Description

@akorobanov

Related command

az deployment sub what-if --location northeurope --template-file main.bicep
az deployment sub create as well

part of the elasticCloud bicep template:

resource elasticCloud 'Microsoft.Elastic/monitors@2022-09-01-preview' = {
  name: 'test1301910940'
  location: northeurope
  properties: {
    userInfo: {
      emailAddress: "test@microsoft.com"  // sample email
    }
  }
  sku: {
    name: 'ess-monthly-consumption_Monthly'
  }
}

Describe the bug
If the resource was already created az deployment sub what-if always reports the properties.userInfo emailAddress as a changed property.
image
Accordingly, az deployment sub create tries to modify the elastic cluster and fails.

To Reproduce

  1. Create elastic monitor with provided emailAddress (--user-info parameter)
  2. Prepare Microsoft.Elastic/monitors bicep template with a provided emailAddress from the previous step.
  3. Run az deployment sub what-if with the template from the previous step.

Expected behavior
Expected to see a no changes what-if result but receive 1 to modify.

Environment summary
ElasticCloud resource version - Microsoft.Elastic/monitors@2022-09-01-preview

Additional context

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions