Skip to main content

logical_subnets

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

Overview

Namelogical_subnets
TypeResource
Idazure_stack.fabric_admin.logical_subnets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectProperties of a logical subnet.
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
getselectsubscriptionId, resourceGroupName, location, logicalNetwork, logicalSubnetReturns the requested logical subnet.
listselectsubscriptionId, resourceGroupName, location, logicalNetwork$filterReturns a list of all logical subnets.

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
locationstringThe name of Azure region.
logicalNetworkstringName of the logical network.
logicalSubnetstringName of the logical subnet.
resourceGroupNamestringName of the resource group.
subscriptionIdstringThe ID of the target subscription.
$filterstringOData filter parameter.

SELECT examples

Returns the requested logical subnet.

SELECT
id,
name,
properties,
type
FROM azure_stack.fabric_admin.logical_subnets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND location = '{{ location }}' -- required
AND logicalNetwork = '{{ logicalNetwork }}' -- required
AND logicalSubnet = '{{ logicalSubnet }}' -- required
;