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

Alias Request: Virtual Machine Boot Diagnostic and Storage Uri #154

Closed
shafqut opened this issue Aug 1, 2018 · 3 comments
Closed

Alias Request: Virtual Machine Boot Diagnostic and Storage Uri #154

shafqut opened this issue Aug 1, 2018 · 3 comments

Comments

@shafqut
Copy link
Member

shafqut commented Aug 1, 2018

Policy to ensure boot diagnostic is enabled and set to a particular storage account.
{
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/virtualMachine"
},
{
"anyOf": [
{
"not": {
"field": "Microsoft.Compute/virtualMachines/diagnosticsProfile.bootDiagnostics.enabled",
"equals": "True"
}
},
{
"field": "Microsoft.Compute/virtualMachines/diagnosticsProfile.bootDiagnostics.storageUri",
"like": "http://teststorage*"
}
]
}
]
},
"then": {
"effect": "deny"
}
},
"parameters": {},
"metadata": {
"category": "Compute"
}
}

@shafqut
Copy link
Member Author

shafqut commented Aug 21, 2018

Hi, My customer is chasing me for this, any updates?

@eladperets
Copy link
Collaborator

The following aliases were added, sorry for the delay:
Microsoft.Compute/virtualMachines/diagnosticsProfile.bootDiagnostics
Microsoft.Compute/virtualMachines/diagnosticsProfile.bootDiagnostics.enabled
Microsoft.Compute/virtualMachines/diagnosticsProfile.bootDiagnostics.storageUri

Elad

@naveensushanth
Copy link

can you share full working code for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants