Skip to content

Commit 511540c

Browse files
tas50claude
andauthored
✨ Add fields and peerings to Azure virtual network resource (#6914)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eab7b35 commit 511540c

File tree

4 files changed

+406
-11
lines changed

4 files changed

+406
-11
lines changed

providers/azure/resources/azure.lr

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,42 @@ azure.subscription.networkService.virtualNetwork @defaults("id name location") {
738738
enableDdosProtection bool
739739
// Whether VM protection is enabled for all the subnets in the virtual network
740740
enableVmProtection bool
741+
// Address space CIDR prefixes for the virtual network
742+
addressPrefixes []string
743+
// Whether encryption is enabled on the virtual network
744+
encryptionEnabled bool
745+
// Encryption enforcement policy: AllowUnencrypted, DropUnencrypted
746+
encryptionEnforcement string
747+
// The provisioning state of the virtual network: Succeeded, Updating, Deleting, Failed, Creating, Canceled
748+
provisioningState string
749+
// FlowTimeout value in minutes for the virtual network
750+
flowTimeoutInMinutes int
751+
// List of virtual network peerings
752+
peerings() []azure.subscription.networkService.virtualNetwork.peering
753+
}
754+
755+
// Azure Virtual Network (VNet) peering
756+
azure.subscription.networkService.virtualNetwork.peering @defaults("id name peeringState") {
757+
// Peering resource ID
758+
id string
759+
// Peering name
760+
name string
761+
// Whether forwarded traffic from VMs in the local vnet is allowed in the remote vnet
762+
allowForwardedTraffic bool
763+
// Whether gateway links can be used in remote virtual networking to link to this vnet
764+
allowGatewayTransit bool
765+
// Whether VMs in the local vnet can access VMs in the remote vnet
766+
allowVirtualNetworkAccess bool
767+
// Whether remote gateways can be used on this virtual network
768+
useRemoteGateways bool
769+
// The status of the virtual network peering: Connected, Disconnected, Initiated
770+
peeringState string
771+
// The peering sync status: FullyInSync, LocalNotInSync, RemoteNotInSync, LocalAndRemoteNotInSync
772+
peeringSyncLevel string
773+
// The provisioning state: Succeeded, Updating, Deleting, Failed, Creating, Canceled
774+
provisioningState string
775+
// The remote virtual network reference ID
776+
remoteVirtualNetworkId string
741777
}
742778

743779
// Azure Virtual Network (VNet) DHCP options

providers/azure/resources/azure.lr.go

Lines changed: 268 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)