GithubHelp home page GithubHelp logo

Comments (6)

mgeorgebrown89 avatar mgeorgebrown89 commented on May 29, 2024

Oh, and now I see part of the problem. There are exceptions in Template-Should-Not-Contain-Blanks.test.ps1 here:

$PropertiesThatCanBeEmpty = 'resources', 
                        'outputs', 
                        'variables', 
                        'parameters', 
                        'functions', 
                        'properties', 
                        'defaultValue', # enables optional parameters
                        'accessPolicies',  # keyVault requires this
                        'value', # Microsoft.Resources/deployments - passing empty strings to a nested deployment
                        'promotionCode', # Microsoft.OperationsManagement/soltuions/plan object
                        'inputs' # Microsoft.Portal/dashboard

But in this particular case, the property is dynamic, making it difficult to just add to this list.

from arm-ttk.

bmoore-msft avatar bmoore-msft commented on May 29, 2024

Thanks for the bug... - you're right this one is tricky, we should be able to detect if the property is an expression though in this case it could be a literal too (e.g. GUID). That might unblock, but not sure if it's sustainable.

from arm-ttk.

marrobi avatar marrobi commented on May 29, 2024

I've got this same issue, and another on the same rule...

Can you think of another way to do this? I need to conditionally join three subnets (this is one example, I have another with security rules):

"subnets": "[union(variables('defaultSubnets'),if(parameters('deployVnetGateway'), variables('gatewaySubnet'),json('[]')),if(parameters('deployBastion'), variables('bastionSubnet'),json('[]')))]",

from arm-ttk.

bmoore-msft avatar bmoore-msft commented on May 29, 2024

@marrobi - can you file a separate issue for your scenario? As a workaround can you change json('[]') to json('null')? That might trigger different behavior if the vnet already has subnets, not 100% certain.

from arm-ttk.

marrobi avatar marrobi commented on May 29, 2024

I'm hitting the userAssignedIdentities issue on a number of templates. Possible to add an exception for userAssignedIdentities? Thanks.

from arm-ttk.

bmoore-msft avatar bmoore-msft commented on May 29, 2024

Fixed in #65

from arm-ttk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.