-
Notifications
You must be signed in to change notification settings - Fork 151
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
How to create an artifact with an initiative using json? #18
Comments
The error you are getting is saying the policy initiative does not have a parameter called logAnalyticsWorkspaceId. I looked at the initiative and it looks like that parameter is called logAnalyticsWorkspaceIdforVMReporting Can you try that instead and see if it works? |
Here is a gist with the full policy-initiative json for reference: |
sure @alex-frankel , thanks for the quick reply. Let me try and get back to you! |
It worked. |
You can get the actual JSON of any built-in (or custom) initiative definition by doing the following: somewhat confusingly an initiative in the portal is called a policy-set in our backend. Glad you were able to get this working. |
I'm working on Automation of blueprints and as part of that I would like to create the artifacts using the json files as shown in https://github.com/Azure/azure-blueprints. I was able to create a policy and add it to the blueprint but I'm unable to add an initiative with parameters?
Is this a proper way to create initiative as an artifact?
And I get the below error when trying to create the blueprint using the REST API:
{'error': {'code': 'InvalidArtifact', 'message': "This artifact is invalid. Error: 'Parameter 'logAnalyticsWorkspaceId' does not exist in the policy definition specified by blueprint artifact '_Audit-NIST-SP-800-53-R4-controls'.'"}}
The text was updated successfully, but these errors were encountered: