@azbake/ingredient-network-interface

Ingredient for deploying an instance of Network Interface.

Usage no npm install needed!

<script type="module">
  import azbakeIngredientNetworkInterface from 'https://cdn.skypack.dev/@azbake/ingredient-network-interface';
</script>

README

Changelogs

  • [@azbake/ingredient-network-interface]

Overview

The Network Interface ingredient is a plugin for bake. When included in a recipe, this will create an Network Interface.

Usage

name: My package
shortName: mypkg
version: 0.0.1
ingredients:
  - "@azbake/ingredient-network-interface@~0"
resourceGroup: true
recipe:
  nic:
    properties:
      type: "@azbake/ingredient-network-interface"
      parameters:
       networkInterfaceName: "sample-nic"        
        location: "centralus"
        virtualNetworkName: "test-vnet"
        subnetName: "default"
property required description
networkInterfaceName yes The name for the Network Interface
location no Sets the location. Defaults to the parent resource group location.
subnetName yes Subnet name to create Network interface
virtualNetworkName yes Virtual Network name where subnet is associated

Utilities

Utility classes can be used inside of the bake.yaml file for parameter and source values.

networkinterface class

| function | description | | create_resource_name() | Returns the name created for the Network Interface when deployed |

Function Details

create_resource_name()

Gets the name created for the Network Interface when deployed.

...
parameters:
    nicName: "[networkinterfaceutility.create_resource_name()]"
...
Returns

string