Learn Idem

Learn Idem

Powered by Idem Project

azure.virtual_networks.network_interfaces

**Autogenerated function**

Delete Network Interfaces

Args:
    name(str): The identifier for this state.
    resource_group_name(str): The name of the resource group.
    network_interface_name(str): The name of the network interface.
    subscription_id(str, optional): Subscription Unique id.

Returns:
    Dict

Examples:

    .. code-block:: sls

        resource_is_absent:
          azure.virtual_networks.network_interfaces.absent:
            - name: value
            - resource_group_name: value
            - network_interface_name: value
            - subscription_id: my-subscription
**Autogenerated function**

Describe the resource in a way that can be recreated/managed with the corresponding "present" function


List all Network Interfaces under the same subscription


Returns:
    Dict[str, Any]

Examples:

    .. code-block:: bash

        $ idem describe azure.virtual_networks.network_interfaces
**Autogenerated function**

Create or update Network Interfaces

Args:
    name(str): The identifier for this state.
    resource_group_name(str): The name of the resource group.
    network_interface_name(str): The name of the network interface.
    location(str): Resource location. This field can not be updated.
    ip_configurations(List[Dict[str, Any]]): A list of IPConfigurations of the network interface.
                                             Each ip configuration supports fields:
                                             * name(str) -- The name of the resource that is unique within a
                                               resource group.
                                             * private_ip_address_allocation(str) -- The allocation method used for
                                               the Private IP Address. Possible values are Dynamic and Static.
                                               Azure does not assign a Dynamic IP Address until the Network
                                               Interface is attached to a running Virtual Machine(or other resource).
                                             * subnet_id(str) -- Resource ID of the Subnet bound to the
                                               IP configuration. The name of the resource
                                               that is unique within a resource group.
                                               This is required when private_ip_address_version is set to IPv4.
                                             * private_ip_address_version(str) -- The specific IP configuration is
                                               IPv4 or IPv6. Default is IPv4.
                                             * private_ip_address(str) -- The Static IP Address which should be used.
                                               When private_ip_address_allocation is set to Static,
                                               private_ip_address can be configured.
                                             * primary(bool) -- To check if this is the primary IP Configuration.
                                               Must be true for the first ip_configuration
                                               when multiple are specified. Defaults to false.
                                               Primary attribute must be true for the first ip_configuration when
                                               multiple are specified. Defaults to false.
    tags(Dict, optional): Resource tags.
    subscription_id(str, optional): Subscription Unique id.
    resource_id(str, optional): Network Interface resource id on Azure.

Returns:
    Dict

Examples:

    .. code-block:: sls

        my-nic:
          azure.virtual_networks.network_interfaces.present:
            - name: my-nic
            - resource_group_name: my-rg
            - network_interface_name: my-nic
            - location: southindia
            - subscription_id: my-subscription
            - ip_configurations:
              - name: my-ipc
                private_ip_address_allocation: Static
                subnet_id: subnet_name
                private_ip_address_version: IPv4
                private_ip_address: 10.0.0.24
                primary:true
            - tags:
                my-tag-key: my-tag-value
Last updated on 20 Sep 2022
 Edit on GitHub