diff --git a/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs b/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..399218a07d7a --- /dev/null +++ b/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - AdDomainServices")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.3")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.2.3")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/ADDomainServices/ADDomainServices.Autorest/README.md b/src/ADDomainServices/ADDomainServices.Autorest/README.md index fda366879370..bd2fa41abef0 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/README.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/README.md @@ -44,15 +44,6 @@ title: ADDomainServices service-name: ADDomainServices subject-prefix: ADDomainService -# If there are post APIs for some kinds of actions in the RP, you may need to -# uncomment following line to support viaIdentity for these post APIs -# identity-correction-for-post: true -resourcegroup-append: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: - from: swagger-document where: $.definitions..pfxCertificatePassword @@ -73,7 +64,10 @@ directive: "description": "HTTP 200 (OK) should be returned if the object exists and was deleted successfully." } - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + - where: + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$ remove: true # Remove the set-* cmdlet - where: @@ -135,8 +129,10 @@ directive: set: parameter-name: ResourceForest - model-cmdlet: - - ForestTrust - - ReplicaSet + - model-name: ForestTrust + cmdlet-name: New-AzADDomainServiceForestTrustObject + - model-name: ReplicaSet + cmdlet-name: New-AzADDomainServiceReplicaSetObject - where: model-name: DomainService set: diff --git a/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 b/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 index 77550d1ff728..e4c07d1c929e 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 +++ b/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 @@ -16,17 +16,25 @@ <# .Synopsis -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Description -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Example $replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +.Example +# Variables +$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\ +$certificateBytes = Get-Content "certificate.pfx" -AsByteStream +$base64String = [System.Convert]::ToBase64String($certificateBytes) +$ldaps_pfx_pass = "MyStrongPassword" + +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService .Notes COMPLEX PARAMETER PROPERTIES @@ -46,24 +54,30 @@ REPLICASET : List of ReplicaSets https://learn.microsoft.com/powershell/module/az.addomainservices/new-azaddomainservice #> function New-AzADDomainService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] [Alias('DomainServiceName')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] [System.String] # The name of the domain service. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] [System.String] # The name of the resource group within the user's subscription. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaJsonFilePath')] + [Parameter(ParameterSetName='CreateViaJsonString')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -71,164 +85,175 @@ param( # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type ${DomainConfigurationType}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # The name of the Azure domain that the user would like to deploy Domain Services to. ${DomainName}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] + [System.String] # A flag to determine whether or not NtlmV1 is enabled or disabled. ${DomainSecuritySettingNtlmV1}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] + [System.String] # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ${DomainSecuritySettingSyncKerberosPassword}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] + [System.String] # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ${DomainSecuritySettingSyncNtlmPassword}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] + [System.String] # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ${DomainSecuritySettingSyncOnPremPassword}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] + [System.String] # A flag to determine whether or not TlsV1 is enabled or disabled. ${DomainSecuritySettingTlsV1}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Resource etag ${Etag}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] + [System.String] # Enabled or Disabled flag to turn on Group-based filtered sync ${FilteredSync}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[]] # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. ${ForestTrust}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] + [System.String] # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ${LdapSettingExternalAccess}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] + [System.String] # A flag to determine whether or not Secure LDAP is enabled or disabled. ${LdapSettingLdaps}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. # The parameter passed here should be a base64encoded representation of the certificate pfx file.) ${LdapSettingPfxCertificateInputFile}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.Security.SecureString] # The password to decrypt the provided Secure LDAP certificate pfx file. ${LdapSettingPfxCertificatePassword}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Name='Location Default', Description='Gets the Location from the first element in ReplicaSets.', Script='$ReplicaSet[0].Location')] [System.String] # Resource location ${Location}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients ${NotificationSettingAdditionalRecipient}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] + [System.String] # Should domain controller admins be notified ${NotificationSettingNotifyDcAdmin}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] + [System.String] # Should global admins be notified ${NotificationSettingNotifyGlobalAdmin}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[]] # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. ${ReplicaSet}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Resource Forest ${ResourceForest}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type ${Sku}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IResourceTags]))] [System.Collections.Hashtable] # Resource tags ${Tag}, + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 b/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 index a2cbd31645f4..32e810110c2c 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 +++ b/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for ForestTrust. Create an in-memory object for ForestTrust. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ForestTrust .Link -https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-AzADDomainServiceForestTrustObject +https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-azaddomainserviceforesttrustobject #> function New-AzADDomainServiceForestTrustObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ForestTrust')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -48,7 +49,7 @@ function New-AzADDomainServiceForestTrustObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ForestTrust]::New() if ($PSBoundParameters.ContainsKey('FriendlyName')) { $Object.FriendlyName = $FriendlyName diff --git a/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 b/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 index 84e6a6841749..5d1a55345fe5 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 +++ b/src/ADDomainServices/ADDomainServices.Autorest/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for ReplicaSet. Create an in-memory object for ReplicaSet. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ReplicaSet .Link -https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-AzADDomainServiceReplicaSetObject +https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-azaddomainservicereplicasetobject #> function New-AzADDomainServiceReplicaSetObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ReplicaSet')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -39,7 +40,7 @@ function New-AzADDomainServiceReplicaSetObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ReplicaSet]::New() if ($PSBoundParameters.ContainsKey('Location')) { $Object.Location = $Location diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Az.ADDomainServices.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Az.ADDomainServices.md index 9721a1cec02e..d6d53f102b42 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/Az.ADDomainServices.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/Az.ADDomainServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.ADDomainServices -Module Guid: bba49006-4c09-406e-8fad-dd48d1b381e7 +Module Guid: 9ad18405-bd7f-4c38-973e-4a979ec5ded8 Download Help Link: https://learn.microsoft.com/powershell/module/az.addomainservices Help Version: 1.0.0.0 Locale: en-US @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: AdDomainServices cmdlets The Get Domain Service operation retrieves a json representation of the Domain Service. ### [New-AzADDomainService](New-AzADDomainService.md) -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. ### [New-AzADDomainServiceForestTrustObject](New-AzADDomainServiceForestTrustObject.md) @@ -28,6 +28,6 @@ Create an in-memory object for ReplicaSet. The Delete Domain Service operation deletes an existing Domain Service. ### [Update-AzADDomainService](Update-AzADDomainService.md) -The Update Domain Service operation can be used to update the existing deployment. +The update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Get-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Get-AzADDomainService.md index b5e4fc0f36f5..2b199f909b13 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/Get-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/Get-AzADDomainService.md @@ -113,7 +113,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity @@ -183,7 +182,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService ## NOTES diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md index b05cf8c872c3..f179e14b8c97 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md @@ -8,28 +8,42 @@ schema: 2.0.0 # New-AzADDomainService ## SYNOPSIS -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. ## SYNTAX +### CreateExpanded (Default) ``` New-AzADDomainService -Name -ResourceGroupName -DomainName - -ReplicaSet [-SubscriptionId ] [-DomainConfigurationType ] - [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-Etag ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] - [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] - [-Location ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ResourceForest ] [-Sku ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-Location ] + [-NotificationSettingAdditionalRecipient ] [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] [-ResourceForest ] + [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzADDomainService -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzADDomainService -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. ## EXAMPLES @@ -85,7 +99,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -104,7 +119,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -119,7 +134,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -133,8 +148,8 @@ Accept wildcard characters: False A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -148,8 +163,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -163,8 +178,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -178,8 +193,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -193,8 +208,8 @@ Accept wildcard characters: False A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -209,7 +224,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -223,8 +238,8 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -236,11 +251,10 @@ Accept wildcard characters: False ### -ForestTrust List of settings for Resource Forest -To construct, see NOTES section for FORESTTRUST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -250,12 +264,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LdapSettingExternalAccess A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,8 +313,8 @@ Accept wildcard characters: False A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -286,7 +330,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -301,7 +345,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -316,7 +360,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -346,7 +390,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -360,8 +404,8 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -375,8 +419,8 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -403,14 +447,13 @@ Accept wildcard characters: False ### -ReplicaSet List of ReplicaSets -To construct, see NOTES section for REPLICASET properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] +Parameter Sets: CreateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -422,7 +465,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -453,7 +496,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -484,7 +527,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -532,7 +575,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService ## NOTES diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceForestTrustObject.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceForestTrustObject.md index d79ebb506131..f388c67e883d 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceForestTrustObject.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceForestTrustObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ADDomainServices -online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-AzADDomainServiceForestTrustObject +online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-azaddomainserviceforesttrustobject schema: 2.0.0 --- @@ -120,7 +120,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ForestTrust ## NOTES diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceReplicaSetObject.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceReplicaSetObject.md index e81b4c6e248d..630a44406048 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceReplicaSetObject.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainServiceReplicaSetObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ADDomainServices -online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-AzADDomainServiceReplicaSetObject +online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-azaddomainservicereplicasetobject schema: 2.0.0 --- @@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ReplicaSet ## NOTES diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Remove-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Remove-AzADDomainService.md index 276e537f806d..7f7c04751833 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/Remove-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/Remove-AzADDomainService.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md index d96dbb6365b5..da749ff90a29 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzADDomainService ## SYNOPSIS -The Update Domain Service operation can be used to update the existing deployment. +The update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. ## SYNTAX @@ -16,39 +16,47 @@ The update call only supports the properties listed in the PATCH body. ### UpdateExpanded (Default) ``` Update-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - [-DomainConfigurationType ] [-DomainName ] [-DomainSecuritySettingNtlmV1 ] - [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-Etag ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] - [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] - [-Location ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] - [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + [-DomainConfigurationType ] [-DomainName ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] + [-ReplicaSet ] [-ResourceForest ] [-Sku ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzADDomainService -InputObject [-DomainConfigurationType ] - [-DomainName ] [-DomainSecuritySettingNtlmV1 ] - [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-Etag ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] - [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] - [-Location ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] - [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + [-DomainName ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] + [-ReplicaSet ] [-ResourceForest ] [-Sku ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzADDomainService -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzADDomainService -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -The Update Domain Service operation can be used to update the existing deployment. +The update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. ## EXAMPLES @@ -118,7 +126,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -133,7 +141,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -147,8 +155,8 @@ Accept wildcard characters: False A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -162,8 +170,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -177,8 +185,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -192,8 +200,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -207,8 +215,8 @@ Accept wildcard characters: False A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -223,7 +231,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -237,8 +245,8 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -250,11 +258,10 @@ Accept wildcard characters: False ### -ForestTrust List of settings for Resource Forest -To construct, see NOTES section for FORESTTRUST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -266,7 +273,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity @@ -280,43 +286,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -LdapSettingExternalAccess -A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. +### -JsonFilePath +Path of Json file supplied to the Update operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateViaJsonFilePath Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingLdaps -A flag to determine whether or not Secure LDAP is enabled or disabled. +### -JsonString +Json string supplied to the Update operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateViaJsonString Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingPfxCertificateInputFile -Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. -The parameter passed here should be a base64encoded representation of the certificate pfx file.) +### -LdapSettingExternalAccess +A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -326,12 +331,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingPfxCertificatePassword -The password to decrypt the provided Secure LDAP certificate pfx file. +### -LdapSettingLdaps +A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml -Type: System.Security.SecureString -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -341,12 +346,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Location -Resource location +### -LdapSettingPfxCertificateInputFile +Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. +The parameter passed here should be a base64encoded representation of the certificate pfx file.) ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LdapSettingPfxCertificatePassword +The password to decrypt the provided Secure LDAP certificate pfx file. + +```yaml +Type: System.Security.SecureString +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -361,7 +382,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: DomainServiceName Required: True @@ -376,7 +397,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -390,8 +411,8 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -405,8 +426,8 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -433,11 +454,10 @@ Accept wildcard characters: False ### -ReplicaSet List of ReplicaSets -To construct, see NOTES section for REPLICASET properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -452,7 +472,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -468,7 +488,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -483,7 +503,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -499,7 +519,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -514,7 +534,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -564,7 +584,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService ## NOTES diff --git a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json index 1c264421514c..5f42170bfb49 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json +++ b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "43557719-93d8-4089-89e8-b86055a57bac" + "generate_Id": "0172d7eb-3178-4682-be9f-c1313eb1d39c" } diff --git a/src/ADDomainServices/ADDomainServices.Autorest/resources/README.md b/src/ADDomainServices/ADDomainServices.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/ADDomainServices/ADDomainServices.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ADDomainServices/ADDomainServices.sln b/src/ADDomainServices/ADDomainServices.sln index cd70d2dac35a..392cd414b940 100644 --- a/src/ADDomainServices/ADDomainServices.sln +++ b/src/ADDomainServices/ADDomainServices.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADDomainServices", "ADDomainServices\ADDomainServices.csproj", "{D569948E-358E-4714-B8EE-E7703A747534}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ADDomainServices", "..\..\generated\ADDomainServices\ADDomainServices.Autorest\Az.ADDomainServices.csproj", "{1A173540-19BD-4906-9E7F-18D103D6BF24}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ADDomainServices.Autorest", "ADDomainServices.Autorest", "{9904CEF2-9EAD-CB88-3E65-86E3D3F23B93}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ADDomainServices", "..\..\generated\ADDomainServices\ADDomainServices.Autorest\Az.ADDomainServices.csproj", "{5A20DEFC-2DB9-470D-85AB-6DCC1C645942}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Debug|x64.ActiveCfg = Debug|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Debug|x64.Build.0 = Debug|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Debug|x86.ActiveCfg = Debug|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Debug|x86.Build.0 = Debug|Any CPU {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Release|Any CPU.ActiveCfg = Release|Any CPU {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Release|Any CPU.Build.0 = Release|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Release|x64.ActiveCfg = Release|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Release|x64.Build.0 = Release|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Release|x86.ActiveCfg = Release|Any CPU + {E35EE47E-57B4-493D-8C8D-8B6E3C31158D}.Release|x86.Build.0 = Release|Any CPU {A2022203-C08D-4BBA-A24B-96930AA228CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A2022203-C08D-4BBA-A24B-96930AA228CC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Debug|x64.ActiveCfg = Debug|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Debug|x64.Build.0 = Debug|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Debug|x86.ActiveCfg = Debug|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Debug|x86.Build.0 = Debug|Any CPU {A2022203-C08D-4BBA-A24B-96930AA228CC}.Release|Any CPU.ActiveCfg = Release|Any CPU {A2022203-C08D-4BBA-A24B-96930AA228CC}.Release|Any CPU.Build.0 = Release|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Release|x64.ActiveCfg = Release|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Release|x64.Build.0 = Release|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Release|x86.ActiveCfg = Release|Any CPU + {A2022203-C08D-4BBA-A24B-96930AA228CC}.Release|x86.Build.0 = Release|Any CPU {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Debug|x64.ActiveCfg = Debug|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Debug|x64.Build.0 = Debug|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Debug|x86.ActiveCfg = Debug|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Debug|x86.Build.0 = Debug|Any CPU {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Release|Any CPU.ActiveCfg = Release|Any CPU {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Release|Any CPU.Build.0 = Release|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Release|x64.ActiveCfg = Release|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Release|x64.Build.0 = Release|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Release|x86.ActiveCfg = Release|Any CPU + {6417D112-F7F3-41D4-AC57-110A9F839BE6}.Release|x86.Build.0 = Release|Any CPU {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Debug|x64.ActiveCfg = Debug|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Debug|x64.Build.0 = Debug|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Debug|x86.ActiveCfg = Debug|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Debug|x86.Build.0 = Debug|Any CPU {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Release|Any CPU.ActiveCfg = Release|Any CPU {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Release|Any CPU.Build.0 = Release|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Release|x64.ActiveCfg = Release|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Release|x64.Build.0 = Release|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Release|x86.ActiveCfg = Release|Any CPU + {7A800A3A-B1AF-41A8-897D-6699A03A50D4}.Release|x86.Build.0 = Release|Any CPU {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Debug|Any CPU.Build.0 = Debug|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Debug|x64.ActiveCfg = Debug|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Debug|x64.Build.0 = Debug|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Debug|x86.ActiveCfg = Debug|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Debug|x86.Build.0 = Debug|Any CPU {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Release|Any CPU.ActiveCfg = Release|Any CPU {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Release|Any CPU.Build.0 = Release|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Release|x64.ActiveCfg = Release|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Release|x64.Build.0 = Release|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Release|x86.ActiveCfg = Release|Any CPU + {887607BC-DD74-4BCE-B9D4-2C7F409A3719}.Release|x86.Build.0 = Release|Any CPU {831A4382-7FDD-468F-9936-59A9AC698B82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {831A4382-7FDD-468F-9936-59A9AC698B82}.Debug|Any CPU.Build.0 = Debug|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Debug|x64.ActiveCfg = Debug|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Debug|x64.Build.0 = Debug|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Debug|x86.ActiveCfg = Debug|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Debug|x86.Build.0 = Debug|Any CPU {831A4382-7FDD-468F-9936-59A9AC698B82}.Release|Any CPU.ActiveCfg = Release|Any CPU {831A4382-7FDD-468F-9936-59A9AC698B82}.Release|Any CPU.Build.0 = Release|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Release|x64.ActiveCfg = Release|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Release|x64.Build.0 = Release|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Release|x86.ActiveCfg = Release|Any CPU + {831A4382-7FDD-468F-9936-59A9AC698B82}.Release|x86.Build.0 = Release|Any CPU {D569948E-358E-4714-B8EE-E7703A747534}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D569948E-358E-4714-B8EE-E7703A747534}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Debug|x64.ActiveCfg = Debug|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Debug|x64.Build.0 = Debug|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Debug|x86.ActiveCfg = Debug|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Debug|x86.Build.0 = Debug|Any CPU {D569948E-358E-4714-B8EE-E7703A747534}.Release|Any CPU.ActiveCfg = Release|Any CPU {D569948E-358E-4714-B8EE-E7703A747534}.Release|Any CPU.Build.0 = Release|Any CPU - {1A173540-19BD-4906-9E7F-18D103D6BF24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1A173540-19BD-4906-9E7F-18D103D6BF24}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1A173540-19BD-4906-9E7F-18D103D6BF24}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1A173540-19BD-4906-9E7F-18D103D6BF24}.Release|Any CPU.Build.0 = Release|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Release|x64.ActiveCfg = Release|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Release|x64.Build.0 = Release|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Release|x86.ActiveCfg = Release|Any CPU + {D569948E-358E-4714-B8EE-E7703A747534}.Release|x86.Build.0 = Release|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Debug|x64.ActiveCfg = Debug|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Debug|x64.Build.0 = Debug|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Debug|x86.ActiveCfg = Debug|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Debug|x86.Build.0 = Debug|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Release|Any CPU.Build.0 = Release|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Release|x64.ActiveCfg = Release|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Release|x64.Build.0 = Release|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Release|x86.ActiveCfg = Release|Any CPU + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {E35EE47E-57B4-493D-8C8D-8B6E3C31158D} = {75E56B30-8520-4CBA-BD44-9E0763FE4942} @@ -70,5 +140,6 @@ Global {7A800A3A-B1AF-41A8-897D-6699A03A50D4} = {75E56B30-8520-4CBA-BD44-9E0763FE4942} {887607BC-DD74-4BCE-B9D4-2C7F409A3719} = {75E56B30-8520-4CBA-BD44-9E0763FE4942} {831A4382-7FDD-468F-9936-59A9AC698B82} = {75E56B30-8520-4CBA-BD44-9E0763FE4942} + {5A20DEFC-2DB9-470D-85AB-6DCC1C645942} = {9904CEF2-9EAD-CB88-3E65-86E3D3F23B93} EndGlobalSection EndGlobal diff --git a/src/ADDomainServices/ADDomainServices/Az.ADDomainServices.psd1 b/src/ADDomainServices/ADDomainServices/Az.ADDomainServices.psd1 index 8dc9fd95d1b9..f67839f6fe9e 100644 --- a/src/ADDomainServices/ADDomainServices/Az.ADDomainServices.psd1 +++ b/src/ADDomainServices/ADDomainServices/Az.ADDomainServices.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-04-10 # @{ @@ -51,19 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ADDomainServices.Autorest/bin/Az.ADDomainServices.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'ADDomainServices.Autorest\Az.ADDomainServices.format.ps1xml' +FormatsToProcess = 'ADDomainServices.Autorest/Az.ADDomainServices.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ADDomainServices.Autorest/Az.ADDomainServices.psm1') @@ -98,7 +98,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','AdDomainServices' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'AdDomainServices' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -123,7 +123,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ADDomainServices/ADDomainServices/ChangeLog.md b/src/ADDomainServices/ADDomainServices/ChangeLog.md index f961f884f8a8..f1151845e7cb 100644 --- a/src/ADDomainServices/ADDomainServices/ChangeLog.md +++ b/src/ADDomainServices/ADDomainServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). ## Version 0.2.3 * Upgraded nuget package to signed package. diff --git a/src/ADDomainServices/ADDomainServices/help/Az.ADDomainServices.md b/src/ADDomainServices/ADDomainServices/help/Az.ADDomainServices.md index 9721a1cec02e..c675dd074527 100644 --- a/src/ADDomainServices/ADDomainServices/help/Az.ADDomainServices.md +++ b/src/ADDomainServices/ADDomainServices/help/Az.ADDomainServices.md @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: AdDomainServices cmdlets The Get Domain Service operation retrieves a json representation of the Domain Service. ### [New-AzADDomainService](New-AzADDomainService.md) -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. ### [New-AzADDomainServiceForestTrustObject](New-AzADDomainServiceForestTrustObject.md) @@ -28,6 +28,6 @@ Create an in-memory object for ReplicaSet. The Delete Domain Service operation deletes an existing Domain Service. ### [Update-AzADDomainService](Update-AzADDomainService.md) -The Update Domain Service operation can be used to update the existing deployment. +The update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. diff --git a/src/ADDomainServices/ADDomainServices/help/Get-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/Get-AzADDomainService.md index 3898bd0a9a13..17ef92bbe122 100644 --- a/src/ADDomainServices/ADDomainServices/help/Get-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/Get-AzADDomainService.md @@ -114,7 +114,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity @@ -184,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService ## NOTES diff --git a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md index 11ac6f934e00..fad5a958ac01 100644 --- a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md @@ -8,29 +8,42 @@ schema: 2.0.0 # New-AzADDomainService ## SYNOPSIS -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. ## SYNTAX +### CreateExpanded (Default) ``` New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - -DomainName -ReplicaSet [-DomainConfigurationType ] - [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-Etag ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] - [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] - [-Location ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ResourceForest ] [-Sku ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + -DomainName [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-Location ] + [-NotificationSettingAdditionalRecipient ] [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] [-ResourceForest ] + [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -The Create Domain Service operation creates a new domain service with the specified parameters. +The create Domain Service operation create a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. ## EXAMPLES @@ -55,9 +68,9 @@ Create a new ADDomainService $replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\ $certificateBytes = Get-Content "certificate.pfx" -AsByteStream $base64String = [System.Convert]::ToBase64String($certificateBytes) -$password = ConvertTo-SecureString -String "****" -AsPlainText -Force +$ldaps_pfx_pass = "MyStrongPassword" -New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $password +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) ``` ```output @@ -86,7 +99,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -105,7 +119,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -120,7 +134,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -134,8 +148,8 @@ Accept wildcard characters: False A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -149,8 +163,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -164,8 +178,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -179,8 +193,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -194,8 +208,8 @@ Accept wildcard characters: False A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -210,7 +224,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -224,8 +238,8 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -237,11 +251,10 @@ Accept wildcard characters: False ### -ForestTrust List of settings for Resource Forest -To construct, see NOTES section for FORESTTRUST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -251,12 +264,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LdapSettingExternalAccess A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -270,8 +313,8 @@ Accept wildcard characters: False A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -287,7 +330,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -302,7 +345,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -317,7 +360,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -347,7 +390,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -361,8 +404,8 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -376,8 +419,8 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -404,14 +447,13 @@ Accept wildcard characters: False ### -ReplicaSet List of ReplicaSets -To construct, see NOTES section for REPLICASET properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] +Parameter Sets: CreateExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -423,7 +465,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -454,7 +496,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -485,7 +527,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -533,7 +575,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService ## NOTES diff --git a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md index 4a07e88b3931..250997430db6 100644 --- a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md +++ b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ADDomainServices-help.xml Module Name: Az.ADDomainServices -online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-AzADDomainServiceForestTrustObject +online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-azaddomainserviceforesttrustobject schema: 2.0.0 --- @@ -121,7 +121,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ForestTrust ## NOTES diff --git a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md index 9574f689bfce..949663cb66e6 100644 --- a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md +++ b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ADDomainServices-help.xml Module Name: Az.ADDomainServices -online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-AzADDomainServiceReplicaSetObject +online version: https://learn.microsoft.com/powershell/module/Az.ADDomainServices/new-azaddomainservicereplicasetobject schema: 2.0.0 --- @@ -77,7 +77,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.ReplicaSet ## NOTES diff --git a/src/ADDomainServices/ADDomainServices/help/Remove-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/Remove-AzADDomainService.md index acbee21dbed4..d1f175f4d9c8 100644 --- a/src/ADDomainServices/ADDomainServices/help/Remove-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/Remove-AzADDomainService.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity diff --git a/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md index e06a135c6fa3..d56563ed9fe3 100644 --- a/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzADDomainService ## SYNOPSIS -The Update Domain Service operation can be used to update the existing deployment. +The update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. ## SYNTAX @@ -16,39 +16,49 @@ The update call only supports the properties listed in the PATCH body. ### UpdateExpanded (Default) ``` Update-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - [-DomainConfigurationType ] [-DomainName ] [-DomainSecuritySettingNtlmV1 ] - [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-Etag ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] - [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] - [-Location ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] - [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-DomainConfigurationType ] [-DomainName ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] + [-ReplicaSet ] [-ResourceForest ] [-Sku ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaJsonString +``` +Update-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzADDomainService -InputObject [-DomainConfigurationType ] - [-DomainName ] [-DomainSecuritySettingNtlmV1 ] - [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-Etag ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] - [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] - [-Location ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] - [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-DomainName ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] + [-ReplicaSet ] [-ResourceForest ] [-Sku ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION -The Update Domain Service operation can be used to update the existing deployment. +The update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. ## EXAMPLES @@ -118,7 +128,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -133,7 +143,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -147,8 +157,8 @@ Accept wildcard characters: False A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -162,8 +172,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -177,8 +187,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -192,8 +202,8 @@ Accept wildcard characters: False A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -207,8 +217,8 @@ Accept wildcard characters: False A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -223,7 +233,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -237,8 +247,8 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -250,11 +260,10 @@ Accept wildcard characters: False ### -ForestTrust List of settings for Resource Forest -To construct, see NOTES section for FORESTTRUST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -266,7 +275,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity @@ -280,43 +288,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -LdapSettingExternalAccess -A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. +### -JsonFilePath +Path of Json file supplied to the Update operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateViaJsonFilePath Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingLdaps -A flag to determine whether or not Secure LDAP is enabled or disabled. +### -JsonString +Json string supplied to the Update operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateViaJsonString Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingPfxCertificateInputFile -Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. -The parameter passed here should be a base64encoded representation of the certificate pfx file.) +### -LdapSettingExternalAccess +A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -326,12 +333,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingPfxCertificatePassword -The password to decrypt the provided Secure LDAP certificate pfx file. +### -LdapSettingLdaps +A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml -Type: System.Security.SecureString -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -341,12 +348,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Location -Resource location +### -LdapSettingPfxCertificateInputFile +Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. +The parameter passed here should be a base64encoded representation of the certificate pfx file.) ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LdapSettingPfxCertificatePassword +The password to decrypt the provided Secure LDAP certificate pfx file. + +```yaml +Type: System.Security.SecureString +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -361,7 +384,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: DomainServiceName Required: True @@ -376,7 +399,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -390,8 +413,8 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -405,8 +428,8 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -433,11 +456,10 @@ Accept wildcard characters: False ### -ReplicaSet List of ReplicaSets -To construct, see NOTES section for REPLICASET properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -452,7 +474,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -468,7 +490,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -483,7 +505,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -499,7 +521,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: False @@ -514,7 +536,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -564,7 +586,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService ## NOTES