From 4006e7449f8e42ab67720bda7f7761165821ce6c Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 26 Mar 2025 13:52:22 +0800 Subject: [PATCH 1/9] ADDomainServices update generation tool version: autorest.powershell v3->v4 --- .../Properties/AssemblyInfo.cs | 27 +++ .../ADDomainServices.Autorest/README.md | 15 +- .../custom/New-AzADDomainService.ps1 | 83 +++++--- ...New-AzADDomainServiceForestTrustObject.ps1 | 9 +- .../New-AzADDomainServiceReplicaSetObject.ps1 | 9 +- .../docs/Az.ADDomainServices.md | 6 +- .../docs/Get-AzADDomainService.md | 3 +- .../docs/New-AzADDomainService.md | 119 +++++++++--- .../New-AzADDomainServiceForestTrustObject.md | 4 +- .../New-AzADDomainServiceReplicaSetObject.md | 4 +- .../docs/Remove-AzADDomainService.md | 1 - .../docs/Update-AzADDomainService.md | 182 ++++++++++-------- .../generate-info.json | 2 +- .../resources/README.md | 11 ++ src/ADDomainServices/ADDomainServices.sln | 89 ++++++++- .../ADDomainServices/Az.ADDomainServices.psd1 | 14 +- .../help/Az.ADDomainServices.md | 4 +- .../help/Get-AzADDomainService.md | 3 +- .../help/New-AzADDomainService.md | 122 +++++++++--- .../New-AzADDomainServiceForestTrustObject.md | 4 +- .../New-AzADDomainServiceReplicaSetObject.md | 4 +- .../help/Remove-AzADDomainService.md | 1 - .../help/Update-AzADDomainService.md | 182 ++++++++++-------- tools/CreateMappings_rules.json | 4 + 24 files changed, 592 insertions(+), 310 deletions(-) create mode 100644 src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/ADDomainServices/ADDomainServices.Autorest/resources/README.md 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..5156c95e80af 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 @@ -135,8 +126,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..6787d81a1afb 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,7 +54,7 @@ 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)] @@ -85,37 +93,37 @@ param( ${DomainName}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] + [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])] + [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])] + [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])] + [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])] + [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}, @@ -126,31 +134,30 @@ param( ${Etag}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [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()] [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])] + [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])] + [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}, @@ -182,25 +189,24 @@ param( ${NotificationSettingAdditionalRecipient}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] + [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])] + [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()] [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()] @@ -218,17 +224,30 @@ param( [Parameter()] [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..f8ae651b1f56 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: d46ddeb5-a552-49c8-8bf6-58e167543364 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..b4f90dfd84c1 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md @@ -8,28 +8,58 @@ 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 -DomainName -JsonFilePath + [-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] + [] +``` + +### CreateViaJsonString +``` +New-AzADDomainService -Name -ResourceGroupName -DomainName -JsonString + [-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] + [] ``` ## 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 +115,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 @@ -133,7 +164,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -148,7 +179,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -163,7 +194,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -178,7 +209,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -193,7 +224,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -223,7 +254,7 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync +Type: System.String Parameter Sets: (All) Aliases: @@ -236,10 +267,9 @@ 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[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] Parameter Sets: (All) Aliases: @@ -250,11 +280,41 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -269,7 +329,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -360,7 +420,7 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins +Type: System.String Parameter Sets: (All) Aliases: @@ -375,7 +435,7 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins +Type: System.String Parameter Sets: (All) Aliases: @@ -403,14 +463,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[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -532,7 +591,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..098ef3004bf6 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": "2b102e59-a86e-4d8f-8180-ec68afad747e" } 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..a76487e97d03 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", "{76F411A9-AB29-4DDF-9DBF-547E50C60C83}" 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 + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|Any CPU.Build.0 = Debug|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x64.ActiveCfg = Debug|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x64.Build.0 = Debug|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x86.ActiveCfg = Debug|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x86.Build.0 = Debug|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|Any CPU.ActiveCfg = Release|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|Any CPU.Build.0 = Release|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x64.ActiveCfg = Release|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x64.Build.0 = Release|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x86.ActiveCfg = Release|Any CPU + {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.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} + {76F411A9-AB29-4DDF-9DBF-547E50C60C83} = {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..bd45374008e4 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-03-26 # @{ @@ -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.0.2'; }) # 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/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..2cc2b2f3d537 100644 --- a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md @@ -8,29 +8,58 @@ 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] [] +``` + +### CreateViaJsonFilePath +``` +New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -DomainName [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-Location ] + [-NotificationSettingAdditionalRecipient ] [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] [-ResourceForest ] + [-Sku ] [-Tag ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -DomainName [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] + [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] + [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] + [-LdapSettingPfxCertificatePassword ] [-Location ] + [-NotificationSettingAdditionalRecipient ] [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] [-ResourceForest ] + [-Sku ] [-Tag ] -JsonString [-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 +84,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 +115,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 @@ -134,7 +164,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -149,7 +179,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -164,7 +194,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -179,7 +209,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -194,7 +224,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -224,7 +254,7 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync +Type: System.String Parameter Sets: (All) Aliases: @@ -237,10 +267,9 @@ 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[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] Parameter Sets: (All) Aliases: @@ -251,11 +280,41 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -270,7 +329,7 @@ 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 +Type: System.String Parameter Sets: (All) Aliases: @@ -361,7 +420,7 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins +Type: System.String Parameter Sets: (All) Aliases: @@ -376,7 +435,7 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins +Type: System.String Parameter Sets: (All) Aliases: @@ -404,14 +463,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[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -533,7 +591,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 diff --git a/tools/CreateMappings_rules.json b/tools/CreateMappings_rules.json index 6d69628af67a..ba7c7f06c4cb 100644 --- a/tools/CreateMappings_rules.json +++ b/tools/CreateMappings_rules.json @@ -972,4 +972,8 @@ "module": "Pinecone", "alias": "Pinecone" }, + { + "module": "ADDomainServices", + "alias": "ADDomainServices" + } ] From 2a1d79c3f49d5a4cac1144c3050088dbe10fcc71 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 27 Mar 2025 16:19:04 +0800 Subject: [PATCH 2/9] update changelog --- src/ADDomainServices/ADDomainServices/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ADDomainServices/ADDomainServices/ChangeLog.md b/src/ADDomainServices/ADDomainServices/ChangeLog.md index f961f884f8a8..b29d2ea92952 100644 --- a/src/ADDomainServices/ADDomainServices/ChangeLog.md +++ b/src/ADDomainServices/ADDomainServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Implemented code refactoring, no behavior changes expected. ## Version 0.2.3 * Upgraded nuget package to signed package. From 577d71fef2d352d67fb8a38f028c19430ee1dc7c Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 9 Apr 2025 15:20:56 +0800 Subject: [PATCH 3/9] update README.md file --- .../Properties/AssemblyInfo.cs | 1 - .../ADDomainServices.Autorest/README.md | 2 +- .../docs/Az.ADDomainServices.md | 2 +- .../docs/Update-AzADDomainService.md | 92 +++++------------ .../generate-info.json | 2 +- src/ADDomainServices/ADDomainServices.sln | 28 +++--- .../ADDomainServices/Az.ADDomainServices.psd1 | 4 +- .../help/Update-AzADDomainService.md | 92 +++++------------ .../examples/Get-AzArizeAIOrganization.md | 99 ------------------- .../examples/New-AzArizeAIOrganization.md | 51 ---------- .../examples/Remove-AzArizeAIOrganization.md | 7 -- .../examples/Update-AzArizeAIOrganization.md | 50 ---------- 12 files changed, 67 insertions(+), 363 deletions(-) delete mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md delete mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md delete mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md delete mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md diff --git a/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs b/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs index 399218a07d7a..7b09da4b9507 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs +++ b/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs @@ -24,4 +24,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 5156c95e80af..6b5e0afed5c1 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/README.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/README.md @@ -64,7 +64,7 @@ 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) remove: true # Remove the set-* cmdlet - where: diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Az.ADDomainServices.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Az.ADDomainServices.md index f8ae651b1f56..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: d46ddeb5-a552-49c8-8bf6-58e167543364 +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 diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md index da749ff90a29..f9d212a76803 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md @@ -41,20 +41,6 @@ Update-AzADDomainService -InputObject [-DomainConfig [-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 call only supports the properties listed in the PATCH body. @@ -126,7 +112,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -141,7 +127,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -156,7 +142,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -171,7 +157,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -186,7 +172,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -201,7 +187,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -216,7 +202,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -231,7 +217,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -246,7 +232,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -261,7 +247,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -286,42 +272,12 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonString -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: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -336,7 +292,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -352,7 +308,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -367,7 +323,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -382,7 +338,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Parameter Sets: UpdateExpanded Aliases: DomainServiceName Required: True @@ -397,7 +353,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -412,7 +368,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -427,7 +383,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -457,7 +413,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -472,7 +428,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -488,7 +444,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Parameter Sets: UpdateExpanded Aliases: Required: True @@ -503,7 +459,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -519,7 +475,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -534,7 +490,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False diff --git a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json index 098ef3004bf6..d024ea62ea97 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json +++ b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "2b102e59-a86e-4d8f-8180-ec68afad747e" + "generate_Id": "7f29406b-355e-4bd3-b572-c6ef28c3a172" } diff --git a/src/ADDomainServices/ADDomainServices.sln b/src/ADDomainServices/ADDomainServices.sln index a76487e97d03..e3deaa3c68cb 100644 --- a/src/ADDomainServices/ADDomainServices.sln +++ b/src/ADDomainServices/ADDomainServices.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADDomainServices", "ADDomai EndProject 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", "{76F411A9-AB29-4DDF-9DBF-547E50C60C83}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ADDomainServices", "..\..\generated\ADDomainServices\ADDomainServices.Autorest\Az.ADDomainServices.csproj", "{4B2746A3-2FE0-41EA-B3B0-16649A059390}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {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 - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|Any CPU.Build.0 = Debug|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x64.ActiveCfg = Debug|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x64.Build.0 = Debug|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x86.ActiveCfg = Debug|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Debug|x86.Build.0 = Debug|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|Any CPU.ActiveCfg = Release|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|Any CPU.Build.0 = Release|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x64.ActiveCfg = Release|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x64.Build.0 = Release|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x86.ActiveCfg = Release|Any CPU - {76F411A9-AB29-4DDF-9DBF-547E50C60C83}.Release|x86.Build.0 = Release|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x64.ActiveCfg = Debug|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x64.Build.0 = Debug|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x86.ActiveCfg = Debug|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x86.Build.0 = Debug|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|Any CPU.Build.0 = Release|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x64.ActiveCfg = Release|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x64.Build.0 = Release|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x86.ActiveCfg = Release|Any CPU + {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +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} - {76F411A9-AB29-4DDF-9DBF-547E50C60C83} = {9904CEF2-9EAD-CB88-3E65-86E3D3F23B93} + {4B2746A3-2FE0-41EA-B3B0-16649A059390} = {9904CEF2-9EAD-CB88-3E65-86E3D3F23B93} EndGlobalSection EndGlobal diff --git a/src/ADDomainServices/ADDomainServices/Az.ADDomainServices.psd1 b/src/ADDomainServices/ADDomainServices/Az.ADDomainServices.psd1 index bd45374008e4..fb0669317915 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: 2025-03-26 +# Generated on: 2025-04-09 # @{ @@ -51,7 +51,7 @@ 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.2'; }) +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' diff --git a/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md index d56563ed9fe3..9f4356ee6eb7 100644 --- a/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md @@ -28,20 +28,6 @@ Update-AzADDomainService -Name -ResourceGroupName [-Subscripti [] ``` -### 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 ] @@ -128,7 +114,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -143,7 +129,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -158,7 +144,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -173,7 +159,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -188,7 +174,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -203,7 +189,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -218,7 +204,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -233,7 +219,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -248,7 +234,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -263,7 +249,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -288,42 +274,12 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Update operation - -```yaml -Type: System.String -Parameter Sets: UpdateViaJsonString -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: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -338,7 +294,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -354,7 +310,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -369,7 +325,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -384,7 +340,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath +Parameter Sets: UpdateExpanded Aliases: DomainServiceName Required: True @@ -399,7 +355,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -414,7 +370,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -429,7 +385,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -459,7 +415,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -474,7 +430,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -490,7 +446,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath +Parameter Sets: UpdateExpanded Aliases: Required: True @@ -505,7 +461,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -521,7 +477,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -536,7 +492,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md deleted file mode 100644 index 1a1717da8b25..000000000000 --- a/src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md +++ /dev/null @@ -1,99 +0,0 @@ -### Example 1: Get all Organizations in a Resource Group -```powershell -Get-AzArizeAIOrganization -ResourceGroupName QM_clitest_qumulo2_eastus -``` - -```output - -Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum - ulo2_eastus/providers/arizeai.observabilityeval/organizations/test-instance-cli-1 -IdentityPrincipalId : -IdentityTenantId : -IdentityType : -IdentityUserAssignedIdentity : { - } -Location : East US -MarketplaceSubscriptionId : -MarketplaceSubscriptionStatus : PendingFulfillmentStart -Name : test-instance-cli-1 -OfferDetailOfferId : arize-liftr-0 -OfferDetailPlanId : liftr-test-0 -OfferDetailPlanName : Liftr Test 0 -OfferDetailPublisherId : arizeai1657829589668 -OfferDetailTermId : gmz7xq9ge3py -OfferDetailTermUnit : P1M -PartnerPropertyDescription : -ProvisioningState : Accepted -ResourceGroupName : QM_clitest_qumulo2_eastus -SingleSignOnPropertyAadDomain : -SingleSignOnPropertyEnterpriseAppId : -SingleSignOnPropertyState : -SingleSignOnPropertyType : -SingleSignOnPropertyUrl : -SystemDataCreatedAt : 3/2/2025 1:48:39 PM -SystemDataCreatedBy : aggarwalsw@microsoft.com -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 3/2/2025 1:48:39 PM -SystemDataLastModifiedBy : aggarwalsw@microsoft.com -SystemDataLastModifiedByType : User -Tag : { - } -Type : arizeai.observabilityeval/organizations -UserEmailAddress : aggarwalsw@microsoft.com -UserFirstName : -UserLastName : -UserPhoneNumber : -UserUpn : aggarwalsw@microsoft.com -``` - -This command will get all organization details in a given Resoure group. - -### Example 2: Get a specific Organization in a Resource Group -```powershell -Get-AzArizeAIOrganization -ResourceGroupName QM_clitest_qumulo2_eastus -Name test-instance-cli-1 -``` - -```output -Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum - ulo2_eastus/providers/arizeai.observabilityeval/organizations/test-instance-cli-1 -IdentityPrincipalId : -IdentityTenantId : -IdentityType : -IdentityUserAssignedIdentity : { - } -Location : East US -MarketplaceSubscriptionId : a45bd40f-e8c5-483d-c972-a40fe50c03ba -MarketplaceSubscriptionStatus : PendingFulfillmentStart -Name : test-instance-cli-1 -OfferDetailOfferId : arize-liftr-0 -OfferDetailPlanId : liftr-test-0 -OfferDetailPlanName : Liftr Test 0 -OfferDetailPublisherId : arizeai1657829589668 -OfferDetailTermId : gmz7xq9ge3py -OfferDetailTermUnit : P1M -PartnerPropertyDescription : -ProvisioningState : Accepted -ResourceGroupName : QM_clitest_qumulo2_eastus -SingleSignOnPropertyAadDomain : -SingleSignOnPropertyEnterpriseAppId : -SingleSignOnPropertyState : -SingleSignOnPropertyType : -SingleSignOnPropertyUrl : -SystemDataCreatedAt : 3/2/2025 1:48:39 PM -SystemDataCreatedBy : aggarwalsw@microsoft.com -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 3/2/2025 1:48:39 PM -SystemDataLastModifiedBy : aggarwalsw@microsoft.com -SystemDataLastModifiedByType : User -Tag : { - } -Type : arizeai.observabilityeval/organizations -UserEmailAddress : aggarwalsw@microsoft.com -UserFirstName : -UserLastName : -UserPhoneNumber : -UserUpn : aggarwalsw@microsoft.com -``` - -This command will get all organization details for a resource name in a given subscription. - diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md deleted file mode 100644 index c502daaf07e1..000000000000 --- a/src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md +++ /dev/null @@ -1,51 +0,0 @@ -### Example 1: Create a new Organization in a Resource Group -```powershell -New-AzArizeAIOrganization -Name "test-cli-instance-4" -Location "East US" -ResourceGroupName "QM_clitest_qumulo2_eastus" -SubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -MarketplaceSubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -OfferDetailOfferId "arize-liftr-0" -OfferDetailPlanId "liftr-test-0" -OfferDetailPlanName "Liftr Test 0" -OfferDetailTermUnit "P1M" -OfferDetailPublisherId "arizeai1657829589668" -OfferDetailTermId "gmz7xq9ge3py" -Tag @{"TestName" = "TestValue"} -UserEmailAddress "aggarwalsw@microsoft.com" -UserFirstName "" -UserLastName "" -UserUpn "aggarwalsw@microsoft.com" -``` - -```output - -Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum - ulo2_eastus/providers/ArizeAi.ObservabilityEval/organizations/test-cli-instance-4 -IdentityPrincipalId : -IdentityTenantId : -IdentityType : -IdentityUserAssignedIdentity : { - } -Location : eastus -MarketplaceSubscriptionId : fc35d936-3b89-41f8-8110-a24b56826c37 -MarketplaceSubscriptionStatus : PendingFulfillmentStart -Name : test-cli-instance-4 -OfferDetailOfferId : arize-liftr-0 -OfferDetailPlanId : liftr-test-0 -OfferDetailPlanName : Liftr Test 0 -OfferDetailPublisherId : arizeai1657829589668 -OfferDetailTermId : gmz7xq9ge3py -OfferDetailTermUnit : -PartnerPropertyDescription : -ProvisioningState : Succeeded -ResourceGroupName : QM_clitest_qumulo2_eastus -SingleSignOnPropertyAadDomain : -SingleSignOnPropertyEnterpriseAppId : -SingleSignOnPropertyState : -SingleSignOnPropertyType : -SingleSignOnPropertyUrl : -SystemDataCreatedAt : 3/2/2025 1:54:01 PM -SystemDataCreatedBy : aggarwalsw@microsoft.com -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 3/2/2025 3:05:11 PM -SystemDataLastModifiedBy : aggarwalsw@microsoft.com -SystemDataLastModifiedByType : User -Tag : { - "TestName": "TestValue" - } -Type : arizeai.observabilityeval/organizations -UserEmailAddress : aggarwalsw@microsoft.com -UserFirstName : -UserLastName : -UserPhoneNumber : -UserUpn : aggarwalsw@microsoft.com -``` - -This command will create a new Pinecone Resource - diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md deleted file mode 100644 index 795c8ebe6a98..000000000000 --- a/src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md +++ /dev/null @@ -1,7 +0,0 @@ -### Example 1: Remove an Organization -```powershell -Remove-AzArizeAIOrganization -ResourceGroupName QM_clitest_qumulo2_eastus -Name test-instance-cli-1 -``` - -This command deletes the ArizeAI resource. - diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md deleted file mode 100644 index df3b52437625..000000000000 --- a/src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md +++ /dev/null @@ -1,50 +0,0 @@ -### Example 1: Update an existing Organization -```powershell -Update-AzArizeAIOrganization -Name "test-cli-instance-4" -ResourceGroupName "QM_clitest_qumulo2_eastus" -SubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -MarketplaceSubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -OfferDetailOfferId "arize-liftr-0" -OfferDetailPlanId "liftr-test-0" -OfferDetailPlanName "Liftr Test 0" -OfferDetailTermUnit "P1M" -OfferDetailPublisherId "arizeai1657829589668" -OfferDetailTermId "gmz7xq9ge3py" -Tag @{"TestName1" = "TestValue1"} -UserEmailAddress "aggarwalsw@microsoft.com" -UserFirstName "" -UserLastName "" -UserUpn "aggarwalsw@microsoft.com" -``` - -```output -Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum - ulo2_eastus/providers/arizeai.observabilityeval/organizations/test-instance-cli-1 -IdentityPrincipalId : -IdentityTenantId : -IdentityType : -IdentityUserAssignedIdentity : { - } -Location : East US -MarketplaceSubscriptionId : -MarketplaceSubscriptionStatus : PendingFulfillmentStart -Name : test-instance-cli-1 -OfferDetailOfferId : arize-liftr-0 -OfferDetailPlanId : liftr-test-0 -OfferDetailPlanName : Liftr Test 0 -OfferDetailPublisherId : arizeai1657829589668 -OfferDetailTermId : gmz7xq9ge3py -OfferDetailTermUnit : P1M -PartnerPropertyDescription : -ProvisioningState : Accepted -ResourceGroupName : QM_clitest_qumulo2_eastus -SingleSignOnPropertyAadDomain : -SingleSignOnPropertyEnterpriseAppId : -SingleSignOnPropertyState : -SingleSignOnPropertyType : -SingleSignOnPropertyUrl : -SystemDataCreatedAt : 3/2/2025 1:48:39 PM -SystemDataCreatedBy : aggarwalsw@microsoft.com -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 3/2/2025 1:48:39 PM -SystemDataLastModifiedBy : aggarwalsw@microsoft.com -SystemDataLastModifiedByType : User -Tag : { - "TestName1": "TestValue1" - } -Type : arizeai.observabilityeval/organizations -UserEmailAddress : aggarwalsw@microsoft.com -UserFirstName : -UserLastName : -UserPhoneNumber : -UserUpn : aggarwalsw@microsoft.com -``` - -This command updates the ArizeAI organization. - From ea86b3a1329d86fe0f04d0f7b9b88c5992dcf1c0 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 9 Apr 2025 15:39:18 +0800 Subject: [PATCH 4/9] update README.md file --- .../Properties/AssemblyInfo.cs | 1 + .../ADDomainServices.Autorest/README.md | 2 +- .../custom/New-AzADDomainService.ps1 | 84 ++++++++++++----- .../docs/New-AzADDomainService.md | 92 +++++++++++-------- .../docs/Update-AzADDomainService.md | 92 ++++++++++++++----- .../generate-info.json | 2 +- src/ADDomainServices/ADDomainServices.sln | 28 +++--- .../ADDomainServices/ChangeLog.md | 4 +- .../help/New-AzADDomainService.md | 88 ++++++++++-------- .../help/Update-AzADDomainService.md | 92 ++++++++++++++----- 10 files changed, 321 insertions(+), 164 deletions(-) diff --git a/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs b/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs index 7b09da4b9507..399218a07d7a 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs +++ b/src/ADDomainServices/ADDomainServices.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,4 @@ [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 6b5e0afed5c1..583f9c4d835b 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/README.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/README.md @@ -64,7 +64,7 @@ directive: "description": "HTTP 200 (OK) should be returned if the object exists and was deleted successfully." } - where: - variant: ^(Create|Update)(?!.*?Expanded) + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true # Remove the set-* cmdlet - where: diff --git a/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 b/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 index 6787d81a1afb..eb2c53a58b5e 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 +++ b/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 @@ -57,21 +57,27 @@ function New-AzADDomainService { [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] @@ -79,150 +85,178 @@ param( # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, - [Parameter()] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type ${DomainConfigurationType}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', 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()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not NtlmV1 is enabled or disabled. ${DomainSecuritySettingNtlmV1}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ${DomainSecuritySettingSyncKerberosPassword}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ${DomainSecuritySettingSyncNtlmPassword}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ${DomainSecuritySettingSyncOnPremPassword}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not TlsV1 is enabled or disabled. ${DomainSecuritySettingTlsV1}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Resource etag ${Etag}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Enabled or Disabled flag to turn on Group-based filtered sync ${FilteredSync}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[]] # List of settings for Resource Forest ${ForestTrust}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ${LdapSettingExternalAccess}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # A flag to determine whether or not Secure LDAP is enabled or disabled. ${LdapSettingLdaps}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients ${NotificationSettingAdditionalRecipient}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Should domain controller admins be notified ${NotificationSettingNotifyDcAdmin}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Should global admins be notified ${NotificationSettingNotifyGlobalAdmin}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[]] # List of ReplicaSets ${ReplicaSet}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Resource Forest ${ResourceForest}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type ${Sku}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IResourceTags]))] [System.Collections.Hashtable] diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md index b4f90dfd84c1..56cda2a15f8c 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md @@ -28,10 +28,10 @@ New-AzADDomainService -Name -ResourceGroupName -DomainName ] ``` -### CreateViaJsonFilePath +### CreateViaIdentityExpanded ``` -New-AzADDomainService -Name -ResourceGroupName -DomainName -JsonFilePath - [-SubscriptionId ] [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] +New-AzADDomainService -InputObject -DomainName + [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] @@ -43,18 +43,17 @@ New-AzADDomainService -Name -ResourceGroupName -DomainName ] ``` +### CreateViaJsonFilePath +``` +New-AzADDomainService -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ### CreateViaJsonString ``` -New-AzADDomainService -Name -ResourceGroupName -DomainName -JsonString - [-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] +New-AzADDomainService -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -135,7 +134,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -150,7 +149,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, CreateViaIdentityExpanded Aliases: Required: True @@ -165,7 +164,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -180,7 +179,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -195,7 +194,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -210,7 +209,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -225,7 +224,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -240,7 +239,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -255,7 +254,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -270,7 +269,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -280,6 +279,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -JsonFilePath Path of Json file supplied to the Create operation @@ -315,7 +329,7 @@ A flag to determine whether or not Secure LDAP access over the internet is enabl ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -330,7 +344,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -346,7 +360,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -361,7 +375,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -376,7 +390,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -391,7 +405,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: DomainServiceName Required: True @@ -406,7 +420,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -421,7 +435,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -436,7 +450,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -466,7 +480,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -481,7 +495,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -497,7 +511,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -512,7 +526,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -528,7 +542,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -543,7 +557,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -589,6 +603,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity + ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md index f9d212a76803..da749ff90a29 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/Update-AzADDomainService.md @@ -41,6 +41,20 @@ Update-AzADDomainService -InputObject [-DomainConfig [-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 call only supports the properties listed in the PATCH body. @@ -112,7 +126,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -127,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 @@ -142,7 +156,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -157,7 +171,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -172,7 +186,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -187,7 +201,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -202,7 +216,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -217,7 +231,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -232,7 +246,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -247,7 +261,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -272,12 +286,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +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: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -292,7 +336,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -308,7 +352,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -323,7 +367,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -338,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 @@ -353,7 +397,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -368,7 +412,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -383,7 +427,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -413,7 +457,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -428,7 +472,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -444,7 +488,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -459,7 +503,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -475,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 @@ -490,7 +534,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False diff --git a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json index d024ea62ea97..db9eec704ce4 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json +++ b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "7f29406b-355e-4bd3-b572-c6ef28c3a172" + "generate_Id": "f005e4ca-547f-4c7d-ae4d-e74fbea523ce" } diff --git a/src/ADDomainServices/ADDomainServices.sln b/src/ADDomainServices/ADDomainServices.sln index e3deaa3c68cb..48b419620d8f 100644 --- a/src/ADDomainServices/ADDomainServices.sln +++ b/src/ADDomainServices/ADDomainServices.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADDomainServices", "ADDomai EndProject 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", "{4B2746A3-2FE0-41EA-B3B0-16649A059390}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ADDomainServices", "..\..\generated\ADDomainServices\ADDomainServices.Autorest\Az.ADDomainServices.csproj", "{F94D6053-4040-4F1A-A38E-329C0E0769F7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {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 - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x64.ActiveCfg = Debug|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x64.Build.0 = Debug|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x86.ActiveCfg = Debug|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Debug|x86.Build.0 = Debug|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|Any CPU.Build.0 = Release|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x64.ActiveCfg = Release|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x64.Build.0 = Release|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x86.ActiveCfg = Release|Any CPU - {4B2746A3-2FE0-41EA-B3B0-16649A059390}.Release|x86.Build.0 = Release|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x64.ActiveCfg = Debug|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x64.Build.0 = Debug|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x86.ActiveCfg = Debug|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x86.Build.0 = Debug|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|Any CPU.Build.0 = Release|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x64.ActiveCfg = Release|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x64.Build.0 = Release|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x86.ActiveCfg = Release|Any CPU + {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +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} - {4B2746A3-2FE0-41EA-B3B0-16649A059390} = {9904CEF2-9EAD-CB88-3E65-86E3D3F23B93} + {F94D6053-4040-4F1A-A38E-329C0E0769F7} = {9904CEF2-9EAD-CB88-3E65-86E3D3F23B93} EndGlobalSection EndGlobal diff --git a/src/ADDomainServices/ADDomainServices/ChangeLog.md b/src/ADDomainServices/ADDomainServices/ChangeLog.md index b29d2ea92952..ed812eb48949 100644 --- a/src/ADDomainServices/ADDomainServices/ChangeLog.md +++ b/src/ADDomainServices/ADDomainServices/ChangeLog.md @@ -18,7 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release -* Implemented code refactoring, no behavior changes expected. +* Az.ADDomainServices module is migrated to Autorest PowerShell v4: + * Modified cmdlet `New-AzADDomainService`: Added parameters `-JsonFilePath` and `-JsonString`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateViaJsonString`. + * Modified cmdlet `Update-AzADDomainService`: Removed parameter `-Location`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Parameter set `UpdateExpanded` removed parameter `-Location`. Parameter set `UpdateViaIdentityExpanded` removed parameter `-Location`. ## Version 0.2.3 * Upgraded nuget package to signed package. diff --git a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md index 2cc2b2f3d537..c72cd954729a 100644 --- a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md @@ -31,22 +31,21 @@ New-AzADDomainService -Name -ResourceGroupName [-SubscriptionI ### CreateViaJsonFilePath ``` New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - -DomainName [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] - [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] - [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] - [-LdapSettingLdaps ] [-LdapSettingPfxCertificateInputFile ] - [-LdapSettingPfxCertificatePassword ] [-Location ] - [-NotificationSettingAdditionalRecipient ] [-NotificationSettingNotifyDcAdmin ] - [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] [-ResourceForest ] - [-Sku ] [-Tag ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - -DomainName [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzADDomainService -InputObject -DomainName + [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] [-Etag ] [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] @@ -54,7 +53,7 @@ New-AzADDomainService -Name -ResourceGroupName [-SubscriptionI [-LdapSettingPfxCertificatePassword ] [-Location ] [-NotificationSettingAdditionalRecipient ] [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] [-ResourceForest ] - [-Sku ] [-Tag ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -135,7 +134,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -150,7 +149,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, CreateViaIdentityExpanded Aliases: Required: True @@ -165,7 +164,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -180,7 +179,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -195,7 +194,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -210,7 +209,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -225,7 +224,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -240,7 +239,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -255,7 +254,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -270,7 +269,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -280,6 +279,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -JsonFilePath Path of Json file supplied to the Create operation @@ -315,7 +329,7 @@ A flag to determine whether or not Secure LDAP access over the internet is enabl ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -330,7 +344,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -346,7 +360,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -361,7 +375,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -376,7 +390,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -391,7 +405,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: DomainServiceName Required: True @@ -406,7 +420,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -421,7 +435,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -436,7 +450,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -466,7 +480,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -481,7 +495,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -497,7 +511,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -512,7 +526,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -528,7 +542,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -543,7 +557,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded Aliases: Required: False @@ -589,6 +603,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity + ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService diff --git a/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md index 9f4356ee6eb7..d56563ed9fe3 100644 --- a/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/Update-AzADDomainService.md @@ -28,6 +28,20 @@ Update-AzADDomainService -Name -ResourceGroupName [-Subscripti [] ``` +### 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 ] @@ -114,7 +128,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -129,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 @@ -144,7 +158,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -159,7 +173,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -174,7 +188,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -189,7 +203,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -204,7 +218,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -219,7 +233,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -234,7 +248,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -249,7 +263,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -274,12 +288,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +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: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -294,7 +338,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -310,7 +354,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -325,7 +369,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -340,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 @@ -355,7 +399,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -370,7 +414,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -385,7 +429,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -415,7 +459,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -430,7 +474,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -446,7 +490,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -461,7 +505,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -477,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 @@ -492,7 +536,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False From 37097f531d3c02bfa2b2b11770c9386e3d56d909 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 9 Apr 2025 16:09:06 +0800 Subject: [PATCH 5/9] update changelog --- src/ADDomainServices/ADDomainServices/ChangeLog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ADDomainServices/ADDomainServices/ChangeLog.md b/src/ADDomainServices/ADDomainServices/ChangeLog.md index ed812eb48949..35f8077f5cd2 100644 --- a/src/ADDomainServices/ADDomainServices/ChangeLog.md +++ b/src/ADDomainServices/ADDomainServices/ChangeLog.md @@ -19,8 +19,8 @@ --> ## Upcoming Release * Az.ADDomainServices module is migrated to Autorest PowerShell v4: - * Modified cmdlet `New-AzADDomainService`: Added parameters `-JsonFilePath` and `-JsonString`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateViaJsonString`. - * Modified cmdlet `Update-AzADDomainService`: Removed parameter `-Location`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Parameter set `UpdateExpanded` removed parameter `-Location`. Parameter set `UpdateViaIdentityExpanded` removed parameter `-Location`. + * Modified cmdlet `New-AzADDomainService`: Added parameters `-InputObject`, `-JsonString` and `-JsonFilePath`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateViaJsonString`. Added parameter set `CreateExpanded`. Added parameter set `CreateViaIdentityExpanded`. + * Modified cmdlet `Update-AzADDomainService`: Removed parameter `-Location`. Added parameters `-JsonFilePath` and `-JsonString`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Parameter set `UpdateExpanded` removed parameter `-Location`. Parameter set `UpdateViaIdentityExpanded` removed parameter `-Location`. Added parameter set `UpdateViaJsonString`. Added parameter set `UpdateViaJsonFilePath`. ## Version 0.2.3 * Upgraded nuget package to signed package. From 740f3b85e9a88b9742ab8580ce9ef723a6522f9a Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 9 Apr 2025 17:11:59 +0800 Subject: [PATCH 6/9] update --- .../examples/Get-AzArizeAIOrganization.md | 99 +++++++++++++++++++ .../examples/New-AzArizeAIOrganization.md | 51 ++++++++++ .../examples/Remove-AzArizeAIOrganization.md | 7 ++ .../examples/Update-AzArizeAIOrganization.md | 50 ++++++++++ 4 files changed, 207 insertions(+) create mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md create mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md create mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md create mode 100644 src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md new file mode 100644 index 000000000000..1a1717da8b25 --- /dev/null +++ b/src/ArizeAI/ArizeAI.Autorest/examples/Get-AzArizeAIOrganization.md @@ -0,0 +1,99 @@ +### Example 1: Get all Organizations in a Resource Group +```powershell +Get-AzArizeAIOrganization -ResourceGroupName QM_clitest_qumulo2_eastus +``` + +```output + +Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum + ulo2_eastus/providers/arizeai.observabilityeval/organizations/test-instance-cli-1 +IdentityPrincipalId : +IdentityTenantId : +IdentityType : +IdentityUserAssignedIdentity : { + } +Location : East US +MarketplaceSubscriptionId : +MarketplaceSubscriptionStatus : PendingFulfillmentStart +Name : test-instance-cli-1 +OfferDetailOfferId : arize-liftr-0 +OfferDetailPlanId : liftr-test-0 +OfferDetailPlanName : Liftr Test 0 +OfferDetailPublisherId : arizeai1657829589668 +OfferDetailTermId : gmz7xq9ge3py +OfferDetailTermUnit : P1M +PartnerPropertyDescription : +ProvisioningState : Accepted +ResourceGroupName : QM_clitest_qumulo2_eastus +SingleSignOnPropertyAadDomain : +SingleSignOnPropertyEnterpriseAppId : +SingleSignOnPropertyState : +SingleSignOnPropertyType : +SingleSignOnPropertyUrl : +SystemDataCreatedAt : 3/2/2025 1:48:39 PM +SystemDataCreatedBy : aggarwalsw@microsoft.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 3/2/2025 1:48:39 PM +SystemDataLastModifiedBy : aggarwalsw@microsoft.com +SystemDataLastModifiedByType : User +Tag : { + } +Type : arizeai.observabilityeval/organizations +UserEmailAddress : aggarwalsw@microsoft.com +UserFirstName : +UserLastName : +UserPhoneNumber : +UserUpn : aggarwalsw@microsoft.com +``` + +This command will get all organization details in a given Resoure group. + +### Example 2: Get a specific Organization in a Resource Group +```powershell +Get-AzArizeAIOrganization -ResourceGroupName QM_clitest_qumulo2_eastus -Name test-instance-cli-1 +``` + +```output +Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum + ulo2_eastus/providers/arizeai.observabilityeval/organizations/test-instance-cli-1 +IdentityPrincipalId : +IdentityTenantId : +IdentityType : +IdentityUserAssignedIdentity : { + } +Location : East US +MarketplaceSubscriptionId : a45bd40f-e8c5-483d-c972-a40fe50c03ba +MarketplaceSubscriptionStatus : PendingFulfillmentStart +Name : test-instance-cli-1 +OfferDetailOfferId : arize-liftr-0 +OfferDetailPlanId : liftr-test-0 +OfferDetailPlanName : Liftr Test 0 +OfferDetailPublisherId : arizeai1657829589668 +OfferDetailTermId : gmz7xq9ge3py +OfferDetailTermUnit : P1M +PartnerPropertyDescription : +ProvisioningState : Accepted +ResourceGroupName : QM_clitest_qumulo2_eastus +SingleSignOnPropertyAadDomain : +SingleSignOnPropertyEnterpriseAppId : +SingleSignOnPropertyState : +SingleSignOnPropertyType : +SingleSignOnPropertyUrl : +SystemDataCreatedAt : 3/2/2025 1:48:39 PM +SystemDataCreatedBy : aggarwalsw@microsoft.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 3/2/2025 1:48:39 PM +SystemDataLastModifiedBy : aggarwalsw@microsoft.com +SystemDataLastModifiedByType : User +Tag : { + } +Type : arizeai.observabilityeval/organizations +UserEmailAddress : aggarwalsw@microsoft.com +UserFirstName : +UserLastName : +UserPhoneNumber : +UserUpn : aggarwalsw@microsoft.com +``` + +This command will get all organization details for a resource name in a given subscription. + diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md new file mode 100644 index 000000000000..c502daaf07e1 --- /dev/null +++ b/src/ArizeAI/ArizeAI.Autorest/examples/New-AzArizeAIOrganization.md @@ -0,0 +1,51 @@ +### Example 1: Create a new Organization in a Resource Group +```powershell +New-AzArizeAIOrganization -Name "test-cli-instance-4" -Location "East US" -ResourceGroupName "QM_clitest_qumulo2_eastus" -SubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -MarketplaceSubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -OfferDetailOfferId "arize-liftr-0" -OfferDetailPlanId "liftr-test-0" -OfferDetailPlanName "Liftr Test 0" -OfferDetailTermUnit "P1M" -OfferDetailPublisherId "arizeai1657829589668" -OfferDetailTermId "gmz7xq9ge3py" -Tag @{"TestName" = "TestValue"} -UserEmailAddress "aggarwalsw@microsoft.com" -UserFirstName "" -UserLastName "" -UserUpn "aggarwalsw@microsoft.com" +``` + +```output + +Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum + ulo2_eastus/providers/ArizeAi.ObservabilityEval/organizations/test-cli-instance-4 +IdentityPrincipalId : +IdentityTenantId : +IdentityType : +IdentityUserAssignedIdentity : { + } +Location : eastus +MarketplaceSubscriptionId : fc35d936-3b89-41f8-8110-a24b56826c37 +MarketplaceSubscriptionStatus : PendingFulfillmentStart +Name : test-cli-instance-4 +OfferDetailOfferId : arize-liftr-0 +OfferDetailPlanId : liftr-test-0 +OfferDetailPlanName : Liftr Test 0 +OfferDetailPublisherId : arizeai1657829589668 +OfferDetailTermId : gmz7xq9ge3py +OfferDetailTermUnit : +PartnerPropertyDescription : +ProvisioningState : Succeeded +ResourceGroupName : QM_clitest_qumulo2_eastus +SingleSignOnPropertyAadDomain : +SingleSignOnPropertyEnterpriseAppId : +SingleSignOnPropertyState : +SingleSignOnPropertyType : +SingleSignOnPropertyUrl : +SystemDataCreatedAt : 3/2/2025 1:54:01 PM +SystemDataCreatedBy : aggarwalsw@microsoft.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 3/2/2025 3:05:11 PM +SystemDataLastModifiedBy : aggarwalsw@microsoft.com +SystemDataLastModifiedByType : User +Tag : { + "TestName": "TestValue" + } +Type : arizeai.observabilityeval/organizations +UserEmailAddress : aggarwalsw@microsoft.com +UserFirstName : +UserLastName : +UserPhoneNumber : +UserUpn : aggarwalsw@microsoft.com +``` + +This command will create a new Pinecone Resource + diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md new file mode 100644 index 000000000000..795c8ebe6a98 --- /dev/null +++ b/src/ArizeAI/ArizeAI.Autorest/examples/Remove-AzArizeAIOrganization.md @@ -0,0 +1,7 @@ +### Example 1: Remove an Organization +```powershell +Remove-AzArizeAIOrganization -ResourceGroupName QM_clitest_qumulo2_eastus -Name test-instance-cli-1 +``` + +This command deletes the ArizeAI resource. + diff --git a/src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md b/src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md new file mode 100644 index 000000000000..df3b52437625 --- /dev/null +++ b/src/ArizeAI/ArizeAI.Autorest/examples/Update-AzArizeAIOrganization.md @@ -0,0 +1,50 @@ +### Example 1: Update an existing Organization +```powershell +Update-AzArizeAIOrganization -Name "test-cli-instance-4" -ResourceGroupName "QM_clitest_qumulo2_eastus" -SubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -MarketplaceSubscriptionId "fc35d936-3b89-41f8-8110-a24b56826c37" -OfferDetailOfferId "arize-liftr-0" -OfferDetailPlanId "liftr-test-0" -OfferDetailPlanName "Liftr Test 0" -OfferDetailTermUnit "P1M" -OfferDetailPublisherId "arizeai1657829589668" -OfferDetailTermId "gmz7xq9ge3py" -Tag @{"TestName1" = "TestValue1"} -UserEmailAddress "aggarwalsw@microsoft.com" -UserFirstName "" -UserLastName "" -UserUpn "aggarwalsw@microsoft.com" +``` + +```output +Id : /subscriptions/fc35d936-3b89-41f8-8110-a24b56826c37/resourceGroups/QM_clitest_qum + ulo2_eastus/providers/arizeai.observabilityeval/organizations/test-instance-cli-1 +IdentityPrincipalId : +IdentityTenantId : +IdentityType : +IdentityUserAssignedIdentity : { + } +Location : East US +MarketplaceSubscriptionId : +MarketplaceSubscriptionStatus : PendingFulfillmentStart +Name : test-instance-cli-1 +OfferDetailOfferId : arize-liftr-0 +OfferDetailPlanId : liftr-test-0 +OfferDetailPlanName : Liftr Test 0 +OfferDetailPublisherId : arizeai1657829589668 +OfferDetailTermId : gmz7xq9ge3py +OfferDetailTermUnit : P1M +PartnerPropertyDescription : +ProvisioningState : Accepted +ResourceGroupName : QM_clitest_qumulo2_eastus +SingleSignOnPropertyAadDomain : +SingleSignOnPropertyEnterpriseAppId : +SingleSignOnPropertyState : +SingleSignOnPropertyType : +SingleSignOnPropertyUrl : +SystemDataCreatedAt : 3/2/2025 1:48:39 PM +SystemDataCreatedBy : aggarwalsw@microsoft.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 3/2/2025 1:48:39 PM +SystemDataLastModifiedBy : aggarwalsw@microsoft.com +SystemDataLastModifiedByType : User +Tag : { + "TestName1": "TestValue1" + } +Type : arizeai.observabilityeval/organizations +UserEmailAddress : aggarwalsw@microsoft.com +UserFirstName : +UserLastName : +UserPhoneNumber : +UserUpn : aggarwalsw@microsoft.com +``` + +This command updates the ArizeAI organization. + From 2de0091b7a675d533286220fe8fe57ef3e1700c6 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 10 Apr 2025 17:59:34 +0800 Subject: [PATCH 7/9] Changes made to the code based on comments --- .../ADDomainServices.Autorest/README.md | 3 + .../custom/New-AzADDomainService.ps1 | 28 ------ .../docs/New-AzADDomainService.md | 82 ++++++----------- .../generate-info.json | 2 +- src/ADDomainServices/ADDomainServices.sln | 28 +++--- .../ADDomainServices/Az.ADDomainServices.psd1 | 2 +- .../ADDomainServices/ChangeLog.md | 4 +- .../help/New-AzADDomainService.md | 88 ++++++------------- 8 files changed, 73 insertions(+), 164 deletions(-) diff --git a/src/ADDomainServices/ADDomainServices.Autorest/README.md b/src/ADDomainServices/ADDomainServices.Autorest/README.md index 583f9c4d835b..bd2fa41abef0 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/README.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/README.md @@ -66,6 +66,9 @@ directive: - where: variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true + - where: + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$ + remove: true # Remove the set-* cmdlet - where: verb: Set diff --git a/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 b/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 index eb2c53a58b5e..e4c07d1c929e 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 +++ b/src/ADDomainServices/ADDomainServices.Autorest/custom/New-AzADDomainService.ps1 @@ -85,14 +85,7 @@ param( # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] - # Identity Parameter - ${InputObject}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -100,14 +93,12 @@ param( ${DomainConfigurationType}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', 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(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -115,7 +106,6 @@ param( ${DomainSecuritySettingNtlmV1}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -123,7 +113,6 @@ param( ${DomainSecuritySettingSyncKerberosPassword}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -131,7 +120,6 @@ param( ${DomainSecuritySettingSyncNtlmPassword}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -139,7 +127,6 @@ param( ${DomainSecuritySettingSyncOnPremPassword}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -147,14 +134,12 @@ param( ${DomainSecuritySettingTlsV1}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Resource etag ${Etag}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -162,7 +147,6 @@ param( ${FilteredSync}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[]] @@ -170,7 +154,6 @@ param( ${ForestTrust}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -178,7 +161,6 @@ param( ${LdapSettingExternalAccess}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -186,7 +168,6 @@ param( ${LdapSettingLdaps}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. @@ -194,14 +175,12 @@ param( ${LdapSettingPfxCertificateInputFile}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.Security.SecureString] # The password to decrypt the provided Secure LDAP certificate pfx file. ${LdapSettingPfxCertificatePassword}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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] @@ -209,7 +188,6 @@ param( ${Location}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] @@ -217,7 +195,6 @@ param( ${NotificationSettingAdditionalRecipient}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -225,7 +202,6 @@ param( ${NotificationSettingNotifyDcAdmin}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -233,7 +209,6 @@ param( ${NotificationSettingNotifyGlobalAdmin}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[]] @@ -241,14 +216,12 @@ param( ${ReplicaSet}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Resource Forest ${ResourceForest}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -256,7 +229,6 @@ param( ${Sku}, [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IResourceTags]))] [System.Collections.Hashtable] diff --git a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md index 56cda2a15f8c..f179e14b8c97 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices.Autorest/docs/New-AzADDomainService.md @@ -28,21 +28,6 @@ New-AzADDomainService -Name -ResourceGroupName -DomainName ] ``` -### CreateViaIdentityExpanded -``` -New-AzADDomainService -InputObject -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] [-Confirm] [-WhatIf] - [] -``` - ### CreateViaJsonFilePath ``` New-AzADDomainService -Name -ResourceGroupName -JsonFilePath @@ -134,7 +119,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -149,7 +134,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: True @@ -164,7 +149,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -179,7 +164,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -194,7 +179,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -209,7 +194,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -224,7 +209,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -239,7 +224,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -254,7 +239,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,7 +254,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -279,21 +264,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity -Parameter Sets: CreateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -JsonFilePath Path of Json file supplied to the Create operation @@ -329,7 +299,7 @@ A flag to determine whether or not Secure LDAP access over the internet is enabl ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -344,7 +314,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -360,7 +330,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -375,7 +345,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -390,7 +360,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -405,7 +375,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: DomainServiceName Required: True @@ -420,7 +390,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -435,7 +405,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -450,7 +420,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -480,7 +450,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -495,7 +465,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -511,7 +481,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: True @@ -526,7 +496,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -542,7 +512,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: False @@ -557,7 +527,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -603,8 +573,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService diff --git a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json index db9eec704ce4..5f42170bfb49 100644 --- a/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json +++ b/src/ADDomainServices/ADDomainServices.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "f005e4ca-547f-4c7d-ae4d-e74fbea523ce" + "generate_Id": "0172d7eb-3178-4682-be9f-c1313eb1d39c" } diff --git a/src/ADDomainServices/ADDomainServices.sln b/src/ADDomainServices/ADDomainServices.sln index 48b419620d8f..392cd414b940 100644 --- a/src/ADDomainServices/ADDomainServices.sln +++ b/src/ADDomainServices/ADDomainServices.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADDomainServices", "ADDomai EndProject 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", "{F94D6053-4040-4F1A-A38E-329C0E0769F7}" +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 @@ -117,18 +117,18 @@ Global {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 - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x64.ActiveCfg = Debug|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x64.Build.0 = Debug|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x86.ActiveCfg = Debug|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Debug|x86.Build.0 = Debug|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|Any CPU.Build.0 = Release|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x64.ActiveCfg = Release|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x64.Build.0 = Release|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.Release|x86.ActiveCfg = Release|Any CPU - {F94D6053-4040-4F1A-A38E-329C0E0769F7}.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 @@ -140,6 +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} - {F94D6053-4040-4F1A-A38E-329C0E0769F7} = {9904CEF2-9EAD-CB88-3E65-86E3D3F23B93} + {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 fb0669317915..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: 2025-04-09 +# Generated on: 2025-04-10 # @{ diff --git a/src/ADDomainServices/ADDomainServices/ChangeLog.md b/src/ADDomainServices/ADDomainServices/ChangeLog.md index 35f8077f5cd2..f1151845e7cb 100644 --- a/src/ADDomainServices/ADDomainServices/ChangeLog.md +++ b/src/ADDomainServices/ADDomainServices/ChangeLog.md @@ -18,9 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Az.ADDomainServices module is migrated to Autorest PowerShell v4: - * Modified cmdlet `New-AzADDomainService`: Added parameters `-InputObject`, `-JsonString` and `-JsonFilePath`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateViaJsonString`. Added parameter set `CreateExpanded`. Added parameter set `CreateViaIdentityExpanded`. - * Modified cmdlet `Update-AzADDomainService`: Removed parameter `-Location`. Added parameters `-JsonFilePath` and `-JsonString`. Changed the type of parameter `-DomainSecuritySettingNtlmV1` from `NtlmV1` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncKerberosPassword` from `SyncKerberosPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncNtlmPassword` from `SyncNtlmPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingSyncOnPremPassword` from `SyncOnPremPasswords` to `String`. Changed the type of parameter `-DomainSecuritySettingTlsV1` from `TlsV1` to `String`. Changed the type of parameter `-FilteredSync` from `FilteredSync` to `String`. Changed the type of parameter `-LdapSettingExternalAccess` from `ExternalAccess` to `String`. Changed the type of parameter `-LdapSettingLdaps` from `Ldaps` to `String`. Changed the type of parameter `-NotificationSettingNotifyDcAdmin` from `NotifyDcAdmins` to `String`. Changed the type of parameter `-NotificationSettingNotifyGlobalAdmin` from `NotifyGlobalAdmins` to `String`. Parameter set `UpdateExpanded` removed parameter `-Location`. Parameter set `UpdateViaIdentityExpanded` removed parameter `-Location`. Added parameter set `UpdateViaJsonString`. Added parameter set `UpdateViaJsonFilePath`. +* 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/New-AzADDomainService.md b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md index c72cd954729a..fad5a958ac01 100644 --- a/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md +++ b/src/ADDomainServices/ADDomainServices/help/New-AzADDomainService.md @@ -28,13 +28,6 @@ New-AzADDomainService -Name -ResourceGroupName [-SubscriptionI [-WhatIf] [-Confirm] [] ``` -### CreateViaJsonFilePath -``` -New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - ### CreateViaJsonString ``` New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] @@ -42,18 +35,10 @@ New-AzADDomainService -Name -ResourceGroupName [-SubscriptionI [-WhatIf] [-Confirm] [] ``` -### CreateViaIdentityExpanded +### CreateViaJsonFilePath ``` -New-AzADDomainService -InputObject -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] +New-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -134,7 +119,7 @@ Domain Configuration Type ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -149,7 +134,7 @@ The name of the Azure domain that the user would like to deploy Domain Services ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: True @@ -164,7 +149,7 @@ A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -179,7 +164,7 @@ A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -194,7 +179,7 @@ A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -209,7 +194,7 @@ A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -224,7 +209,7 @@ A flag to determine whether or not TlsV1 is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -239,7 +224,7 @@ Resource etag ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -254,7 +239,7 @@ Enabled or Disabled flag to turn on Group-based filtered sync ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -269,7 +254,7 @@ List of settings for Resource Forest ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IForestTrust[] -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -279,21 +264,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity -Parameter Sets: CreateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -JsonFilePath Path of Json file supplied to the Create operation @@ -329,7 +299,7 @@ A flag to determine whether or not Secure LDAP access over the internet is enabl ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -344,7 +314,7 @@ A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -360,7 +330,7 @@ The parameter passed here should be a base64encoded representation of the certif ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -375,7 +345,7 @@ The password to decrypt the provided Secure LDAP certificate pfx file. ```yaml Type: System.Security.SecureString -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -390,7 +360,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -405,7 +375,7 @@ The name of the domain service. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: DomainServiceName Required: True @@ -420,7 +390,7 @@ The list of additional recipients ```yaml Type: System.String[] -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -435,7 +405,7 @@ Should domain controller admins be notified ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -450,7 +420,7 @@ Should global admins be notified ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -480,7 +450,7 @@ List of ReplicaSets ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IReplicaSet[] -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -495,7 +465,7 @@ Resource Forest ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -511,7 +481,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: True @@ -526,7 +496,7 @@ Sku Type ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -542,7 +512,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: False @@ -557,7 +527,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -603,8 +573,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IDomainService From d4896aae913620153fa8f8e95db8b52173e1193a Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 10 Apr 2025 18:04:26 +0800 Subject: [PATCH 8/9] Rollback files CreateMappings_rules.json --- tools/CreateMappings_rules.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/CreateMappings_rules.json b/tools/CreateMappings_rules.json index 503caf6e33ed..2015c48c0a21 100644 --- a/tools/CreateMappings_rules.json +++ b/tools/CreateMappings_rules.json @@ -967,9 +967,5 @@ { "module": "Pinecone", "alias": "Pinecone" - }, - { - "module": "ADDomainServices", - "alias": "ADDomainServices" } ] From 1e60033187957d0319d5c05aba151176126c15aa Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 10 Apr 2025 18:05:55 +0800 Subject: [PATCH 9/9] Rollback files CreateMappings_rules.json --- tools/CreateMappings_rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/CreateMappings_rules.json b/tools/CreateMappings_rules.json index 2015c48c0a21..faa7c9b40cc6 100644 --- a/tools/CreateMappings_rules.json +++ b/tools/CreateMappings_rules.json @@ -967,5 +967,5 @@ { "module": "Pinecone", "alias": "Pinecone" - } + }, ]