Skip to main content

interfaces

Creates, updates, deletes, gets or lists a interfaces resource.

Overview

Nameinterfaces
TypeResource
Idazure.network.interfaces

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
auxiliary_modetextfield from the properties object
auxiliary_skutextfield from the properties object
disable_tcp_state_trackingtextfield from the properties object
dns_settingstextfield from the properties object
dscp_configurationtextfield from the properties object
enable_accelerated_networkingtextfield from the properties object
enable_ip_forwardingtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
extended_locationtextfield from the properties object
hosted_workloadstextfield from the properties object
ip_configurationstextfield from the properties object
locationtextResource location.
mac_addresstextfield from the properties object
migration_phasetextfield from the properties object
networkInterfaceNametextfield from the properties object
network_security_grouptextfield from the properties object
nic_typetextfield from the properties object
primarytextfield from the properties object
private_endpointtextfield from the properties object
private_link_servicetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
tap_configurationstextfield from the properties object
typetextResource type.
virtual_machinetextfield from the properties object
vnet_encryption_supportedtextfield from the properties object
workload_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkInterfaceName, resourceGroupName, subscriptionIdGets information about the specified network interface.
listSELECTresourceGroupName, subscriptionIdGets all network interfaces in a resource group.
list_allSELECTsubscriptionIdGets all network interfaces in a subscription.
create_or_updateINSERTnetworkInterfaceName, resourceGroupName, subscriptionIdCreates or updates a network interface.
deleteDELETEnetworkInterfaceName, resourceGroupName, subscriptionIdDeletes the specified network interface.
update_tagsEXECnetworkInterfaceName, resourceGroupName, subscriptionIdUpdates a network interface tags.

SELECT examples

Gets all network interfaces in a subscription.

SELECT
id,
name,
auxiliary_mode,
auxiliary_sku,
disable_tcp_state_tracking,
dns_settings,
dscp_configuration,
enable_accelerated_networking,
enable_ip_forwarding,
etag,
extended_location,
hosted_workloads,
ip_configurations,
location,
mac_address,
migration_phase,
networkInterfaceName,
network_security_group,
nic_type,
primary,
private_endpoint,
private_link_service,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
tags,
tap_configurations,
type,
virtual_machine,
vnet_encryption_supported,
workload_type
FROM azure.network.vw_interfaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new interfaces resource.

/*+ create */
INSERT INTO azure.network.interfaces (
networkInterfaceName,
resourceGroupName,
subscriptionId,
extendedLocation,
properties,
id,
location,
tags
)
SELECT
'{{ networkInterfaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified interfaces resource.

/*+ delete */
DELETE FROM azure.network.interfaces
WHERE networkInterfaceName = '{{ networkInterfaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';