Class PrivateAccess | Azure SDK for Net
Andrew White
Published Feb 17, 2026
Description of the parameters of Private Access for a Web Site.
Inheritance
PrivateAccess
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Websites.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class PrivateAccess : Microsoft.Azure.Management.WebSites.Models.ProxyOnlyResource Constructors
PrivateAccess()
Initializes a new instance of the PrivateAccess class.
Declaration
public PrivateAccess (); PrivateAccess(String, String, String, String, Nullable<Boolean>, IList<PrivateAccessVirtualNetwork>)
Initializes a new instance of the PrivateAccess class.
Declaration
public PrivateAccess (string id = null, string name = null, string kind = null, string type = null, Nullable<bool> enabled = null, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.PrivateAccessVirtualNetwork> virtualNetworks = null); Parameters
Properties
Enabled
Gets or sets whether private access is enabled or not.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.enabled")]
public Nullable<bool> Enabled { get; set; } Property Value
VirtualNetworks
Gets or sets the Virtual Networks (and subnets) allowed to access the site privately.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.virtualNetworks")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.PrivateAccessVirtualNetwork> VirtualNetworks { get; set; }