mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-07-05 16:19:36 +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
|