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

[Bug]: MonitorDiagnosticSetting API not able to set up diagnostic settings for virtual machines in Azure #845

Open
1 task done
rajendra-singh-negi opened this issue Oct 17, 2024 · 0 comments
Labels
bug Something isn't working needs:triage

Comments

@rajendra-singh-negi
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorDiagnosticSetting

Virtual machines for windows and Linux

Resource MRs required to reproduce the bug

apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorDiagnosticSetting
metadata:
name: 'insights-vm-dev'
labels:
stage: 'dev'
spec:
forProvider:
# enabledLog:
# - category: WindowsEventLog
# retentionPolicy:
# - enabled: true
metric:
- category: AllMetrics
retentionPolicy:
- enabled: true
name: 'insights-vm-dev'
storageAccountId: /subscriptions//resourceGroups/rg-stage-sbox/providers/Microsoft.Storage/storageAccounts/sadiagnosticeusbox
targetResourceId: /subscriptions/
/resourceGroups/rg-env-st-sbox1/providers/Microsoft.Compute/virtualMachines/vmniklustsbox1
providerConfigRef:
name: azure-nonprod

Steps to Reproduce

In the activity log, it shows creating or updating resource diagnostic settings. Snapshot below

image

But when you go to virtual machine - Diagnostic settings it is empty. Snapshot below

image

What happened?

We are able to use Diagnostic settings for k8s, Redis cache and Service Bus in azure but face problems while enabling virtual machines.

Relevant Error Output Snippet

No response

Crossplane Version

1.17.1

Provider Version

v1.4.0

Kubernetes Version

No response

Kubernetes Distribution

No response

Additional Info

No response

@rajendra-singh-negi rajendra-singh-negi added bug Something isn't working needs:triage labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

1 participant