AzureDeploy icon indicating copy to clipboard operation
AzureDeploy copied to clipboard

workspacesettings

Open KKnapik opened this issue 7 years ago • 4 comments

Hi Kristian,

Your template seems to be solution I'm looking for but I'm not able to set up workspace using resource "Microsoft.Security/workspaceSettings". To be 100% sure that I'm passing correct values I've used the same Request Body as I provided in ARM template in REST API PUT method and it has worked for me here : https://docs.microsoft.com/en-us/rest/api/securitycenter/workspacesettings/create.

But when I'm trying to use VS for template deployment I'm constantly receiving this error: "error": { "code": "BadRequest", "message": "" }

by exploring API for microsft.security provider I have found also setting for Microsoft.Security/autoProvisioningSettings, I think that would be useful to enable this during deployment, but I got exact same error as above.

KKnapik avatar Jul 25 '18 14:07 KKnapik

Hey - there were some issues with the APIs recently. Can you retry and let me know if you are still running into this?

Thx!

krnese avatar Aug 03 '18 09:08 krnese

but it is working perfectly when calling API directly. But I will try it again and let you know.

Still bad request from API

12:07:57 - Template deployment returned the following errors: 12:07:57 - 12:07:50 PM - Resource Microsoft.Security/workspaceSettings 'default' failed with message '{ 12:07:57 - "error": { 12:07:57 - "code": "BadRequest", 12:07:57 - "message": "" 12:07:57 - } 12:07:57 - }'

KKnapik avatar Aug 03 '18 09:08 KKnapik

@KKnapik @krnese Running into this and wondering if a root cause had ever been determined.

srpomeroy avatar May 10 '19 05:05 srpomeroy

I had this issue too when deploying using New-AzResourceGroupDeployment and then a colleague pointed out that this needs to be subscription scoped. Using New-AzDeployment works.

wahidsaleemi avatar Jul 31 '19 20:07 wahidsaleemi