Skip to main content

interfaces

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

Overview

Nameinterfaces
TypeResource
Idazure.network.interfaces

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting NetworkInterface resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectThe extended location of the network interface.
propertiesobjectProperties of the network interface.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, networkInterfaceName, subscriptionId$expandGets 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_updateinsertresourceGroupName, networkInterfaceName, subscriptionIdCreates or updates a network interface.
deletedeleteresourceGroupName, networkInterfaceName, subscriptionIdDeletes the specified network interface.
update_tagsexecresourceGroupName, networkInterfaceName, subscriptionIdUpdates a network interface tags.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
networkInterfaceNamestringThe name of the network interface.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

Gets information about the specified network interface.

SELECT
id,
name,
etag,
extendedLocation,
properties,
systemData,
type
FROM azure.network.interfaces
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkInterfaceName = '{{ networkInterfaceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a network interface.

INSERT INTO azure.network.interfaces (
data__extendedLocation,
data__properties,
resourceGroupName,
networkInterfaceName,
subscriptionId
)
SELECT
'{{ extendedLocation }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ networkInterfaceName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
extendedLocation,
properties,
systemData,
type
;

DELETE examples

Deletes the specified network interface.

DELETE FROM azure.network.interfaces
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND networkInterfaceName = '{{ networkInterfaceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates a network interface tags.

EXEC azure.network.interfaces.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@networkInterfaceName='{{ networkInterfaceName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;