ArmNetworkModelFactory.VirtualNetworkEncryption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.
public static Azure.ResourceManager.Network.Models.VirtualNetworkEncryption VirtualNetworkEncryption(bool enabled = false, Azure.ResourceManager.Network.Models.VirtualNetworkEncryptionEnforcement? enforcement = default);
static member VirtualNetworkEncryption : bool * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkEncryptionEnforcement> -> Azure.ResourceManager.Network.Models.VirtualNetworkEncryption
Public Shared Function VirtualNetworkEncryption (Optional enabled As Boolean = false, Optional enforcement As Nullable(Of VirtualNetworkEncryptionEnforcement) = Nothing) As VirtualNetworkEncryption
Parameters
- enabled
- Boolean
Indicates if encryption is enabled on the virtual network.
- enforcement
- Nullable<VirtualNetworkEncryptionEnforcement>
If the encrypted VNet allows VM that does not support encryption. This field is for future support, AllowUnencrypted is the only supported value at general availability.
Returns
A new VirtualNetworkEncryption instance for mocking.