-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unable to update Defender Profile to Custom Workspace using CLI #5090
Comments
route to CXP team |
@RajiSubramanian Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update. |
@RajiSubramanian Could you please confirm if you have registered for
Awaiting your reply. |
Yes we ran the commands az aks update --enable-defender --resource-group xxx --name xxx - but still no go - resulted following error - as mentined earlier |
@RajiSubramanian The above PR has been filed and it is currently under review. In the meantime, if you have any questions, please feel free to ask. |
@RajiSubramanian The PR is now merged and the fix will be released in the next version on 2022-08-02 See this: https://github.com/Azure/azure-cli-extensions/milestone/69. We will now proceed with closure of this thread. Please feel free to reopen if you have any follow-up questions. We would be happy to help. |
The issue is fixed in the latest version of aks-preview (0.5.91). This problem can be solved by updating to the latest version of aks-preview without waiting for the new version of azure-cli release. |
Still we are unable to map the custom log Analytics workspace. and getting redirected to default workspace althoug we have followed the article. |
Hi @RajiSubramanian, for your question
Please make sure you have the latest version of aks-preview (current 0.5.91) installed. To update the defender profile using custom workspace, you need to prepare a json-formatted file like {
"logAnalyticsWorkspaceResourceId": "/subscriptions/xxxx/resourcegroups/xxxx/providers/microsoft.operationalinsights/workspaces/xxxx"
} Assuming the above file name is |
Some more updates, the command should work fine if you only have azure-cli installed, without aks-preview. However, if you also have aks-preview installed, please use the latest version of aks-preview. |
No, we have installed AKS-Preview, Azure-Cli and kubernetes version and all are upto date. But still fails to map custom log analytics workspace. |
Hi @RajiSubramanian, could you please use logAnalyticsWorkspaceResourceId as the key in the json config (instead of logAnalyticsWorkspaceResourceID) and try agagin? |
Thanks for your support. The issue is fixed. |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks update Extension Name: aks-preview. Version: 0.5.87.
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az aks update --enable-defender --resource-group {} --name {}
Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: