virtual_networks
Creates, updates, deletes, gets or lists a virtual_networks
resource.
Overview
Name | virtual_networks |
Type | Resource |
Id | azure.hybrid_aks.virtual_networks |
Fields
Name | Datatype | Description |
---|---|---|
extendedLocation | object | Extended location pointing to the underlying infrastructure |
location | string | The geo-location where the resource lives |
properties | object | Properties of the virtual network resource |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists the virtual networks in the specified resource group |
list_by_subscription | SELECT | subscriptionId | Lists the virtual networks in the specified subscription |
create_or_update | INSERT | resourceGroupName, subscriptionId, virtualNetworkName | Creates or updates the virtual network resource |
delete | DELETE | resourceGroupName, subscriptionId, virtualNetworkName | Deletes the specified virtual network resource |
update | UPDATE | resourceGroupName, subscriptionId, virtualNetworkName | Patches the virtual network resource |
retrieve | EXEC | resourceGroupName, subscriptionId, virtualNetworkName | Gets the specified virtual network resource |
SELECT
examples
Lists the virtual networks in the specified subscription
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.hybrid_aks.virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new virtual_networks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.hybrid_aks.virtual_networks (
resourceGroupName,
subscriptionId,
virtualNetworkName,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkName }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: infraVnetProfile
value:
- name: hci
value:
- name: mocGroup
value: string
- name: mocLocation
value: string
- name: mocVnetName
value: string
- name: vipPool
value:
- - name: endIP
value: string
- name: startIP
value: string
- name: vmipPool
value:
- - name: endIP
value: string
- name: startIP
value: string
- name: dnsServers
value:
- string
- name: gateway
value: string
- name: ipAddressPrefix
value: string
- name: vlanID
value: integer
- name: provisioningState
value: string
- name: status
value:
- name: operationStatus
value:
- name: error
value:
- name: code
value: string
- name: message
value: string
- name: operationId
value: string
- name: status
value: string
- name: extendedLocation
value:
- name: type
value: string
- name: name
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a virtual_networks
resource.
/*+ update */
UPDATE azure.hybrid_aks.virtual_networks
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkName = '{{ virtualNetworkName }}';
DELETE
example
Deletes the specified virtual_networks
resource.
/*+ delete */
DELETE FROM azure.hybrid_aks.virtual_networks
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkName = '{{ virtualNetworkName }}';