mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-07-06 16:47:31 +00:00
24 lines
550 B
Bicep
24 lines
550 B
Bicep
![]() |
// Copyright (c) Microsoft Corporation.
|
||
|
// Licensed under the MIT License.
|
||
|
|
||
|
@description('The name of the new subnet')
|
||
|
param name string
|
||
|
@description('The name of the virtual network the subnet should be created in')
|
||
|
param vnetName string
|
||
|
|
||
|
param addressPrefix string
|
||
|
|
||
|
resource vnet 'Microsoft.Network/virtualNetworks@2023-06-01' existing = {
|
||
|
name: vnetName
|
||
|
}
|
||
|
|
||
|
resource subnet 'Microsoft.Network/virtualNetworks/subnets@2023-04-01' = {
|
||
|
name: name
|
||
|
parent: vnet
|
||
|
properties: {
|
||
|
addressPrefix: addressPrefix
|
||
|
}
|
||
|
}
|
||
|
|
||
|
output id string = subnet.id
|