- [@azbake/ingredient-network-interface]
The Network Interface ingredient is a plugin for bake. When included in a recipe, this will create an Network Interface.
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 |
Utility classes can be used inside of the bake.yaml file for parameter and source values.
| function | description |
| create_resource_name()
| Returns the name created for the Network Interface when deployed |
Gets the name created for the Network Interface when deployed.
...
parameters:
nicName: "[networkinterfaceutility.create_resource_name()]"
...
string