AVM 'br/public:avm/res/operational-insights/workspace' outputs primarySharedKey and secondarySharedKey #3397
-
|
I need some help to understand PSRule while using Azure verified modules (AVM). Is there something I need to do differently or am I missing something? I have used the WAF example from Azure verified module (AVM): One way I can workaround it was creating a suppressiongroup like so: But it seems strange to do so since it is an Azure verified module (AVM) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Thanks for the question @mikkelh-SDU. Secure outputs are a recent addition to Bicep and to the You could use an older version of the module before the latest update however support has been added to PSRule for Azure in v1.44.0 which will be released in the next week. Or you can try it now be using the latest pre-release v1.44.0-B0052. Adding @krbar the owner of the module may have further insights. Yes, you can use a suppression group to suppress the issue if you don't want to use the pre-release at this stage. Some additional variations are. apiVersion: github.com/microsoft/PSRule/v1
kind: SuppressionGroup
metadata:
name: Local.IgnoreWorkspaceSharedKeys
spec:
rule:
- Azure.Deployment.OutputSecretValue
if:
name: '.'
equals: workspaceDeploymentAlternatively you could suppress by file: apiVersion: github.com/microsoft/PSRule/v1
kind: SuppressionGroup
metadata:
name: Local.IgnoreWorkspaceSharedKeys
spec:
rule:
- Azure.Deployment.OutputSecretValue
if:
source: Parameter
withinPath: infra/main.bicepparamI hope that answers the question. |
Beta Was this translation helpful? Give feedback.
Thanks for the question @mikkelh-SDU.
Secure outputs are a recent addition to Bicep and to the
avm/res/operational-insights/workspacemodule, which started using the feature early in the lifecycle of adding support to Bicep. The reason you are getting this message is because it is a brand-new feature that don't have full support yet within PSRule for Azure.You could use an older version of the module before the latest update however support has been added to PSRule for Azure in v1.44.0 which will be released in the next week. Or you can try it now be using the latest pre-release v1.44.0-B0052.
Adding @krbar the owner of the module may have further insights.
Yes, you can use a suppressio…