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

Noise in WhatIf Microsoft.OperationsManagement/solutions : creationTime #366

Open
dj-r1 opened this issue May 13, 2024 · 1 comment
Open

Comments

@dj-r1
Copy link

dj-r1 commented May 13, 2024

Describe the noise

Resource type

apiVersion
2015-11-01-preview

Client (PowerShell, Azure CLI, or API)
PowerShell

Relevant Bicep code

resource logAnalyticsSolutions 'Microsoft.OperationsManagement/solutions@2015-11-01-preview' = {
  name: NAME1
  location: 'polandcentral'
  plan: {
    name: 'PLAN_NAME'
    product: 'OMSGallery/GALLERY_NAME1'
    promotionCode: ''
    publisher: 'Microsoft'
  }
  properties: {
    workspaceResourceId: LOG_ANALYTICS_WORKSPACE.id
  }
}

Expected response

{
  "apiVersion": "2015-11-01-preview",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.OperationsManagement/solutions/SecurityCenterFree(RESOURCE_NAME1)",
  "location": "polandcentral",
  "name": "GALLERY_NAME1(RESOURCE_NAME1)",
  "plan": {
    "name": "GALLERY_NAME1(RESOURCE_NAME1)",
    "product": "OMSGallery/GALLERY_NAME1",
    "publisher": "Microsoft"
  },
  "properties": {
    "workspaceResourceId": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.OperationalInsights/workspaces/RESOURCE_NAME1"
  },
  "type": "Microsoft.OperationsManagement/solutions"
}

Current (noisy) response

{
  "apiVersion": "2015-11-01-preview",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.OperationsManagement/solutions/SecurityCenterFree(RESOURCE_NAME1)",
  "location": "polandcentral",
  "name": "GALLERY_NAME1(RESOURCE_NAME1)",
  "plan": {
    "name": "GALLERY_NAME1(RESOURCE_NAME1)",
    "product": "OMSGallery/GALLERY_NAME1",
    "publisher": "Microsoft"
  },
  "properties": {
    "creationTime": "Fri, 14 Jul 2023 10:47:14 GMT",
    "workspaceResourceId": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.OperationalInsights/workspaces/RESOURCE_NAME1"
  },
  "type": "Microsoft.OperationsManagement/solutions"
}

Additional context

WhatIf should not output parameter like creationTime
Noisy parameter:

  • properties.creationTime
@jikuja
Copy link

jikuja commented Nov 24, 2024

Additional properties:

  • properties.containedResources
    • noisy output with AzureDataFactoryAnalytics and AzureSQLAnalytics solutions
  • properties.workbookTemplates
    • noisy output with AzureDataFactoryAnalytics solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants