@@ -25,29 +25,58 @@ public ActiveDirectoryProperties()
25
25
/// </summary>
26
26
27
27
/// <param name="domainName">Specifies the primary domain that the AD DNS server is authoritative for.
28
+ /// This property is required if directoryServiceOptions is set to AD (AD DS
29
+ /// authentication). If directoryServiceOptions is set to AADDS (Entra DS
30
+ /// authentication), providing this property is optional, as it will be
31
+ /// inferred automatically if omitted. If directoryServiceOptions is set to
32
+ /// AADKERB (Entra authentication), this property is optional; it is needed to
33
+ /// support configuration of directory- and file-level permissions via Windows
34
+ /// File Explorer, but is not required for authentication.
28
35
/// </param>
29
36
30
- /// <param name="netBiosDomainName">Specifies the NetBIOS domain name.
37
+ /// <param name="netBiosDomainName">Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD
38
+ /// (AD DS authentication), this property is required. Otherwise, it can be
39
+ /// omitted.
31
40
/// </param>
32
41
33
- /// <param name="forestName">Specifies the Active Directory forest to get.
42
+ /// <param name="forestName">Specifies the Active Directory forest to get. If directoryServiceOptions is
43
+ /// set to AD (AD DS authentication), this property is required. Otherwise, it
44
+ /// can be omitted.
34
45
/// </param>
35
46
36
- /// <param name="domainGuid">Specifies the domain GUID.
47
+ /// <param name="domainGuid">Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS
48
+ /// authentication), this property is required. If directoryServiceOptions is
49
+ /// set to AADDS (Entra DS authentication), this property can be omitted. If
50
+ /// directoryServiceOptions is set to AADKERB (Entra authentication), this
51
+ /// property is optional; it is needed to support configuration of directory-
52
+ /// and file-level permissions via Windows File Explorer, but is not required
53
+ /// for authentication.
37
54
/// </param>
38
55
39
- /// <param name="domainSid">Specifies the security identifier (SID).
56
+ /// <param name="domainSid">Specifies the security identifier (SID) of the AD domain. If
57
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
58
+ /// is required. Otherwise, it can be omitted.
40
59
/// </param>
41
60
42
- /// <param name="azureStorageSid">Specifies the security identifier (SID) for Azure Storage.
61
+ /// <param name="azureStorageSid">Specifies the security identifier (SID) for Azure Storage. If
62
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
63
+ /// is required. Otherwise, it can be omitted.
43
64
/// </param>
44
65
45
- /// <param name="samAccountName">Specifies the Active Directory SAMAccountName for Azure Storage.
66
+ /// <param name="samAccountName">Specifies the Active Directory SAMAccountName for Azure Storage. If
67
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
68
+ /// is optional. If provided, accountType should also be provided. For
69
+ /// directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra
70
+ /// authentication), this property can be omitted.
46
71
/// </param>
47
72
48
- /// <param name="accountType">Specifies the Active Directory account type for Azure Storage.
73
+ /// <param name="accountType">Specifies the Active Directory account type for Azure Storage. If
74
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
75
+ /// is optional. If provided, samAccountName should also be provided. For
76
+ /// directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra
77
+ /// authentication), this property can be omitted.
49
78
/// Possible values include: 'User', 'Computer'</param>
50
- public ActiveDirectoryProperties ( string domainName , string domainGuid , string netBiosDomainName = default ( string ) , string forestName = default ( string ) , string domainSid = default ( string ) , string azureStorageSid = default ( string ) , string samAccountName = default ( string ) , string accountType = default ( string ) )
79
+ public ActiveDirectoryProperties ( string domainName = default ( string ) , string netBiosDomainName = default ( string ) , string forestName = default ( string ) , string domainGuid = default ( string ) , string domainSid = default ( string ) , string azureStorageSid = default ( string ) , string samAccountName = default ( string ) , string accountType = default ( string ) )
51
80
52
81
{
53
82
this . DomainName = domainName ;
@@ -69,77 +98,79 @@ public ActiveDirectoryProperties()
69
98
70
99
/// <summary>
71
100
/// Gets or sets specifies the primary domain that the AD DNS server is
72
- /// authoritative for.
101
+ /// authoritative for. This property is required if directoryServiceOptions is
102
+ /// set to AD (AD DS authentication). If directoryServiceOptions is set to
103
+ /// AADDS (Entra DS authentication), providing this property is optional, as it
104
+ /// will be inferred automatically if omitted. If directoryServiceOptions is
105
+ /// set to AADKERB (Entra authentication), this property is optional; it is
106
+ /// needed to support configuration of directory- and file-level permissions
107
+ /// via Windows File Explorer, but is not required for authentication.
73
108
/// </summary>
74
109
[ Newtonsoft . Json . JsonProperty ( PropertyName = "domainName" ) ]
75
110
public string DomainName { get ; set ; }
76
111
77
112
/// <summary>
78
- /// Gets or sets specifies the NetBIOS domain name.
113
+ /// Gets or sets specifies the NetBIOS domain name. If directoryServiceOptions
114
+ /// is set to AD (AD DS authentication), this property is required. Otherwise,
115
+ /// it can be omitted.
79
116
/// </summary>
80
117
[ Newtonsoft . Json . JsonProperty ( PropertyName = "netBiosDomainName" ) ]
81
118
public string NetBiosDomainName { get ; set ; }
82
119
83
120
/// <summary>
84
- /// Gets or sets specifies the Active Directory forest to get.
121
+ /// Gets or sets specifies the Active Directory forest to get. If
122
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
123
+ /// is required. Otherwise, it can be omitted.
85
124
/// </summary>
86
125
[ Newtonsoft . Json . JsonProperty ( PropertyName = "forestName" ) ]
87
126
public string ForestName { get ; set ; }
88
127
89
128
/// <summary>
90
- /// Gets or sets specifies the domain GUID.
129
+ /// Gets or sets specifies the domain GUID. If directoryServiceOptions is set
130
+ /// to AD (AD DS authentication), this property is required. If
131
+ /// directoryServiceOptions is set to AADDS (Entra DS authentication), this
132
+ /// property can be omitted. If directoryServiceOptions is set to AADKERB
133
+ /// (Entra authentication), this property is optional; it is needed to support
134
+ /// configuration of directory- and file-level permissions via Windows File
135
+ /// Explorer, but is not required for authentication.
91
136
/// </summary>
92
137
[ Newtonsoft . Json . JsonProperty ( PropertyName = "domainGuid" ) ]
93
138
public string DomainGuid { get ; set ; }
94
139
95
140
/// <summary>
96
- /// Gets or sets specifies the security identifier (SID).
141
+ /// Gets or sets specifies the security identifier (SID) of the AD domain. If
142
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
143
+ /// is required. Otherwise, it can be omitted.
97
144
/// </summary>
98
145
[ Newtonsoft . Json . JsonProperty ( PropertyName = "domainSid" ) ]
99
146
public string DomainSid { get ; set ; }
100
147
101
148
/// <summary>
102
- /// Gets or sets specifies the security identifier (SID) for Azure Storage.
149
+ /// Gets or sets specifies the security identifier (SID) for Azure Storage. If
150
+ /// directoryServiceOptions is set to AD (AD DS authentication), this property
151
+ /// is required. Otherwise, it can be omitted.
103
152
/// </summary>
104
153
[ Newtonsoft . Json . JsonProperty ( PropertyName = "azureStorageSid" ) ]
105
154
public string AzureStorageSid { get ; set ; }
106
155
107
156
/// <summary>
108
157
/// Gets or sets specifies the Active Directory SAMAccountName for Azure
109
- /// Storage.
158
+ /// Storage. If directoryServiceOptions is set to AD (AD DS authentication),
159
+ /// this property is optional. If provided, accountType should also be
160
+ /// provided. For directoryServiceOptions AADDS (Entra DS authentication) or
161
+ /// AADKERB (Entra authentication), this property can be omitted.
110
162
/// </summary>
111
163
[ Newtonsoft . Json . JsonProperty ( PropertyName = "samAccountName" ) ]
112
164
public string SamAccountName { get ; set ; }
113
165
114
166
/// <summary>
115
- /// Gets or sets specifies the Active Directory account type for Azure Storage. Possible values include: 'User', 'Computer'
167
+ /// Gets or sets specifies the Active Directory account type for Azure Storage.
168
+ /// If directoryServiceOptions is set to AD (AD DS authentication), this
169
+ /// property is optional. If provided, samAccountName should also be provided.
170
+ /// For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB
171
+ /// (Entra authentication), this property can be omitted. Possible values include: 'User', 'Computer'
116
172
/// </summary>
117
173
[ Newtonsoft . Json . JsonProperty ( PropertyName = "accountType" ) ]
118
174
public string AccountType { get ; set ; }
119
- /// <summary>
120
- /// Validate the object.
121
- /// </summary>
122
- /// <exception cref="Microsoft.Rest.ValidationException">
123
- /// Thrown if validation fails
124
- /// </exception>
125
- public virtual void Validate ( )
126
- {
127
- if ( this . DomainName == null )
128
- {
129
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "DomainName" ) ;
130
- }
131
- if ( this . DomainGuid == null )
132
- {
133
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "DomainGuid" ) ;
134
- }
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
- }
144
175
}
145
176
}
0 commit comments