Azure / azure-spring-apps-landing-zone-accelerator

The Azure Spring Apps landing zone accelerator is an open-source collection of architectural guidance and reference implementation to accelerate deployment of Azure Spring Apps at scale.
MIT License
80 stars 76 forks source link

az monitor diagnostic-settings create command issue #74

Closed ShichaoQiu closed 3 years ago

ShichaoQiu commented 3 years ago

The error message is as below:

Metric category 'Performance (Java)' is not supported.. [Code: "BadRequest"]

The root cause is:

L681 ~ L738 of the file https://github.com/Azure/azure-spring-cloud-reference-architecture/blob/main/CLI/deploy-azurespringcloud-internal.sh

Should be changed as below:

    --metrics '[
        {
            "category": "AllMetrics",
            "enabled": true,
            "retentionPolicy": {
                "enabled": false,
                "days": 0
                }
        }
    ]'
djr1991 commented 3 years ago

Added and tested using AllMetrics. Closing this issue