#Azure Policy VS Code extension problem

1 messages · Page 1 of 1 (latest)

jovial quartz
#

Hi everyone,

Not sure where to ask this as I couldn't see a governance channel or something similar, I would like to know if someone else is having issues using the Azure Policy VS Code extension when trying to run an offline evaluation, I followed the documentation, pinned my resource, definition and assignment but the only output that I receive is the following output:

{
"policyEvaluations": [],
"modifiedFields": [],
"messages": [
"DebugDuration (ms): 100, Info: RequestType: 'Validation', ResourceType: 'Microsoft.Network/virtualNetworks', Containers: '1', ContainersToEvaluate: '0', GotFullResourceContent: 'False', GotTrackedContent: 'False', AltCompanionPort: 'False'",
"Debug<null>"
]
}

Screenshot showing everything attached as well, not sure if I am doing something wrong.

tulip marlin
#

Can you share the policy definition itself?

tulip marlin
jovial quartz
#

@tulip marlin sorry I didn't notice you answered, I no longer have the policy, but do you have one that works with the extension? That would help me understand what I did wrong with mine

tulip marlin
#

This will only add a default nsg to a subnet when there is none, you don't want to change nsg's teams may add