Giter VIP home page Giter VIP logo

azure-docs-json-samples's People

Contributors

davidsmatlak avatar dlepow avatar kumudd avatar lastcoolnameleft avatar mgblythe avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar mmacy avatar monikareddy-msft avatar msftgits avatar mumian avatar pckls avatar pierreroman avatar sheisanchez avatar smurawski avatar spelluru avatar swathidhanwada-msft avatar tfitzmac avatar tvuylsteke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-docs-json-samples's Issues

Use parameters inside string

How can I use these parameters inside a string?

For example I have the following line in my template

"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent(parameters('sql_2_server')))},@{encodeURIComponent(encodeURIComponent(parameters('sql_2_database')))}/query/sql"

As I have tried, I want to pass two parameters sql_2_server and sql_2_database inside this.

What's the syntax for this??

Dynamic names output

Not an issue, but it would be nice to have generation of dynamic names output.
Someting like this

  "outputs": {
    "networks": {
      "type": "array",
      "copy": {
        "count": "[length(variables('networks'))]",
        "input": "[variables('networks')[copyIndex()]]",
        "name": "[concat('some', variables('networks')[copyIndex()])]"
      }
    }
  }

So, this code just expand array, and 'networks' property is not put to the output

ARM split() documentation - splitting an empty string results in an unexpected array.

When using split to create an array from an empty string, the result is an array with one string that has no value. While it's possible to work around this (below), it was unexpected behaviour - maybe I'm wrong, but personally I would have expected an empty array with a length of 0.

It would be helpful if this behaviour was mentioned in the documentation.

Workaround...

"variables": {
    "containers": "[if(equals(length(parameters('containersString')), 0), json('[]'), split(parameters('containersString'), ','))]"
},

shouldn't use reference function

@mumian - a resource deployed in a template shouldn't use the reference function to get the properties.

I see:
output storageEndpoint object = reference(storageAccountName).primaryEndpoints

It should be more like:
output storageEndpoint object = stg.primaryEndpoints

Azure Firewall OMS template has wrong/outdated queries.

I imported the Azure Firewall OMS template but it seems the strings changed values and now
Unique Source IPS show up empty in addition to Denied Application URLS.

Can anybody update it? I tried but coudn't figure out the syntax to the query.

Issue with deployment() function documentation

Visual studio flags this syntax as incorrect

uri(deployment().properties.templateLink.uri

I'm unclear what's wrong with it, as I have lifted it directly from the site above. There seems to be no valid way, at least from the perspective of VisualStudio to correctly leverage this function.

uri(deployment().templateLink

According to VisualStudio the above is 100% correct, but the error returned from the deployment is that templateLink is not valid, only name and properties are valid. Yet, NEITHER of those two things show up when I attempt to use them. When I put them in manually it shows me the red wavy that means it's wrong.

It's difficult to leverage some of these when I'm unable to fully understand why the provided MS examples don't work. Can we get a full breakdown of all available properties for all functions in the documentation please?

shouldn't use concat with bicep

@mumian - we shouldn't use the concat function in bicep.

I see:
var storageAccountName_var = concat(projectName, uniqueString(resourceGroup().id))

Which I believe can be:
var storageAccountName_var = '${projectName}${uniqueString(resourceGroup().id)}'

symbolic name for bicep resources

@mumian - I think using the symbolic name shown below sends the wrong message:

resource provide_unique_name 'Microsoft.Storage/storageAccounts@2019-06-01' = {

Shouldn't provide_unique_name be just a simple name for the resource like stg ? If users try to reference the storage account somewhere else in the template they would have use the long name.

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.