diff --git a/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs b/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..1f990bfef9d0 --- /dev/null +++ b/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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 - LabServices")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/LabServices/LabServices.Autorest/README.md b/src/LabServices/LabServices.Autorest/README.md index 1369080bd03a..d1480d0b619a 100644 --- a/src/LabServices/LabServices.Autorest/README.md +++ b/src/LabServices/LabServices.Autorest/README.md @@ -63,11 +63,46 @@ subject-prefix: $(service-name) inlining-threshold: 50 -# 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: + + - where: + verb: (.*) + set: + breaking-change: + deprecated-by-version: 0.2.0 + deprecated-by-azversion: 18.2.0 + change-effective-date: 2027/06/28 + change-description: Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired. + + # reset vm password / New Lab / Update lab to set securestring passwords + - from: swagger-document + where: $.definitions.ResetPasswordBody.properties.password + transform: >- + return { + "description": "The password", + "type": "string", + "x-ms-secret": true, + "x-ms-mutability": [ + "create" + ], + "format": "password" + } + - from: swagger-document + where: $.definitions.Credentials.properties.password + transform: >- + return { + "description": "The password for the user. This is required for the TemplateVM createOption.", + "type": "string", + "x-ms-secret": true, + "x-ms-mutability": [ + "create" + ], + "format": "password" + } + # Fix bug that the words of create or update will be replaced + - from: source-file-csharp + where: $ + transform: $ = $.replace(/"Publish or re-publish a lab. This will publish all lab resources, such as virtual machines."/g, '"Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines."'); # change VirtualMachine to VM - where: subject: ^(.*)(VirtualMachine)(.*)$ @@ -136,10 +171,6 @@ directive: - where: verb: Set remove: true - # remove the Identity variants - - where: - variant: ^(.*)ViaIdentity(.*)$ - remove: true # Change LabImage to LabPlanImage - where: verb: Get @@ -170,20 +201,12 @@ directive: verb: Update subject: $1VMReimage - where: - variant: ^Create$|^Update$|^Reset$|^Save$|^Invite$ + variant: ^(Create|Update|Reset|Save|Invite)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true - # Hide reset vm password / New Lab / Update lab to set securestring passwords - - where: - verb: Reset - hide: true - where: - verb: New - subject: Lab - hide: true - - where: - verb: Update - subject: Lab - hide: true + variant: ^CreateViaIdentityExpanded$ + remove: true + # Custom new variant (rename parameter) - where: verb: Get subject: Lab diff --git a/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_Email.ps1 b/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_Email.ps1 index c3199e174edd..7a583b9eeb86 100644 --- a/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_Email.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_Email.ps1 @@ -19,12 +19,12 @@ API to add additional user quota. API to add additional user quota. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser .Link https://learn.microsoft.com/powershell/module/az.labservices/add-azlabservicesuserquota #> function Add-AzLabServicesUserQuota_Email { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_User.ps1 b/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_User.ps1 index cf96e08d6a54..71f421041e1e 100644 --- a/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_User.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Add-AzLabServicesUserQuota_User.ps1 @@ -19,16 +19,16 @@ API to add additional user quota. API to add additional user quota. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser .Link https://learn.microsoft.com/powershell/module/az.labservices/add-azlabservicesuserquota #> function Add-AzLabServicesUserQuota_User { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User] ${User}, [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ListByLabPlanName.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ListByLabPlanName.ps1 index 33557fd52938..30a73258465a 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ListByLabPlanName.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ListByLabPlanName.ps1 @@ -19,12 +19,12 @@ API to get lab plans. API to get lab plans. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslabplan #> function Get-AzLabServicesLabPlan_ListByLabPlanName { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ResourceId.ps1 index d2ab20a1bc95..52fde9ec90a8 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabPlan_ResourceId.ps1 @@ -19,12 +19,12 @@ API to get lab plans. API to get lab plans. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslabplan #> function Get-AzLabServicesLabPlan_ResourceId { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_LabPlan.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_LabPlan.ps1 index 2b39e7d68759..53aaf3642c58 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_LabPlan.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_LabPlan.ps1 @@ -19,16 +19,16 @@ API to get labs. API to get labs. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslab #> function Get-AzLabServicesLab_LabPlan { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan] ${LabPlan}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByLabName.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByLabName.ps1 index 1a7d89b7eaf0..51c7979637fc 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByLabName.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByLabName.ps1 @@ -19,12 +19,12 @@ API to get labs. API to get labs. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslab #> function Get-AzLabServicesLab_ListByLabName { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false)] param( diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByResourceGroup.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByResourceGroup.ps1 index 82079e955398..c63479c47401 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByResourceGroup.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListByResourceGroup.ps1 @@ -19,12 +19,12 @@ API to get labs. API to get labs. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslab #> function Get-AzLabServicesLab_ListByResourceGroup { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -87,7 +87,7 @@ function Get-AzLabServicesLab_ListByResourceGroup { ) process { - return Az.LabServices.internal\Get-AzLabServicesLab @PSBoundParameters + return Az.LabServices.private\Get-AzLabServicesLab_List1 @PSBoundParameters } } diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListBySubscription.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListBySubscription.ps1 index 62f75a5e972e..0bead71c45e2 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListBySubscription.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ListBySubscription.ps1 @@ -19,12 +19,12 @@ API to get labs. API to get labs. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslab #> function Get-AzLabServicesLab_ListBySubscription { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -83,7 +83,7 @@ function Get-AzLabServicesLab_ListBySubscription { ) process { - return Az.LabServices.internal\Get-AzLabServicesLab @PSBoundParameters + return Az.LabServices.private\Get-AzLabServicesLab_List @PSBoundParameters } } diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ResourceId.ps1 index c102e5dbed57..cdb9269be48e 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLab_ResourceId.ps1 @@ -19,14 +19,14 @@ API to get labs. API to get labs. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslab #> function Get-AzLabServicesLab_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] - param( + param( [Parameter(Mandatory)] [System.String] ${ResourceId}, diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabforVM.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabforVM.ps1 index 9ff32f347173..edc47ab06431 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabforVM.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesLabforVM.ps1 @@ -19,12 +19,12 @@ API to return the lab for a specific VM. API to return the lab for a specific VM. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabserviceslabforvm #> function Get-AzLabServicesLabForVM { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_LabPlan.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_LabPlan.ps1 index e722c175bc7c..fc679ae2e3e8 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_LabPlan.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_LabPlan.ps1 @@ -19,16 +19,16 @@ API to get lab plan images. API to get lab plan images. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesplanimage #> function Get-AzLabServicesPlanImage_LabPlan { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan] ${LabPlan}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ListByDisplayName.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ListByDisplayName.ps1 index 0aecf46e409d..9a6d966f448a 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ListByDisplayName.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ListByDisplayName.ps1 @@ -19,12 +19,12 @@ API to get lab plan images. API to get lab plan images. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesplanimage #> function Get-AzLabServicesPlanImage_ListByDisplayName { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ResourceId.ps1 index 0d6dd963d451..244eb405c4dd 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesPlanImage_ResourceId.ps1 @@ -19,12 +19,12 @@ API to get lab plan images. API to get lab plan images. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesplanimage #> function Get-AzLabServicesPlanImage_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_Lab.ps1 index fb835b0042c0..e1457d8211f7 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_Lab.ps1 @@ -19,16 +19,16 @@ API to get lab schedule. API to get lab schedule. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesschedule #> function Get-AzLabServicesSchedule_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] ${Lab}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_ResourceId.ps1 index 2695bb1ba157..dfcc3f53e16d 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesSchedule_ResourceId.ps1 @@ -19,12 +19,12 @@ API to get lab schedule. API to get lab schedule. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesschedule #> function Get-AzLabServicesSchedule_LabObject { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Get.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Get.ps1 index e8973343ee65..fbcfbb4284de 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Get.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Get.ps1 @@ -19,12 +19,12 @@ API to get the template vm for the lab. API to get the template vm for the lab. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicestemplatevm #> function Get-AzLabServicesTemplateVM_Get { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Lab.ps1 index 18ca4246407b..2d4767ca43e8 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesTemplateVM_Lab.ps1 @@ -19,16 +19,16 @@ API to get the template vm for the lab. API to get the template vm for the lab. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicestemplatevm #> function Get-AzLabServicesTemplateVM_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] ${Lab}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Get.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Get.ps1 index fcabb76b4a4c..07459c2721e2 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Get.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Get.ps1 @@ -19,12 +19,12 @@ API to get the assigned vm for the user. API to get the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesuservm #> function Get-AzLabServicesUserVM_Get { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Lab.ps1 index f56d7b402d46..239a80218f89 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_Lab.ps1 @@ -19,16 +19,16 @@ API to get the assigned vm for the user. API to get the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesuservm #> function Get-AzLabServicesUserVM_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] ${Lab}, [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_ResourceId.ps1 index faaeab5c42d8..674df1e66c4f 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_ResourceId.ps1 @@ -19,12 +19,12 @@ API to get the assigned vm for the user. API to get the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesuservm #> function Get-AzLabServicesUserVM_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_User.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_User.ps1 index 568fc0b19471..76b9321298c9 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_User.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUserVM_User.ps1 @@ -19,16 +19,16 @@ API to get the assigned vm for the user. API to get the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/get-azlabservicesuservm #> function Get-AzLabServicesUserVM_User { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User] ${User}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_Lab.ps1 index 1d1ca530c2a0..3dcd15369873 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_Lab.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Get-AzLabServicesUser_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] ${Lab}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_ResourceId.ps1 index 2b2e1f9adb68..52d87c6e6ad4 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesUser_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Get-AzLabServicesUser_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesVM_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesVM_Lab.ps1 index 2190ca07f959..a98aa75b0be2 100644 --- a/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesVM_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Get-AzLabServicesVM_Lab.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Get-AzLabServicesVM_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] ${Lab}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Models.cs b/src/LabServices/LabServices.Autorest/custom/Models.cs index eb694256f6b9..97be131c148b 100644 --- a/src/LabServices/LabServices.Autorest/custom/Models.cs +++ b/src/LabServices/LabServices.Autorest/custom/Models.cs @@ -1,7 +1,7 @@ using System.Text.RegularExpressions; using System.Collections; -namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models { internal static class ResourceHelper { diff --git a/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesLab_New.ps1 b/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesLab_New.ps1 deleted file mode 100644 index aa8080d54f8c..000000000000 --- a/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesLab_New.ps1 +++ /dev/null @@ -1,405 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Operation to create a lab resource. -.Description -Operation to create a lab resource. - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab -.Link -https://learn.microsoft.com/powershell/module/az.labservices/new-azlabserviceslab -#> -function New-AzLabServicesLab { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('LabName')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The name of the lab that uniquely identifies it within containing lab account. - # Used in resource URIs. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Flag to pre-install dedicated GPU drivers. - ${AdditionalCapabilityInstallGpuDriver}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [SecureString] - # The password for the user. - # This is required for the TemplateVM createOption. - ${AdminUserPassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The username to use when signing in to lab VMs. - ${AdminUserUsername}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The amount of time a VM will stay running after a user disconnects if this behavior is enabled. - ${AutoShutdownProfileDisconnectDelay}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The amount of time a VM will idle before it is shutdown if this behavior is enabled. - ${AutoShutdownProfileIdleDelay}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. - ${AutoShutdownProfileNoConnectDelay}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Whether shutdown on disconnect is enabled - ${AutoShutdownProfileShutdownOnDisconnect}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode] - # Whether a VM will get shutdown when it has idled for a period of time. - ${AutoShutdownProfileShutdownOnIdle}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Whether a VM will get shutdown when it hasn't been connected to after a period of time. - ${AutoShutdownProfileShutdownWhenNotConnected}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Client Access over RDP. - ${ConnectionProfileClientRdpAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Client Access over SSH. - ${ConnectionProfileClientSshAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Web Access over RDP. - ${ConnectionProfileWebRdpAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Web Access over SSH. - ${ConnectionProfileWebSshAccess}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The description of the lab. - ${Description}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # Image resource ID - ${ImageReferenceId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image offer if applicable. - ${ImageReferenceOffer}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image publisher - ${ImageReferencePublisher}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image SKU - ${ImageReferenceSku}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image version specified on creation. - ${ImageReferenceVersion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The ID of the lab plan. - # Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. - # Setting a labPlanId on an existing lab provides organization.. - ${LabPlanId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The external load balancer resource id - ${NetworkProfileLoadBalancerId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The external public IP resource id - ${NetworkProfilePublicIPId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The external subnet resource id - ${NetworkProfileSubnetId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [SecureString] - # The password for the user. - # This is required for the TemplateVM createOption. - ${NonAdminUserPassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The username to use when signing in to lab VMs. - ${NonAdminUserUsername}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The AAD group ID which this lab roster is populated from. - # Having this set enables AAD sync mode. - ${RosterProfileActiveDirectoryGroupId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The base URI identifying the lms instance. - ${RosterProfileLmsInstance}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The unique id of the azure lab services tool in the lms. - ${RosterProfileLtiClientId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The unique context identifier for the lab in the lms. - ${RosterProfileLtiContextId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The uri of the names and roles service endpoint on the lms for the class attached to this lab. - ${RosterProfileLtiRosterEndpoint}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Whether any user or only specified users can register to a lab. - ${SecurityProfileOpenAccess}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.Int32] - # If the SKU supports scale out/in then the capacity integer should be included. - # If scale out/in is not possible for the resource this may be omitted. - ${SkuCapacity}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # If the service has different generations of hardware, for the same SKU, then that can be captured here. - ${SkuFamily}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The name of the SKU. - # Ex - P3. - # It is typically a letter+number code - ${SkuName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The SKU size. - # When the name field is the combination of tier and some other value, this would be the standalone code. - ${SkuSize}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier] - # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. - ${SkuTier}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The title of the lab. - ${Title}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption] - # Indicates what lab virtual machines are created from. - ${VirtualMachineProfileCreateOption}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The initial quota alloted to each lab user. - # Must be a time span between 0 and 9999 hours. - ${VirtualMachineProfileUsageQuota}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Enabling this option will use the same password for all user VMs. - ${VirtualMachineProfileUseSharedPassword}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -process { - if ($PSBoundParameters.ContainsKey('AdminUserPassword')) { - $psAdminTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdminUserPassword'] - $PSBoundParameters.Remove("AdminUserPassword") > $null - $PSBoundParameters.Add("AdminUserPassword",$psAdminTxt) - } - - if ($PSBoundParameters.ContainsKey('NonAdminUserPassword')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['NonAdminUserPassword'] - $PSBoundParameters.Remove("NonAdminUserPassword") > $null - $PSBoundParameters.Add("NonAdminUserPassword",$psTxt) - } - - return Az.LabServices.internal\New-AzLabServicesLab @PSBoundParameters - - } -} diff --git a/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesSchedule_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesSchedule_Lab.ps1 index c418df4516ff..3ec324fb2e2b 100644 --- a/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesSchedule_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesSchedule_Lab.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function New-AzLabServicesSchedule_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, @@ -38,7 +38,9 @@ function New-AzLabServicesSchedule_Lab { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Daily", "Weekly")] + [System.String] + # The frequency of the schedule. ${RecurrencePatternFrequency}, [Parameter()] @@ -48,7 +50,9 @@ function New-AzLabServicesSchedule_Lab { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[]] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")] + [System.String[]] + # The days of the week on which the schedule is active. ${RecurrencePatternWeekDay}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesUser_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesUser_Lab.ps1 index eed6cb7db1e7..b1840fdb1ca3 100644 --- a/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesUser_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/New-AzLabServicesUser_Lab.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function New-AzLabServicesUser_Lab { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipelineByPropertyName)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, diff --git a/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_Lab.ps1 index b9896c1bbc98..6682c3b1852e 100644 --- a/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_Lab.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Publish-AzLabServicesLab_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] ${Lab}, ${AdditionalUsageQuota}, diff --git a/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_ResourceId.ps1 index 6f6a35293a81..d22b40028cc8 100644 --- a/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Publish-AzLabServicesLab_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Publish-AzLabServicesLab_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLabPlan_LabPlan.ps1 b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLabPlan_LabPlan.ps1 index 0b854027301a..8af73597e86a 100644 --- a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLabPlan_LabPlan.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLabPlan_LabPlan.ps1 @@ -17,7 +17,7 @@ function Remove-AzLabServicesLabPlan_LabPlan { [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${LabPlan}, diff --git a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_Lab.ps1 index 92ce46067d2f..2f5d2c256654 100644 --- a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_Lab.ps1 @@ -17,7 +17,7 @@ function Remove-AzLabServicesLab_Lab { [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, diff --git a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_LabPlan.ps1 b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_LabPlan.ps1 index 042d706f1784..15205536134d 100644 --- a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_LabPlan.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesLab_LabPlan.ps1 @@ -17,7 +17,7 @@ function Remove-AzLabServicesLab_LabPlan { [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${LabPlan}, diff --git a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesSchedule_Schedule.ps1 b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesSchedule_Schedule.ps1 index 9aae2b44940e..64d0a7bf582c 100644 --- a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesSchedule_Schedule.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesSchedule_Schedule.ps1 @@ -17,7 +17,7 @@ function Remove-AzLabServicesSchedule_Schedule { [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Schedule] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Schedule] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Schedule}, diff --git a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_Lab.ps1 index aabe0f063838..eee017a77edd 100644 --- a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_Lab.ps1 @@ -17,7 +17,7 @@ function Remove-AzLabServicesUser_Lab { [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipelineByPropertyName)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, diff --git a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_User.ps1 b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_User.ps1 index c4b8c0ce8786..7cb70ee8d6ad 100644 --- a/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_User.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Remove-AzLabServicesUser_User.ps1 @@ -17,7 +17,7 @@ function Remove-AzLabServicesUser_User { [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${User}, diff --git a/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_Reset.ps1 b/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_Reset.ps1 deleted file mode 100644 index ba1940e439d4..000000000000 --- a/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_Reset.ps1 +++ /dev/null @@ -1,149 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Resets a lab virtual machine password. -.Description -Resets a lab virtual machine password. - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine -.Link -https://learn.microsoft.com/powershell/module/az.labservices/reset-azlabservicesvmpassword -#> -function Reset-AzLabServicesVMPassword_Reset { - [OutputType([System.Boolean], [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] - [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The name of the lab that uniquely identifies it within containing lab account. - # Used in resource URIs. - ${LabName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter( Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The ID of the virtual machine that uniquely identifies it within the containing lab. - # Used in resource URIs. - ${VirtualMachineName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [SecureString] - # The password - ${Password}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The user whose password is being reset - ${Username}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} - ) - - process { - - if ($PSBoundParameters.ContainsKey('Password')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] - $PSBoundParameters.Remove("Password") > $null - $PSBoundParameters.Add("Password",$psTxt) - - } - - return Az.LabServices.internal\Reset-AzLabServicesVMPassword @PSBoundParameters - } -} - \ No newline at end of file diff --git a/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_ResourceId.ps1 index 2ade96748196..1743339e786d 100644 --- a/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_ResourceId.ps1 @@ -19,12 +19,12 @@ Resets a lab virtual machine password. Resets a lab virtual machine password. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/reset-azlabservicesvmpassword #> function Reset-AzLabServicesVMPassword_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -114,10 +114,6 @@ function Reset-AzLabServicesVMPassword_ResourceId { process { $resourceHash = & $PSScriptRoot\Utilities\HandleVMResourceId.ps1 -ResourceId $ResourceId $PSBoundParameters.Remove("SubscriptionId") > $null - if ($PSBoundParameters.ContainsKey('Password')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] - $PSBoundParameters['Password'] = $psTxt - } if ($resourceHash) { $resourceHash.Keys | ForEach-Object { @@ -126,7 +122,7 @@ function Reset-AzLabServicesVMPassword_ResourceId { $PSBoundParameters.Remove("ResourceId") > $null - return Az.LabServices\Reset-AzLabServicesVMPassword @PSBoundParameters + return Az.LabServices.private\Reset-AzLabServicesVMPassword_ResetExpanded @PSBoundParameters } else { Write-Error -Message "Error: Invalid VM Resource Id." -ErrorAction Stop } diff --git a/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_VM.ps1 b/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_VM.ps1 index 7fd770efefa6..7f57afc00d98 100644 --- a/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_VM.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Reset-AzLabServicesVMPassword_VM.ps1 @@ -19,16 +19,16 @@ Resets a lab virtual machine password. Resets a lab virtual machine password. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/reset-azlabservicesvmpassword #> function Reset-AzLabServicesVMPassword_VM { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine] ${VM}, [Parameter()] @@ -112,7 +112,7 @@ function Reset-AzLabServicesVMPassword_VM { ) process { - return Az.LabServices\Reset-AzLabServicesVMPassword -ResourceId $VM.Id -Username $Username -Password $Password + return Az.LabServices.custom\Reset-AzLabServicesVMPassword_ResourceId -ResourceId $VM.Id -Username $Username -Password $Password } } \ No newline at end of file diff --git a/src/LabServices/LabServices.Autorest/custom/Send-AzLabServicesUserInvite_User.ps1 b/src/LabServices/LabServices.Autorest/custom/Send-AzLabServicesUserInvite_User.ps1 index 2dff86c2298d..dfa63acb9bd6 100644 --- a/src/LabServices/LabServices.Autorest/custom/Send-AzLabServicesUserInvite_User.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Send-AzLabServicesUserInvite_User.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Send-AzLabServicesUserInvite_Users { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User] ${User}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_Start.ps1 b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_Start.ps1 index f7f0da4eac3b..042b2f251aa4 100644 --- a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_Start.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_Start.ps1 @@ -19,12 +19,12 @@ API to start the assigned vm for the user. API to start the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/start-azlabservicesuservm #> function Start-AzLabServicesUserVM_Start { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_User.ps1 b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_User.ps1 index 0b29eeb5edef..6c9b55382374 100644 --- a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_User.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesUserVM_User.ps1 @@ -19,16 +19,16 @@ API to start the assigned vm for the user. API to start the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/start-azlabservicesuservm #> function Start-AzLabServicesUserVM_User { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User] ${User}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVMRedeployment_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVMRedeployment_ResourceId.ps1 index bc838eec08a9..4e085ee2402a 100644 --- a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVMRedeployment_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVMRedeployment_ResourceId.ps1 @@ -19,12 +19,12 @@ API to redeploy a VM. API to redeploy a VM. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/start-azlabservicesvmredeployment #> function Start-AzLabServicesVMRedeployment_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_ResourceId.ps1 index ce2a63034042..c718985c46be 100644 --- a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Start-AzLabServicesVM_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_VM.ps1 b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_VM.ps1 index f280fe1b0460..861dc5724920 100644 --- a/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_VM.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Start-AzLabServicesVM_VM.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Start-AzLabServicesVM_VM { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine] ${VM}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_Stop.ps1 b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_Stop.ps1 index b378309b3629..b6557edf2152 100644 --- a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_Stop.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_Stop.ps1 @@ -19,12 +19,12 @@ API to stop the assigned vm for the user. API to stop the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/stop-azlabservicesuservm #> function Stop-AzLabServicesUserVM_Stop { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_User.ps1 b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_User.ps1 index 560e7608859d..e17b6fe06514 100644 --- a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_User.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesUserVM_User.ps1 @@ -19,16 +19,16 @@ API to stop the assigned vm for the user. API to stop the assigned vm for the user. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine .Link https://learn.microsoft.com/powershell/module/az.labservices/stop-azlabservicesuservm #> function Stop-AzLabServicesUserVM_User { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User] ${User}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_ResourceId.ps1 index 8f9374f26f16..546ffc2f905f 100644 --- a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Stop-AzLabServicesVM_ResourceId { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_VM.ps1 b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_VM.ps1 index 14d6d18e7d43..c5bd2f446148 100644 --- a/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_VM.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Stop-AzLabServicesVM_VM.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Stop-AzLabServicesVM_VM { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine] ${VM}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Sync-AzLabServicesLabUser_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Sync-AzLabServicesLabUser_Lab.ps1 index 516c75f8ab00..38a4f727d7b8 100644 --- a/src/LabServices/LabServices.Autorest/custom/Sync-AzLabServicesLabUser_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Sync-AzLabServicesLabUser_Lab.ps1 @@ -13,11 +13,11 @@ # limitations under the License. # ---------------------------------------------------------------------------------- function Sync-AzLabServicesLabUser_Lab { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLabPlan_LabPlan.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLabPlan_LabPlan.ps1 index d704f2d52637..2ceac2e723dc 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLabPlan_LabPlan.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLabPlan_LabPlan.ps1 @@ -12,12 +12,13 @@ # limitations under the License. # ---------------------------------------------------------------------------------- +# This variant is duplicated with UpdateViaIdentityExpanded function Update-AzLabServicesLabPlan_LabPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${LabPlan}, @@ -42,33 +43,33 @@ param( ${DefaultAutoShutdownProfileNoConnectDelay}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] + [String] ${DefaultAutoShutdownProfileShutdownOnDisconnect}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("None", "UserAbsence", "LowUsage")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode] + [String] ${DefaultAutoShutdownProfileShutdownOnIdle}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] + [String] ${DefaultAutoShutdownProfileShutdownWhenNotConnected}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Public", "Private", "None")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] + [String] ${DefaultConnectionProfileClientRdpAccessEnabled}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Public", "Private", "None")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] + [String] ${DefaultConnectionProfileClientSshAccessEnabled}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLab_Update.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLab_Update.ps1 deleted file mode 100644 index a0aef949a43d..000000000000 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesLab_Update.ps1 +++ /dev/null @@ -1,380 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Operation to update a lab resource. -.Description -Operation to update a lab resource. - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab -.Link -https://learn.microsoft.com/powershell/module/az.labservices/update-azlabserviceslab -#> -function Update-AzLabServicesLab_Update { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Alias('LabName')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The name of the lab that uniquely identifies it within containing lab account. - # Used in resource URIs. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Flag to pre-install dedicated GPU drivers. - ${AdditionalCapabilityInstallGpuDriver}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [SecureString] - # The password for the user. - # This is required for the TemplateVM createOption. - ${AdminUserPassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The username to use when signing in to lab VMs. - ${AdminUserUsername}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The amount of time a VM will stay running after a user disconnects if this behavior is enabled. - ${AutoShutdownProfileDisconnectDelay}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The amount of time a VM will idle before it is shutdown if this behavior is enabled. - ${AutoShutdownProfileIdleDelay}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. - ${AutoShutdownProfileNoConnectDelay}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Whether shutdown on disconnect is enabled - ${AutoShutdownProfileShutdownOnDisconnect}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode] - # Whether a VM will get shutdown when it has idled for a period of time. - ${AutoShutdownProfileShutdownOnIdle}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Whether a VM will get shutdown when it hasn't been connected to after a period of time. - ${AutoShutdownProfileShutdownWhenNotConnected}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Client Access over RDP. - ${ConnectionProfileClientRdpAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Client Access over SSH. - ${ConnectionProfileClientSshAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Web Access over RDP. - ${ConnectionProfileWebRdpAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType] - # The enabled access level for Web Access over SSH. - ${ConnectionProfileWebSshAccess}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The description of the lab. - ${Description}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # Image resource ID - ${ImageReferenceId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image offer if applicable. - ${ImageReferenceOffer}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image publisher - ${ImageReferencePublisher}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image SKU - ${ImageReferenceSku}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The image version specified on creation. - ${ImageReferenceVersion}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The ID of the lab plan. - # Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. - # Setting a labPlanId on an existing lab provides organization.. - ${LabPlanId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [SecureString] - # The password for the user. - # This is required for the TemplateVM createOption. - ${NonAdminUserPassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The username to use when signing in to lab VMs. - ${NonAdminUserUsername}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The AAD group ID which this lab roster is populated from. - # Having this set enables AAD sync mode. - ${RosterProfileActiveDirectoryGroupId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The base URI identifying the lms instance. - ${RosterProfileLmsInstance}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The unique id of the azure lab services tool in the lms. - ${RosterProfileLtiClientId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The unique context identifier for the lab in the lms. - ${RosterProfileLtiContextId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The uri of the names and roles service endpoint on the lms for the class attached to this lab. - ${RosterProfileLtiRosterEndpoint}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Whether any user or only specified users can register to a lab. - ${SecurityProfileOpenAccess}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.Int32] - # If the SKU supports scale out/in then the capacity integer should be included. - # If scale out/in is not possible for the resource this may be omitted. - ${SkuCapacity}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # If the service has different generations of hardware, for the same SKU, then that can be captured here. - ${SkuFamily}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The name of the SKU. - # Ex - P3. - # It is typically a letter+number code - ${SkuName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The SKU size. - # When the name field is the combination of tier and some other value, this would be the standalone code. - ${SkuSize}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier] - # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. - ${SkuTier}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String[]] - # Resource tags. - ${Tag}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.String] - # The title of the lab. - ${Title}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption] - # Indicates what lab virtual machines are created from. - ${VirtualMachineProfileCreateOption}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [System.TimeSpan] - # The initial quota alloted to each lab user. - # Must be a time span between 0 and 9999 hours. - ${VirtualMachineProfileUsageQuota}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] - # Enabling this option will use the same password for all user VMs. - ${VirtualMachineProfileUseSharedPassword}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -process { - if ($PSBoundParameters.ContainsKey('AdminUserPassword')) { - $psAdminTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdminUserPassword'] - $PSBoundParameters.Remove("AdminUserPassword") > $null - $PSBoundParameters.Add("AdminUserPassword",$psAdminTxt) - } - - if ($PSBoundParameters.ContainsKey('NonAdminUserPassword')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['NonAdminUserPassword'] - $PSBoundParameters.Remove("NonAdminUserPassword") > $null - $PSBoundParameters.Add("NonAdminUserPassword",$psTxt) - } - - return Az.LabServices.internal\Update-AzLabServicesLab @PSBoundParameters - - } -} diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_LabPlan.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_LabPlan.ps1 index 8bf392d73736..0c125145d13e 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_LabPlan.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_LabPlan.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Update-AzLabServicesPlanImage_LabPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${LabPlan}, @@ -28,9 +28,9 @@ param( ${Name}, [Parameter(Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] + [System.String] # Is the image enabled ${EnabledState}, diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_ResourceId.ps1 index cdbff1eaa0f0..b35818869500 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesPlanImage_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Update-AzLabServicesPlanImage_ResourceId { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -21,9 +21,9 @@ param( ${ResourceId}, [Parameter(Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState])] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState] + [System.String] # Is the image enabled ${EnabledState}, diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Lab.ps1 index 21081bae8da7..6c4080be91bc 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Lab.ps1 @@ -19,16 +19,16 @@ API to update the lab quota. API to update the lab quota. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/update-azlabservicesquota #> function Update-AzLabServicesQuota_Lab { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Set.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Set.ps1 index 77fd6d321be9..415e7cf17247 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Set.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesQuota_Set.ps1 @@ -19,12 +19,12 @@ API to update the lab quota. API to update the lab quota. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab .Link https://learn.microsoft.com/powershell/module/az.labservices/update-azlabservicesquota #> function Update-AzLabServicesQuota_Set { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] param( [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_Lab.ps1 index 3021227d72b3..be307e3279bd 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_Lab.ps1 @@ -12,12 +12,13 @@ # limitations under the License. # ---------------------------------------------------------------------------------- +# this variant is duplicated with UpdateViaIdentityLabExpanded function Update-AzLabServicesSchedule_Lab { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, @@ -37,7 +38,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Daily", "Weekly")] + [System.String] ${RecurrencePatternFrequency}, [Parameter()] @@ -47,7 +49,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[]] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")] + [System.String[]] ${RecurrencePatternWeekDay}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_ResourceId.ps1 index d55394164b82..6251156d7d27 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesSchedule_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Update-AzLabServicesSchedule_ResourceId { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -32,7 +32,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Daily", "Weekly")] + [System.String] ${RecurrencePatternFrequency}, [Parameter()] @@ -42,7 +43,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[]] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.PSArgumentCompleterAttribute("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")] + [System.String[]] ${RecurrencePatternWeekDay}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_Lab.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_Lab.ps1 index 34e837ad7abd..a86b08707a5d 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_Lab.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_Lab.ps1 @@ -12,12 +12,13 @@ # limitations under the License. # ---------------------------------------------------------------------------------- +# this variant is duplicated with UpdateViaIdentityLabExpanded function Update-AzLabServicesUser_Lab { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab] [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category('Path')] ${Lab}, diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_ResourceId.ps1 index 0e3903e964bd..892d7f24defa 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesUser_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Update-AzLabServicesUser_ResourceId { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_ResourceId.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_ResourceId.ps1 index 25467a2a8534..78318561488f 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_ResourceId.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_ResourceId.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Update-AzLabServicesVMReimage_ResourceId { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_VM.ps1 b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_VM.ps1 index c5944010d0ec..08b50be45690 100644 --- a/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_VM.ps1 +++ b/src/LabServices/LabServices.Autorest/custom/Update-AzLabServicesVMReimage_VM.ps1 @@ -13,11 +13,11 @@ # ---------------------------------------------------------------------------------- function Update-AzLabServicesVMReimage_VM { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine] ${VM}, [Parameter()] diff --git a/src/LabServices/LabServices.Autorest/docs/Add-AzLabServicesUserQuota.md b/src/LabServices/LabServices.Autorest/docs/Add-AzLabServicesUserQuota.md index 899e909af567..a2d60b83176b 100644 --- a/src/LabServices/LabServices.Autorest/docs/Add-AzLabServicesUserQuota.md +++ b/src/LabServices/LabServices.Autorest/docs/Add-AzLabServicesUserQuota.md @@ -166,10 +166,10 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -216,11 +216,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md b/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md index 62eca63fb253..f19879293c55 100644 --- a/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md +++ b/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.LabServices -Module Guid: f4604f08-6749-40ce-bd25-81074c1119e7 +Module Guid: dd6503fd-07c3-463e-bb39-3978360430a7 Download Help Link: https://learn.microsoft.com/powershell/module/az.labservices Help Version: 1.0.0.0 Locale: en-US @@ -45,13 +45,13 @@ Returns the properties for a lab virtual machine. Operation to create a lab resource. ### [New-AzLabServicesLabPlan](New-AzLabServicesLabPlan.md) -Operation to create or update a Lab Plan resource. +Operation to create a Lab Plan resource. ### [New-AzLabServicesSchedule](New-AzLabServicesSchedule.md) -Operation to create or update a lab schedule. +Operation to create a lab schedule. ### [New-AzLabServicesUser](New-AzLabServicesUser.md) -Operation to create or update a lab user. +Operation to create a lab user. ### [Publish-AzLabServicesLab](Publish-AzLabServicesLab.md) Publish or re-publish a lab. @@ -105,7 +105,7 @@ Operation to update a lab resource. Operation to update a Lab Plan resource. ### [Update-AzLabServicesPlanImage](Update-AzLabServicesPlanImage.md) -Updates an image resource. +Update an image resource. ### [Update-AzLabServicesQuota](Update-AzLabServicesQuota.md) API to update the lab quota. diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLab.md index 10c186315911..5692f3c4dbb6 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLab.md @@ -121,10 +121,10 @@ Accept wildcard characters: False ``` ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -231,11 +231,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabForVM.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabForVM.md index e64597823bca..e3976321282e 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabForVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabForVM.md @@ -120,7 +120,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabPlan.md index 85c64a26f63d..08b71dcf2b7e 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesLabPlan.md @@ -24,6 +24,11 @@ Get-AzLabServicesLabPlan -Name -ResourceGroupName [-Subscripti [-DefaultProfile ] [] ``` +### GetViaIdentity +``` +Get-AzLabServicesLabPlan -InputObject [-DefaultProfile ] [] +``` + ### List1 ``` Get-AzLabServicesLabPlan -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] @@ -95,6 +100,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Name The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. @@ -147,7 +167,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get, List, List1, ListByLabPlanName, ResourceId Aliases: Required: False @@ -162,11 +182,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ### System.String ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesPlanImage.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesPlanImage.md index bbc2fafb2cc2..a79fcbc57d27 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesPlanImage.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesPlanImage.md @@ -24,6 +24,18 @@ Get-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupNa [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetViaIdentity +``` +Get-AzLabServicesPlanImage -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityLabPlan +``` +Get-AzLabServicesPlanImage -LabPlanInputObject -Name + [-DefaultProfile ] [] +``` + ### LabPlan ``` Get-AzLabServicesPlanImage -LabPlan [-Name ] [-SubscriptionId ] @@ -136,11 +148,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -151,6 +178,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabPlanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLabPlan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. @@ -172,7 +214,7 @@ The image name. ```yaml Type: System.String -Parameter Sets: Get, LabPlan +Parameter Sets: Get, GetViaIdentityLabPlan, LabPlan Aliases: ImageName Required: True @@ -218,7 +260,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get, LabPlan, List, ListByDisplayName, ResourceId Aliases: Required: False @@ -233,13 +275,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ### System.String ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesSchedule.md index fb640cc9fe0e..1843aac38cab 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesSchedule.md @@ -24,6 +24,18 @@ Get-AzLabServicesSchedule -LabName -Name -ResourceGroupName ] [-DefaultProfile ] [] ``` +### GetViaIdentity +``` +Get-AzLabServicesSchedule -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityLab +``` +Get-AzLabServicesSchedule -LabInputObject -Name [-DefaultProfile ] + [] +``` + ### Lab ``` Get-AzLabServicesSchedule -Lab [-Name ] [-SubscriptionId ] @@ -88,11 +100,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -103,6 +130,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -125,7 +167,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Get, Lab +Parameter Sets: Get, GetViaIdentityLab, Lab Aliases: ScheduleName Required: True @@ -171,7 +213,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get, Lab, LabObject, List Aliases: Required: False @@ -186,11 +228,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesTemplateVM.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesTemplateVM.md index eb349670d21a..88089c1f27fa 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesTemplateVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesTemplateVM.md @@ -60,10 +60,10 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -124,11 +124,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUser.md index 80aeb66f16b0..31cec24562a2 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUser.md @@ -24,6 +24,17 @@ Get-AzLabServicesUser -LabName -Name -ResourceGroupName ] [-DefaultProfile ] [] ``` +### GetViaIdentity +``` +Get-AzLabServicesUser -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityLab +``` +Get-AzLabServicesUser -LabInputObject -Name [-DefaultProfile ] + [] +``` + ### Lab ``` Get-AzLabServicesUser -Lab [-Name ] [-SubscriptionId ] [-DefaultProfile ] @@ -100,11 +111,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -115,6 +141,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -137,7 +178,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Get, Lab +Parameter Sets: Get, GetViaIdentityLab, Lab Aliases: UserName Required: True @@ -183,7 +224,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get, Lab, List, ResourceId Aliases: Required: False @@ -198,11 +239,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUserVM.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUserVM.md index 79cf8943fd77..bbba60cba91c 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesUserVM.md @@ -87,10 +87,10 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -162,10 +162,10 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -181,11 +181,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesVM.md b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesVM.md index a61e2645eb3a..77785f00a85e 100644 --- a/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Get-AzLabServicesVM.md @@ -24,6 +24,17 @@ Get-AzLabServicesVM -LabName -Name -ResourceGroupName [-DefaultProfile ] [] ``` +### GetViaIdentity +``` +Get-AzLabServicesVM -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityLab +``` +Get-AzLabServicesVM -LabInputObject -Name [-DefaultProfile ] + [] +``` + ### Lab ``` Get-AzLabServicesVM -Lab [-Name ] [-SubscriptionId ] [-DefaultProfile ] @@ -96,11 +107,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -111,6 +137,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -133,7 +174,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Get, Lab +Parameter Sets: Get, GetViaIdentityLab, Lab Aliases: VirtualMachineName Required: True @@ -164,7 +205,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get, Lab, List Aliases: Required: False @@ -179,11 +220,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLab.md index 8f1563393f93..fd742bc299b7 100644 --- a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLab.md @@ -12,27 +12,41 @@ Operation to create a lab resource. ## SYNTAX +### CreateExpanded (Default) ``` New-AzLabServicesLab -Name -ResourceGroupName -Location [-SubscriptionId ] - [-AdditionalCapabilityInstallGpuDriver ] [-AdminUserPassword ] + [-AdditionalCapabilityInstallGpuDriver ] [-AdminUserPassword ] [-AdminUserUsername ] [-AutoShutdownProfileDisconnectDelay ] [-AutoShutdownProfileIdleDelay ] [-AutoShutdownProfileNoConnectDelay ] - [-AutoShutdownProfileShutdownOnDisconnect ] - [-AutoShutdownProfileShutdownOnIdle ] - [-AutoShutdownProfileShutdownWhenNotConnected ] - [-ConnectionProfileClientRdpAccess ] [-ConnectionProfileClientSshAccess ] - [-ConnectionProfileWebRdpAccess ] [-ConnectionProfileWebSshAccess ] - [-Description ] [-ImageReferenceId ] [-ImageReferenceOffer ] - [-ImageReferencePublisher ] [-ImageReferenceSku ] [-ImageReferenceVersion ] - [-LabPlanId ] [-NetworkProfileLoadBalancerId ] [-NetworkProfilePublicIPId ] - [-NetworkProfileSubnetId ] [-NonAdminUserPassword ] [-NonAdminUserUsername ] + [-AutoShutdownProfileShutdownOnDisconnect ] [-AutoShutdownProfileShutdownOnIdle ] + [-AutoShutdownProfileShutdownWhenNotConnected ] [-ConnectionProfileClientRdpAccess ] + [-ConnectionProfileClientSshAccess ] [-ConnectionProfileWebRdpAccess ] + [-ConnectionProfileWebSshAccess ] [-Description ] [-ImageReferenceId ] + [-ImageReferenceOffer ] [-ImageReferencePublisher ] [-ImageReferenceSku ] + [-ImageReferenceVersion ] [-LabPlanId ] [-NetworkProfileLoadBalancerId ] + [-NetworkProfilePublicIPId ] [-NetworkProfileSubnetId ] + [-NonAdminUserPassword ] [-NonAdminUserUsername ] [-RosterProfileActiveDirectoryGroupId ] [-RosterProfileLmsInstance ] [-RosterProfileLtiClientId ] [-RosterProfileLtiContextId ] - [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-SkuCapacity ] - [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] - [-Title ] [-VirtualMachineProfileCreateOption ] - [-VirtualMachineProfileUsageQuota ] [-VirtualMachineProfileUseSharedPassword ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-SkuCapacity ] + [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] + [-Title ] [-VirtualMachineProfileCreateOption ] [-VirtualMachineProfileUsageQuota ] + [-VirtualMachineProfileUseSharedPassword ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesLab -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzLabServicesLab -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -83,8 +97,8 @@ Creates a new Lab. Flag to pre-install dedicated GPU drivers. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -100,7 +114,7 @@ This is required for the TemplateVM createOption. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -115,7 +129,7 @@ The username to use when signing in to lab VMs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -145,7 +159,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -160,7 +174,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -175,7 +189,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -189,8 +203,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -204,8 +218,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -219,8 +233,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -234,8 +248,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -249,8 +263,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -264,8 +278,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -279,8 +293,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -291,7 +305,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 @@ -310,7 +325,7 @@ The description of the lab. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -325,7 +340,7 @@ Image resource ID ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -340,7 +355,7 @@ The image offer if applicable. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -355,7 +370,7 @@ The image publisher ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -370,7 +385,7 @@ The image SKU ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -385,7 +400,7 @@ The image version specified on creation. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -395,6 +410,36 @@ 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 +``` + ### -LabPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. @@ -402,7 +447,7 @@ Setting a labPlanId on an existing lab provides organization.. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -417,7 +462,7 @@ The geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -448,7 +493,7 @@ The external load balancer resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -463,7 +508,7 @@ The external public IP resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -478,7 +523,7 @@ The external subnet resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -494,7 +539,7 @@ This is required for the TemplateVM createOption. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -509,7 +554,7 @@ The username to use when signing in to lab VMs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -556,7 +601,7 @@ Having this set enables AAD sync mode. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -571,7 +616,7 @@ The base URI identifying the lms instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -586,7 +631,7 @@ The unique id of the azure lab services tool in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -601,7 +646,7 @@ The unique context identifier for the lab in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -616,7 +661,7 @@ The uri of the names and roles service endpoint on the lms for the class attache ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -630,8 +675,8 @@ Accept wildcard characters: False Whether any user or only specified users can register to a lab. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -647,7 +692,7 @@ If scale out/in is not possible for the resource this may be omitted. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -662,7 +707,7 @@ If the service has different generations of hardware, for the same SKU, then tha ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -679,7 +724,7 @@ It is typically a letter+number code ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -695,7 +740,7 @@ When the name field is the combination of tier and some other value, this would ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -709,8 +754,8 @@ Accept wildcard characters: False This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -740,7 +785,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -755,7 +800,7 @@ The title of the lab. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -769,8 +814,8 @@ Accept wildcard characters: False Indicates what lab virtual machines are created from. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -786,7 +831,7 @@ Must be a time span between 0 and 9999 hours. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -800,8 +845,8 @@ Accept wildcard characters: False Enabling this option will use the same password for all user VMs. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -849,7 +894,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLabPlan.md index 7cba89f32544..534f0c330b21 100644 --- a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesLabPlan.md @@ -8,29 +8,43 @@ schema: 2.0.0 # New-AzLabServicesLabPlan ## SYNOPSIS -Operation to create or update a Lab Plan resource. +Operation to create a Lab Plan resource. ## SYNTAX +### CreateExpanded (Default) ``` New-AzLabServicesLabPlan -Name -ResourceGroupName -Location [-SubscriptionId ] [-AllowedRegion ] [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] [-DefaultAutoShutdownProfileNoConnectDelay ] - [-DefaultAutoShutdownProfileShutdownOnDisconnect ] - [-DefaultAutoShutdownProfileShutdownOnIdle ] - [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] - [-DefaultConnectionProfileClientRdpAccess ] - [-DefaultConnectionProfileClientSshAccess ] - [-DefaultConnectionProfileWebRdpAccess ] - [-DefaultConnectionProfileWebSshAccess ] [-DefaultNetworkProfileSubnetId ] - [-LinkedLmsInstance ] [-SharedGalleryId ] [-SupportInfoEmail ] - [-SupportInfoInstruction ] [-SupportInfoPhone ] [-SupportInfoUrl ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccess ] [-DefaultConnectionProfileClientSshAccess ] + [-DefaultConnectionProfileWebRdpAccess ] [-DefaultConnectionProfileWebSshAccess ] + [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] + [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] + [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesLabPlan -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzLabServicesLabPlan -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -Operation to create or update a Lab Plan resource. +Operation to create a Lab Plan resource. ## EXAMPLES @@ -69,7 +83,7 @@ The allowed regions for the lab creator to use when creating labs using this lab ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -99,7 +113,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -114,7 +128,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -129,7 +143,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -143,8 +157,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -158,8 +172,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -173,8 +187,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -188,8 +202,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -203,8 +217,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -218,8 +232,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -233,8 +247,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -249,7 +263,7 @@ The external subnet resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -275,12 +289,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LinkedLmsInstance Base Url of the lms instance this lab plan can link lab rosters against. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -295,7 +339,7 @@ The geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -359,7 +403,7 @@ Shared images from the gallery can be made available to use when creating new la ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -389,7 +433,7 @@ Support contact email address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -404,7 +448,7 @@ Support instructions. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -419,7 +463,7 @@ Support contact phone number. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -434,7 +478,7 @@ Support web address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -449,7 +493,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -497,7 +541,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesSchedule.md index 41227166a8a5..3e4e6a7071c8 100644 --- a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesSchedule.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzLabServicesSchedule ## SYNOPSIS -Operation to create or update a lab schedule. +Operation to create a lab schedule. ## SYNTAX @@ -16,21 +16,42 @@ Operation to create or update a lab schedule. ``` New-AzLabServicesSchedule -LabName -Name -ResourceGroupName [-SubscriptionId ] [-Note ] [-RecurrencePatternExpirationDate ] - [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] - [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] + [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] + [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaIdentityLabExpanded +``` +New-AzLabServicesSchedule -LabInputObject -Name [-Note ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesSchedule -LabName -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzLabServicesSchedule -LabName -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ### Lab ``` New-AzLabServicesSchedule -Lab -Name [-SubscriptionId ] [-Note ] - [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] - [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [] ``` ## DESCRIPTION -Operation to create or update a lab schedule. +Operation to create a lab schedule. ## EXAMPLES @@ -75,11 +96,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 +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -90,13 +141,28 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: CreateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -127,7 +193,7 @@ Notes for this schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -143,7 +209,7 @@ This date is inclusive. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -157,8 +223,8 @@ Accept wildcard characters: False The frequency of the recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -175,7 +241,7 @@ When no interval is supplied, an interval of 1 is used. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -190,8 +256,8 @@ The week days the schedule runs. Used for when the Frequency is set to Weekly. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[] -Parameter Sets: (All) +Type: System.String[] +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -207,7 +273,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -223,7 +289,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -239,7 +305,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -254,7 +320,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString, Lab Aliases: Required: False @@ -269,7 +335,7 @@ The IANA timezone id for the schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -315,11 +381,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesUser.md index f50b3416d949..711c6847f66c 100644 --- a/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/docs/New-AzLabServicesUser.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzLabServicesUser ## SYNOPSIS -Operation to create or update a lab user. +Operation to create a lab user. ## SYNTAX @@ -19,6 +19,27 @@ New-AzLabServicesUser -LabName -Name -ResourceGroupName ] ``` +### CreateViaIdentityLabExpanded +``` +New-AzLabServicesUser -LabInputObject -Name -Email + [-AdditionalUsageQuota ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesUser -LabName -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzLabServicesUser -LabName -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ### Lab ``` New-AzLabServicesUser -Lab -Name -Email [-SubscriptionId ] @@ -26,7 +47,7 @@ New-AzLabServicesUser -Lab -Name -Email [-SubscriptionId ``` ## DESCRIPTION -Operation to create or update a lab user. +Operation to create a lab user. ## EXAMPLES @@ -50,7 +71,7 @@ The amount of usage quota time the user gets in addition to the lab usage quota. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab Aliases: Required: False @@ -96,7 +117,37 @@ Email address of the user. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityLabExpanded, Lab +Aliases: + +Required: True +Position: Named +Default value: None +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 @@ -107,10 +158,10 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -121,13 +172,28 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: CreateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -174,7 +240,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -189,7 +255,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString, Lab Aliases: Required: False @@ -235,11 +301,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Publish-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/docs/Publish-AzLabServicesLab.md index c19d6ff5d6db..60d990e80e83 100644 --- a/src/LabServices/LabServices.Autorest/docs/Publish-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/docs/Publish-AzLabServicesLab.md @@ -31,6 +31,12 @@ Publish-AzLabServicesLab -Name -ResourceGroupName [-Subscripti [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### PublishViaIdentity +``` +Publish-AzLabServicesLab -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. @@ -98,11 +104,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: PublishViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -149,7 +170,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Publish +Parameter Sets: Publish, PublishViaIdentity Aliases: Required: False @@ -195,7 +216,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Lab, Publish, ResourceId Aliases: Required: False @@ -241,11 +262,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLab.md index 30a8e0d0266b..b4aeb4c23efa 100644 --- a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLab.md @@ -24,6 +24,12 @@ Remove-AzLabServicesLab -Name -ResourceGroupName [-Subscriptio [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesLab -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### Lab ``` Remove-AzLabServicesLab -Lab [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] @@ -81,11 +87,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -97,10 +118,10 @@ Accept wildcard characters: False ``` ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -193,7 +214,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete, Lab, LabPlan, ResourceId Aliases: Required: False @@ -239,7 +260,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS diff --git a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLabPlan.md index a99dbfe98357..868e75df4584 100644 --- a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesLabPlan.md @@ -19,6 +19,12 @@ Remove-AzLabServicesLabPlan -Name -ResourceGroupName [-Subscri [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesLabPlan -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### LabPlan ``` Remove-AzLabServicesLabPlan -LabPlan [-SubscriptionId ] [-DefaultProfile ] @@ -71,11 +77,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -153,7 +174,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete, LabPlan Aliases: Required: False @@ -199,7 +220,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS diff --git a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesSchedule.md index c894e4c294ed..9f8971574d2c 100644 --- a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesSchedule.md @@ -25,6 +25,18 @@ Remove-AzLabServicesSchedule -LabName -Name -ResourceGroupName [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesSchedule -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityLab +``` +Remove-AzLabServicesSchedule -LabInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### Schedule ``` Remove-AzLabServicesSchedule -Schedule [-SubscriptionId ] [-DefaultProfile ] @@ -76,6 +88,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -98,7 +140,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityLab Aliases: ScheduleName Required: True @@ -170,10 +212,10 @@ Accept wildcard characters: False ``` ### -Schedule -To construct, see NOTES section for SCHEDULE properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Schedule +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Schedule Parameter Sets: Schedule Aliases: @@ -189,7 +231,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete, ResourceId, Schedule Aliases: Required: False @@ -235,7 +277,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Schedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Schedule ## OUTPUTS diff --git a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesUser.md index 11238a9f48f4..1a3240e4a424 100644 --- a/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/docs/Remove-AzLabServicesUser.md @@ -25,6 +25,18 @@ Remove-AzLabServicesUser -LabName -Name -ResourceGroupName ] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesUser -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityLab +``` +Remove-AzLabServicesUser -LabInputObject -Name [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### Lab ``` Remove-AzLabServicesUser -Lab -Name [-SubscriptionId ] [-DefaultProfile ] @@ -82,11 +94,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -97,6 +124,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -119,7 +161,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Delete, Lab +Parameter Sets: Delete, DeleteViaIdentityLab, Lab Aliases: UserName Required: True @@ -195,7 +237,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete, Lab, ResourceId, User Aliases: Required: False @@ -206,10 +248,10 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -256,9 +298,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS diff --git a/src/LabServices/LabServices.Autorest/docs/Reset-AzLabServicesVMPassword.md b/src/LabServices/LabServices.Autorest/docs/Reset-AzLabServicesVMPassword.md index 276f3d12256d..ac3703435b81 100644 --- a/src/LabServices/LabServices.Autorest/docs/Reset-AzLabServicesVMPassword.md +++ b/src/LabServices/LabServices.Autorest/docs/Reset-AzLabServicesVMPassword.md @@ -18,13 +18,40 @@ Reset-AzLabServicesVMPassword -Password -ResourceId [-Su [-Username ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [] ``` -### Reset +### ResetExpanded ``` Reset-AzLabServicesVMPassword -LabName -ResourceGroupName -VirtualMachineName -Password -Username [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### ResetViaIdentityExpanded +``` +Reset-AzLabServicesVMPassword -InputObject -Password -Username + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ResetViaIdentityLabExpanded +``` +Reset-AzLabServicesVMPassword -LabInputObject -VirtualMachineName + -Password -Username [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### ResetViaJsonFilePath +``` +Reset-AzLabServicesVMPassword -LabName -ResourceGroupName -VirtualMachineName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### ResetViaJsonString +``` +Reset-AzLabServicesVMPassword -LabName -ResourceGroupName -VirtualMachineName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + ### VM ``` Reset-AzLabServicesVMPassword -Password -VM [-SubscriptionId ] @@ -61,7 +88,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 @@ -75,13 +103,73 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: ResetViaIdentityExpanded +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 Reset operation + +```yaml +Type: System.String +Parameter Sets: ResetViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Reset operation + +```yaml +Type: System.String +Parameter Sets: ResetViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: ResetViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Reset +Parameter Sets: ResetExpanded, ResetViaJsonFilePath, ResetViaJsonString Aliases: Required: True @@ -126,7 +214,7 @@ The password ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: ResetExpanded, ResetViaIdentityExpanded, ResetViaIdentityLabExpanded, ResourceId, VM Aliases: Required: True @@ -142,7 +230,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Reset +Parameter Sets: ResetExpanded, ResetViaJsonFilePath, ResetViaJsonString Aliases: Required: True @@ -172,7 +260,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResetExpanded, ResetViaJsonFilePath, ResetViaJsonString, ResourceId, VM Aliases: Required: False @@ -187,7 +275,7 @@ The user whose password is being reset ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResetExpanded, ResetViaIdentityExpanded, ResetViaIdentityLabExpanded, ResourceId, VM Aliases: Required: True @@ -203,7 +291,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Reset +Parameter Sets: ResetExpanded, ResetViaIdentityLabExpanded, ResetViaJsonFilePath, ResetViaJsonString Aliases: Required: True @@ -214,10 +302,10 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -264,11 +352,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Save-AzLabServicesLabPlanImage.md b/src/LabServices/LabServices.Autorest/docs/Save-AzLabServicesLabPlanImage.md index fa1a84839fcd..dcfaaeb84f10 100644 --- a/src/LabServices/LabServices.Autorest/docs/Save-AzLabServicesLabPlanImage.md +++ b/src/LabServices/LabServices.Autorest/docs/Save-AzLabServicesLabPlanImage.md @@ -12,12 +12,34 @@ Saves an image from a lab VM to the attached shared image gallery. ## SYNTAX +### SaveExpanded (Default) ``` Save-AzLabServicesLabPlanImage -LabPlanName -ResourceGroupName [-SubscriptionId ] [-LabVirtualMachineId ] [-Name ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### SaveViaIdentityExpanded +``` +Save-AzLabServicesLabPlanImage -InputObject [-LabVirtualMachineId ] + [-Name ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### SaveViaJsonFilePath +``` +Save-AzLabServicesLabPlanImage -LabPlanName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### SaveViaJsonString +``` +Save-AzLabServicesLabPlanImage -LabPlanName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Saves an image from a lab VM to the attached shared image gallery. @@ -63,13 +85,58 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: SaveViaIdentityExpanded +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 Save operation + +```yaml +Type: System.String +Parameter Sets: SaveViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Save operation + +```yaml +Type: System.String +Parameter Sets: SaveViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LabPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaJsonFilePath, SaveViaJsonString Aliases: Required: True @@ -84,7 +151,7 @@ The ID of the lab virtual machine you want to save an image from. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaIdentityExpanded Aliases: Required: False @@ -99,7 +166,7 @@ The name for the image we create. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaIdentityExpanded Aliases: Required: False @@ -145,7 +212,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaJsonFilePath, SaveViaJsonString Aliases: Required: True @@ -160,7 +227,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaJsonFilePath, SaveViaJsonString Aliases: Required: False @@ -206,6 +273,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Send-AzLabServicesUserInvite.md b/src/LabServices/LabServices.Autorest/docs/Send-AzLabServicesUserInvite.md index e1adb6c9efe3..10ebda57b894 100644 --- a/src/LabServices/LabServices.Autorest/docs/Send-AzLabServicesUserInvite.md +++ b/src/LabServices/LabServices.Autorest/docs/Send-AzLabServicesUserInvite.md @@ -25,6 +25,32 @@ Send-AzLabServicesUserInvite -LabName -ResourceGroupName -User [-Confirm] [-WhatIf] [] ``` +### InviteViaIdentityExpanded +``` +Send-AzLabServicesUserInvite -InputObject [-Text ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### InviteViaIdentityLabExpanded +``` +Send-AzLabServicesUserInvite -LabInputObject -UserName [-Text ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### InviteViaJsonFilePath +``` +Send-AzLabServicesUserInvite -LabName -ResourceGroupName -UserName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### InviteViaJsonString +``` +Send-AzLabServicesUserInvite -LabName -ResourceGroupName -UserName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + ### Users ``` Send-AzLabServicesUserInvite -User [-SubscriptionId ] [-Text ] @@ -76,13 +102,73 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: InviteViaIdentityExpanded +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 Invite operation + +```yaml +Type: System.String +Parameter Sets: InviteViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Invite operation + +```yaml +Type: System.String +Parameter Sets: InviteViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: InviteViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: InviteExpanded +Parameter Sets: InviteExpanded, InviteViaJsonFilePath, InviteViaJsonString Aliases: Required: True @@ -112,7 +198,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: InviteExpanded +Parameter Sets: InviteExpanded, InviteViaIdentityExpanded, InviteViaIdentityLabExpanded, InviteViaJsonFilePath, InviteViaJsonString Aliases: Required: False @@ -128,7 +214,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: InviteExpanded +Parameter Sets: InviteExpanded, InviteViaJsonFilePath, InviteViaJsonString Aliases: Required: True @@ -158,7 +244,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: InviteExpanded, InviteViaJsonFilePath, InviteViaJsonString, ResourceId, Users Aliases: Required: False @@ -173,7 +259,7 @@ Custom text for the invite email. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: InviteExpanded, InviteViaIdentityExpanded, InviteViaIdentityLabExpanded, ResourceId, Users Aliases: Required: False @@ -184,10 +270,10 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: Users Aliases: @@ -204,7 +290,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: InviteExpanded +Parameter Sets: InviteExpanded, InviteViaIdentityLabExpanded, InviteViaJsonFilePath, InviteViaJsonString Aliases: Required: True @@ -250,11 +336,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesUserVM.md b/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesUserVM.md index de0d780a2761..0fc7439933ec 100644 --- a/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesUserVM.md @@ -147,10 +147,10 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -197,11 +197,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVM.md b/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVM.md index 93f362d64aab..b2817fe9b7ac 100644 --- a/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVM.md @@ -24,6 +24,18 @@ Start-AzLabServicesVM -LabName -Name -ResourceGroupName ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### StartViaIdentity +``` +Start-AzLabServicesVM -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StartViaIdentityLab +``` +Start-AzLabServicesVM -LabInputObject -Name [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### VM ``` Start-AzLabServicesVM -VM [-SubscriptionId ] [-DefaultProfile ] [-AsJob] @@ -75,6 +87,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StartViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -97,7 +139,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Start +Parameter Sets: Start, StartViaIdentityLab Aliases: VirtualMachineName Required: True @@ -127,7 +169,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Start +Parameter Sets: Start, StartViaIdentity, StartViaIdentityLab Aliases: Required: False @@ -173,7 +215,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Start, VM Aliases: Required: False @@ -184,10 +226,10 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -234,11 +276,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVMRedeployment.md b/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVMRedeployment.md index fe1e308f88c4..45e5bfa64292 100644 --- a/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVMRedeployment.md +++ b/src/LabServices/LabServices.Autorest/docs/Start-AzLabServicesVMRedeployment.md @@ -26,6 +26,18 @@ Start-AzLabServicesVMRedeployment -LabName -ResourceGroupName [] ``` +### RedeployViaIdentity +``` +Start-AzLabServicesVMRedeployment -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### RedeployViaIdentityLab +``` +Start-AzLabServicesVMRedeployment -LabInputObject -VirtualMachineName + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. @@ -72,6 +84,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: RedeployViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: RedeployViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -154,7 +196,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Redeploy, ResourceId Aliases: Required: False @@ -170,7 +212,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Redeploy +Parameter Sets: Redeploy, RedeployViaIdentityLab Aliases: Required: True @@ -216,9 +258,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesUserVM.md b/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesUserVM.md index 4f52f93ec4c4..e37946d5f43d 100644 --- a/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesUserVM.md @@ -147,10 +147,10 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -197,11 +197,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesVM.md b/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesVM.md index 0d7f831320bf..4f851012318d 100644 --- a/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesVM.md +++ b/src/LabServices/LabServices.Autorest/docs/Stop-AzLabServicesVM.md @@ -24,6 +24,18 @@ Stop-AzLabServicesVM -LabName -Name -ResourceGroupName ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### StopViaIdentity +``` +Stop-AzLabServicesVM -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StopViaIdentityLab +``` +Stop-AzLabServicesVM -LabInputObject -Name [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### VM ``` Stop-AzLabServicesVM -VM [-SubscriptionId ] [-DefaultProfile ] [-AsJob] @@ -75,6 +87,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StopViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StopViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -97,7 +139,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Stop +Parameter Sets: Stop, StopViaIdentityLab Aliases: VirtualMachineName Required: True @@ -127,7 +169,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Stop +Parameter Sets: Stop, StopViaIdentity, StopViaIdentityLab Aliases: Required: False @@ -173,7 +215,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Stop, VM Aliases: Required: False @@ -184,10 +226,10 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -234,11 +276,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Sync-AzLabServicesLabUser.md b/src/LabServices/LabServices.Autorest/docs/Sync-AzLabServicesLabUser.md index 22d3b93a0d10..bb620c311d13 100644 --- a/src/LabServices/LabServices.Autorest/docs/Sync-AzLabServicesLabUser.md +++ b/src/LabServices/LabServices.Autorest/docs/Sync-AzLabServicesLabUser.md @@ -24,6 +24,12 @@ Sync-AzLabServicesLabUser -Lab [-SubscriptionId ] [-DefaultProfile [-NoWait] [] ``` +### SyncViaIdentity +``` +Sync-AzLabServicesLabUser -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Action used to manually kick off an AAD group sync job. @@ -69,11 +75,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: SyncViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -120,7 +141,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Sync +Parameter Sets: Sync, SyncViaIdentity Aliases: Required: False @@ -151,7 +172,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Lab, Sync Aliases: Required: False @@ -197,11 +218,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLab.md index 610894a5f94d..c0b6842a0f3e 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLab.md @@ -12,26 +12,48 @@ Operation to update a lab resource. ## SYNTAX +### UpdateExpanded (Default) ``` Update-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] - [-AdditionalCapabilityInstallGpuDriver ] [-AdminUserPassword ] - [-AdminUserUsername ] [-AutoShutdownProfileDisconnectDelay ] + [-AutoShutdownProfileDisconnectDelay ] [-AutoShutdownProfileIdleDelay ] + [-AutoShutdownProfileNoConnectDelay ] [-AutoShutdownProfileShutdownOnDisconnect ] + [-AutoShutdownProfileShutdownOnIdle ] [-AutoShutdownProfileShutdownWhenNotConnected ] + [-ConnectionProfileClientRdpAccess ] [-ConnectionProfileClientSshAccess ] + [-ConnectionProfileWebRdpAccess ] [-ConnectionProfileWebSshAccess ] [-Description ] + [-LabPlanId ] [-RosterProfileActiveDirectoryGroupId ] [-RosterProfileLmsInstance ] + [-RosterProfileLtiClientId ] [-RosterProfileLtiContextId ] + [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-Tag ] + [-Title ] [-VirtualMachineProfileUsageQuota ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesLab -InputObject [-AutoShutdownProfileDisconnectDelay ] [-AutoShutdownProfileIdleDelay ] [-AutoShutdownProfileNoConnectDelay ] - [-AutoShutdownProfileShutdownOnDisconnect ] - [-AutoShutdownProfileShutdownOnIdle ] - [-AutoShutdownProfileShutdownWhenNotConnected ] - [-ConnectionProfileClientRdpAccess ] [-ConnectionProfileClientSshAccess ] - [-ConnectionProfileWebRdpAccess ] [-ConnectionProfileWebSshAccess ] - [-Description ] [-ImageReferenceId ] [-ImageReferenceOffer ] - [-ImageReferencePublisher ] [-ImageReferenceSku ] [-ImageReferenceVersion ] - [-LabPlanId ] [-NonAdminUserPassword ] [-NonAdminUserUsername ] + [-AutoShutdownProfileShutdownOnDisconnect ] [-AutoShutdownProfileShutdownOnIdle ] + [-AutoShutdownProfileShutdownWhenNotConnected ] [-ConnectionProfileClientRdpAccess ] + [-ConnectionProfileClientSshAccess ] [-ConnectionProfileWebRdpAccess ] + [-ConnectionProfileWebSshAccess ] [-Description ] [-LabPlanId ] [-RosterProfileActiveDirectoryGroupId ] [-RosterProfileLmsInstance ] [-RosterProfileLtiClientId ] [-RosterProfileLtiContextId ] - [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-SkuCapacity ] - [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] - [-Title ] [-VirtualMachineProfileCreateOption ] - [-VirtualMachineProfileUsageQuota ] [-VirtualMachineProfileUseSharedPassword ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-Tag ] + [-Title ] [-VirtualMachineProfileUsageQuota ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesLab -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesLab -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -54,52 +76,6 @@ This example updates the lab and enables the Shutdown on Disconnect option setti ## PARAMETERS -### -AdditionalCapabilityInstallGpuDriver -Flag to pre-install dedicated GPU drivers. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -AdminUserPassword -The password for the user. -This is required for the TemplateVM createOption. - -```yaml -Type: System.Security.SecureString -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -AdminUserUsername -The username to use when signing in to lab VMs. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -AsJob Run the command as a job @@ -120,7 +96,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -135,7 +111,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -150,7 +126,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -164,8 +140,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -179,8 +155,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -194,8 +170,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -209,8 +185,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -224,8 +200,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -239,8 +215,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -254,8 +230,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -266,7 +242,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 @@ -285,7 +262,7 @@ The description of the lab. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -295,75 +272,45 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ImageReferenceId -Image resource ID +### -InputObject +Identity Parameter ```yaml -Type: System.String -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded Aliases: -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ImageReferenceOffer -The image offer if applicable. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ImageReferencePublisher -The image publisher - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False +Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -ImageReferenceSku -The image SKU +### -JsonFilePath +Path of Json file supplied to the Update operation ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateViaJsonFilePath Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ImageReferenceVersion -The image version specified on creation. +### -JsonString +Json string supplied to the Update operation ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateViaJsonString Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -377,7 +324,7 @@ Setting a labPlanId on an existing lab provides organization.. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -393,7 +340,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: LabName Required: True @@ -403,37 +350,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NonAdminUserPassword -The password for the user. -This is required for the TemplateVM createOption. - -```yaml -Type: System.Security.SecureString -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NonAdminUserUsername -The username to use when signing in to lab VMs. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -NoWait Run the command asynchronously @@ -455,7 +371,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -471,7 +387,7 @@ Having this set enables AAD sync mode. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -486,7 +402,7 @@ The base URI identifying the lms instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -501,7 +417,7 @@ The unique id of the azure lab services tool in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -516,7 +432,7 @@ The unique context identifier for the lab in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -531,7 +447,7 @@ The uri of the names and roles service endpoint on the lms for the class attache ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -544,88 +460,9 @@ Accept wildcard characters: False ### -SecurityProfileOpenAccess Whether any user or only specified users can register to a lab. -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuCapacity -If the SKU supports scale out/in then the capacity integer should be included. -If scale out/in is not possible for the resource this may be omitted. - -```yaml -Type: System.Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuFamily -If the service has different generations of hardware, for the same SKU, then that can be captured here. - ```yaml Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuName -The name of the SKU. -Ex - P3. -It is typically a letter+number code - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuSize -The SKU size. -When the name field is the combination of tier and some other value, this would be the standalone code. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuTier -This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -640,7 +477,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -655,7 +492,7 @@ Resource tags. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -670,22 +507,7 @@ The title of the lab. ```yaml Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -VirtualMachineProfileCreateOption -Indicates what lab virtual machines are created from. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -701,22 +523,7 @@ Must be a time span between 0 and 9999 hours. ```yaml Type: System.TimeSpan -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -VirtualMachineProfileUseSharedPassword -Enabling this option will use the same password for all user VMs. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -762,9 +569,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLabPlan.md index 317f2072aac6..52ece15c0522 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesLabPlan.md @@ -17,16 +17,15 @@ Operation to update a Lab Plan resource. Update-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] [-AllowedRegion ] [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] [-DefaultAutoShutdownProfileNoConnectDelay ] - [-DefaultAutoShutdownProfileShutdownOnDisconnect ] - [-DefaultAutoShutdownProfileShutdownOnIdle ] - [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] - [-DefaultConnectionProfileClientRdpAccess ] - [-DefaultConnectionProfileClientSshAccess ] - [-DefaultConnectionProfileWebRdpAccess ] - [-DefaultConnectionProfileWebSshAccess ] [-DefaultNetworkProfileSubnetId ] - [-LinkedLmsInstance ] [-SharedGalleryId ] [-SupportInfoEmail ] - [-SupportInfoInstruction ] [-SupportInfoPhone ] [-SupportInfoUrl ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccess ] [-DefaultConnectionProfileClientSshAccess ] + [-DefaultConnectionProfileWebRdpAccess ] [-DefaultConnectionProfileWebSshAccess ] + [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] + [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] + [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### LabPlan @@ -34,16 +33,46 @@ Update-AzLabServicesLabPlan -Name -ResourceGroupName [-Subscri Update-AzLabServicesLabPlan -LabPlan [-SubscriptionId ] [-AllowedRegion ] [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] [-DefaultAutoShutdownProfileNoConnectDelay ] - [-DefaultAutoShutdownProfileShutdownOnDisconnect ] - [-DefaultAutoShutdownProfileShutdownOnIdle ] - [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] - [-DefaultConnectionProfileClientRdpAccessEnabled ] - [-DefaultConnectionProfileClientSshAccessEnabled ] [-DefaultNetworkProfileSubnetId ] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccessEnabled ] + [-DefaultConnectionProfileClientSshAccessEnabled ] [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [] ``` +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesLabPlan -InputObject [-AllowedRegion ] + [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] + [-DefaultAutoShutdownProfileNoConnectDelay ] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccess ] [-DefaultConnectionProfileClientSshAccess ] + [-DefaultConnectionProfileWebRdpAccess ] [-DefaultConnectionProfileWebSshAccess ] + [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] + [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] + [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesLabPlan -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesLabPlan -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Operation to update a Lab Plan resource. @@ -69,7 +98,7 @@ The allowed regions for the lab creator to use when creating labs using this lab ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -99,7 +128,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -114,7 +143,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -129,7 +158,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -143,8 +172,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -158,8 +187,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -173,8 +202,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -188,8 +217,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -203,7 +232,7 @@ Accept wildcard characters: False ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType +Type: System.String Parameter Sets: LabPlan Aliases: @@ -218,8 +247,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -233,7 +262,7 @@ Accept wildcard characters: False ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType +Type: System.String Parameter Sets: LabPlan Aliases: @@ -248,8 +277,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -263,8 +292,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -279,7 +308,7 @@ The external subnet resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -305,11 +334,56 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -325,7 +399,7 @@ Base Url of the lms instance this lab plan can link lab rosters against. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -341,7 +415,7 @@ Used in resource URIs and in UI. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: LabPlanName Required: True @@ -372,7 +446,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -389,7 +463,7 @@ Shared images from the gallery can be made available to use when creating new la ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -404,7 +478,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -419,7 +493,7 @@ Support contact email address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -434,7 +508,7 @@ Support instructions. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -449,7 +523,7 @@ Support contact phone number. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -464,7 +538,7 @@ Support web address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -479,7 +553,7 @@ Resource tags. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -525,11 +599,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesPlanImage.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesPlanImage.md index b9668591fef9..b0157d584199 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesPlanImage.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesPlanImage.md @@ -8,31 +8,57 @@ schema: 2.0.0 # Update-AzLabServicesPlanImage ## SYNOPSIS -Updates an image resource. +Update an image resource. ## SYNTAX ### ResourceId (Default) ``` -Update-AzLabServicesPlanImage -EnabledState -ResourceId [-SubscriptionId ] +Update-AzLabServicesPlanImage -EnabledState -ResourceId [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] ``` ### LabPlan ``` -Update-AzLabServicesPlanImage -LabPlan -Name -EnabledState +Update-AzLabServicesPlanImage -LabPlan -Name -EnabledState [-SubscriptionId ] [-DefaultProfile ] [] ``` ### UpdateExpanded ``` Update-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupName - [-SubscriptionId ] [-EnabledState ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [-SubscriptionId ] [-EnabledState ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesPlanImage -InputObject [-EnabledState ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityLabPlanExpanded +``` +Update-AzLabServicesPlanImage -LabPlanInputObject -Name + [-EnabledState ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates an image resource. +Update an image resource. ## EXAMPLES @@ -86,8 +112,53 @@ Accept wildcard characters: False Is the image enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: LabPlan, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabPlanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 @@ -98,10 +169,10 @@ Accept wildcard characters: False ``` ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -112,13 +183,28 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabPlanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityLabPlanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -133,7 +219,7 @@ The image name. ```yaml Type: System.String -Parameter Sets: LabPlan, UpdateExpanded +Parameter Sets: LabPlan, UpdateExpanded, UpdateViaIdentityLabPlanExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ImageName Required: True @@ -164,7 +250,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -194,7 +280,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: LabPlan, ResourceId, UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -240,11 +326,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesQuota.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesQuota.md index 3a676029378d..d06f18269094 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesQuota.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesQuota.md @@ -76,10 +76,10 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -202,11 +202,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesSchedule.md index c1b8d330c9a8..136ed05c3ef2 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesSchedule.md @@ -15,16 +15,16 @@ Operation to update a lab schedule. ### ResourceId (Default) ``` Update-AzLabServicesSchedule -ResourceId [-SubscriptionId ] [-Note ] - [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] - [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [] ``` ### Lab ``` Update-AzLabServicesSchedule -Lab -Name [-SubscriptionId ] [-Note ] - [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] - [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [] ``` @@ -32,11 +32,42 @@ Update-AzLabServicesSchedule -Lab -Name [-SubscriptionId ``` Update-AzLabServicesSchedule -LabName -Name -ResourceGroupName [-SubscriptionId ] [-Note ] [-RecurrencePatternExpirationDate ] - [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] - [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] + [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] + [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesSchedule -InputObject [-Note ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityLabExpanded +``` +Update-AzLabServicesSchedule -LabInputObject -Name [-Note ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesSchedule -LabName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesSchedule -LabName -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Operation to update a lab schedule. @@ -73,11 +104,56 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -88,13 +164,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -110,7 +201,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Lab, UpdateExpanded +Parameter Sets: Lab, UpdateExpanded, UpdateViaIdentityLabExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ScheduleName Required: True @@ -125,7 +216,7 @@ Notes for this schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -141,7 +232,7 @@ This date is inclusive. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -155,8 +246,8 @@ Accept wildcard characters: False The frequency of the recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency -Parameter Sets: (All) +Type: System.String +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -173,7 +264,7 @@ When no interval is supplied, an interval of 1 is used. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -188,8 +279,8 @@ The week days the schedule runs. Used for when the Frequency is set to Weekly. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[] -Parameter Sets: (All) +Type: System.String[] +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -205,7 +296,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -236,7 +327,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -252,7 +343,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -267,7 +358,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -282,7 +373,7 @@ The IANA timezone id for the schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -328,9 +419,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesUser.md index b7a2cf6f22a5..a04185688097 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesUser.md @@ -31,6 +31,33 @@ Update-AzLabServicesUser -LabName -Name -ResourceGroupName ] ``` +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesUser -InputObject [-AdditionalUsageQuota ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityLabExpanded +``` +Update-AzLabServicesUser -LabInputObject -Name + [-AdditionalUsageQuota ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesUser -LabName -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesUser -LabName -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Operation to update a lab user. @@ -56,7 +83,7 @@ The amount of usage quota time the user gets in addition to the lab usage quota. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityLabExpanded Aliases: Required: False @@ -97,11 +124,56 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -112,13 +184,28 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -134,7 +221,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Lab, UpdateExpanded +Parameter Sets: Lab, UpdateExpanded, UpdateViaIdentityLabExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: UserName Required: True @@ -165,7 +252,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -195,7 +282,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Lab, ResourceId, UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -241,11 +328,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesVMReimage.md b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesVMReimage.md index ec833e3386de..de12232fc353 100644 --- a/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesVMReimage.md +++ b/src/LabServices/LabServices.Autorest/docs/Update-AzLabServicesVMReimage.md @@ -26,6 +26,18 @@ Update-AzLabServicesVMReimage -LabName -Name -ResourceGroupNam [] ``` +### ReimageViaIdentity +``` +Update-AzLabServicesVMReimage -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ReimageViaIdentityLab +``` +Update-AzLabServicesVMReimage -LabInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### VM ``` Update-AzLabServicesVMReimage -VM [-SubscriptionId ] [-DefaultProfile ] @@ -84,6 +96,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: ReimageViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: ReimageViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -106,7 +148,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Reimage +Parameter Sets: Reimage, ReimageViaIdentityLab Aliases: VirtualMachineName Required: True @@ -136,7 +178,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Reimage +Parameter Sets: Reimage, ReimageViaIdentity, ReimageViaIdentityLab Aliases: Required: False @@ -182,7 +224,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Reimage, ResourceId, VM Aliases: Required: False @@ -193,10 +235,10 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -243,11 +285,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices.Autorest/generate-info.json b/src/LabServices/LabServices.Autorest/generate-info.json index ed0447bbe404..dd45c60c8b46 100644 --- a/src/LabServices/LabServices.Autorest/generate-info.json +++ b/src/LabServices/LabServices.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "4e0c10ed-c6ae-493b-87ea-1091062c6c10" + "generate_Id": "1638e80d-3a94-4bbb-87b9-8009f4185159" } diff --git a/src/LabServices/LabServices.Autorest/resources/README.md b/src/LabServices/LabServices.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/LabServices/LabServices.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/LabServices/LabServices.sln b/src/LabServices/LabServices.sln index 97a429d14cd4..3100fed7e8e4 100644 --- a/src/LabServices/LabServices.sln +++ b/src/LabServices/LabServices.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}") = "LabServices", "LabServices\LabServices.csproj", "{7B8F6897-6BFD-4AA7-9283-261F37834B05}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.LabServices", "..\..\generated\LabServices\LabServices.Autorest\Az.LabServices.csproj", "{543362D9-369D-4EDC-ADD1-3661ACB2B49D}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LabServices.Autorest", "LabServices.Autorest", "{BC45E559-9822-4D6D-C1D0-5B730C8C18A7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.LabServices", "..\..\generated\LabServices\LabServices.Autorest\Az.LabServices.csproj", "{1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}" 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 {00058521-D244-40D2-90F6-1A434F02F93C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {00058521-D244-40D2-90F6-1A434F02F93C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Debug|x64.ActiveCfg = Debug|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Debug|x64.Build.0 = Debug|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Debug|x86.ActiveCfg = Debug|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Debug|x86.Build.0 = Debug|Any CPU {00058521-D244-40D2-90F6-1A434F02F93C}.Release|Any CPU.ActiveCfg = Release|Any CPU {00058521-D244-40D2-90F6-1A434F02F93C}.Release|Any CPU.Build.0 = Release|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Release|x64.ActiveCfg = Release|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Release|x64.Build.0 = Release|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Release|x86.ActiveCfg = Release|Any CPU + {00058521-D244-40D2-90F6-1A434F02F93C}.Release|x86.Build.0 = Release|Any CPU {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Debug|x64.ActiveCfg = Debug|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Debug|x64.Build.0 = Debug|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Debug|x86.ActiveCfg = Debug|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Debug|x86.Build.0 = Debug|Any CPU {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Release|Any CPU.ActiveCfg = Release|Any CPU {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Release|Any CPU.Build.0 = Release|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Release|x64.ActiveCfg = Release|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Release|x64.Build.0 = Release|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Release|x86.ActiveCfg = Release|Any CPU + {147ACCA9-A8E6-4FF8-A473-A8F6CB2CAEFF}.Release|x86.Build.0 = Release|Any CPU {81CABDC9-5850-47B3-9075-314BC7808E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {81CABDC9-5850-47B3-9075-314BC7808E90}.Debug|Any CPU.Build.0 = Debug|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Debug|x64.ActiveCfg = Debug|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Debug|x64.Build.0 = Debug|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Debug|x86.ActiveCfg = Debug|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Debug|x86.Build.0 = Debug|Any CPU {81CABDC9-5850-47B3-9075-314BC7808E90}.Release|Any CPU.ActiveCfg = Release|Any CPU {81CABDC9-5850-47B3-9075-314BC7808E90}.Release|Any CPU.Build.0 = Release|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Release|x64.ActiveCfg = Release|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Release|x64.Build.0 = Release|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Release|x86.ActiveCfg = Release|Any CPU + {81CABDC9-5850-47B3-9075-314BC7808E90}.Release|x86.Build.0 = Release|Any CPU {3391B34A-5043-4567-8F07-7C6D08AB8453}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3391B34A-5043-4567-8F07-7C6D08AB8453}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Debug|x64.ActiveCfg = Debug|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Debug|x64.Build.0 = Debug|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Debug|x86.ActiveCfg = Debug|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Debug|x86.Build.0 = Debug|Any CPU {3391B34A-5043-4567-8F07-7C6D08AB8453}.Release|Any CPU.ActiveCfg = Release|Any CPU {3391B34A-5043-4567-8F07-7C6D08AB8453}.Release|Any CPU.Build.0 = Release|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Release|x64.ActiveCfg = Release|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Release|x64.Build.0 = Release|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Release|x86.ActiveCfg = Release|Any CPU + {3391B34A-5043-4567-8F07-7C6D08AB8453}.Release|x86.Build.0 = Release|Any CPU {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Debug|x64.ActiveCfg = Debug|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Debug|x64.Build.0 = Debug|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Debug|x86.ActiveCfg = Debug|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Debug|x86.Build.0 = Debug|Any CPU {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Release|Any CPU.ActiveCfg = Release|Any CPU {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Release|Any CPU.Build.0 = Release|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Release|x64.ActiveCfg = Release|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Release|x64.Build.0 = Release|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Release|x86.ActiveCfg = Release|Any CPU + {BEC370B6-02DE-41DE-9C91-7791167F7AF8}.Release|x86.Build.0 = Release|Any CPU {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Debug|x64.ActiveCfg = Debug|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Debug|x64.Build.0 = Debug|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Debug|x86.ActiveCfg = Debug|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Debug|x86.Build.0 = Debug|Any CPU {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Release|Any CPU.ActiveCfg = Release|Any CPU {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Release|Any CPU.Build.0 = Release|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Release|x64.ActiveCfg = Release|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Release|x64.Build.0 = Release|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Release|x86.ActiveCfg = Release|Any CPU + {F1C4C35E-53E9-4EB5-B237-BA7630231EC2}.Release|x86.Build.0 = Release|Any CPU {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Debug|x64.ActiveCfg = Debug|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Debug|x64.Build.0 = Debug|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Debug|x86.ActiveCfg = Debug|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Debug|x86.Build.0 = Debug|Any CPU {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Release|Any CPU.ActiveCfg = Release|Any CPU {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Release|Any CPU.Build.0 = Release|Any CPU - {543362D9-369D-4EDC-ADD1-3661ACB2B49D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {543362D9-369D-4EDC-ADD1-3661ACB2B49D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {543362D9-369D-4EDC-ADD1-3661ACB2B49D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {543362D9-369D-4EDC-ADD1-3661ACB2B49D}.Release|Any CPU.Build.0 = Release|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Release|x64.ActiveCfg = Release|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Release|x64.Build.0 = Release|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Release|x86.ActiveCfg = Release|Any CPU + {7B8F6897-6BFD-4AA7-9283-261F37834B05}.Release|x86.Build.0 = Release|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Debug|x64.ActiveCfg = Debug|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Debug|x64.Build.0 = Debug|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Debug|x86.ActiveCfg = Debug|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Debug|x86.Build.0 = Debug|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Release|Any CPU.Build.0 = Release|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Release|x64.ActiveCfg = Release|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Release|x64.Build.0 = Release|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Release|x86.ActiveCfg = Release|Any CPU + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {00058521-D244-40D2-90F6-1A434F02F93C} = {48298E71-49DA-43CD-8F43-CCA904E54839} @@ -70,5 +140,6 @@ Global {3391B34A-5043-4567-8F07-7C6D08AB8453} = {48298E71-49DA-43CD-8F43-CCA904E54839} {BEC370B6-02DE-41DE-9C91-7791167F7AF8} = {48298E71-49DA-43CD-8F43-CCA904E54839} {F1C4C35E-53E9-4EB5-B237-BA7630231EC2} = {48298E71-49DA-43CD-8F43-CCA904E54839} + {1FCD43E6-4AF3-48AA-8696-3CD9C9D009AD} = {BC45E559-9822-4D6D-C1D0-5B730C8C18A7} EndGlobalSection EndGlobal diff --git a/src/LabServices/LabServices/Az.LabServices.psd1 b/src/LabServices/LabServices/Az.LabServices.psd1 index 6e2398f328c6..d1fd5467d70d 100644 --- a/src/LabServices/LabServices/Az.LabServices.psd1 +++ b/src/LabServices/LabServices/Az.LabServices.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 6/3/2025 # @{ @@ -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 = '5.0.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'LabServices.Autorest/bin/Az.LabServices.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 = 'LabServices.Autorest\Az.LabServices.format.ps1xml' +FormatsToProcess = 'LabServices.Autorest/Az.LabServices.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('LabServices.Autorest/Az.LabServices.psm1') @@ -112,7 +112,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','LabServices' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'LabServices' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -137,7 +137,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/LabServices/LabServices/ChangeLog.md b/src/LabServices/LabServices/ChangeLog.md index ba3c49a347f6..bdd5684ff95b 100644 --- a/src/LabServices/LabServices/ChangeLog.md +++ b/src/LabServices/LabServices/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). +* Added breaking change message: Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired. ## Version 0.1.2 * Upgraded nuget package to signed package. diff --git a/src/LabServices/LabServices/help/Add-AzLabServicesUserQuota.md b/src/LabServices/LabServices/help/Add-AzLabServicesUserQuota.md index 218c5c34fd12..988c664e8cf2 100644 --- a/src/LabServices/LabServices/help/Add-AzLabServicesUserQuota.md +++ b/src/LabServices/LabServices/help/Add-AzLabServicesUserQuota.md @@ -165,10 +165,9 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -215,11 +214,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices/help/Az.LabServices.md b/src/LabServices/LabServices/help/Az.LabServices.md index 62eca63fb253..5b141fef5927 100644 --- a/src/LabServices/LabServices/help/Az.LabServices.md +++ b/src/LabServices/LabServices/help/Az.LabServices.md @@ -45,13 +45,13 @@ Returns the properties for a lab virtual machine. Operation to create a lab resource. ### [New-AzLabServicesLabPlan](New-AzLabServicesLabPlan.md) -Operation to create or update a Lab Plan resource. +Operation to create a Lab Plan resource. ### [New-AzLabServicesSchedule](New-AzLabServicesSchedule.md) -Operation to create or update a lab schedule. +Operation to create a lab schedule. ### [New-AzLabServicesUser](New-AzLabServicesUser.md) -Operation to create or update a lab user. +Operation to create a lab user. ### [Publish-AzLabServicesLab](Publish-AzLabServicesLab.md) Publish or re-publish a lab. @@ -105,7 +105,7 @@ Operation to update a lab resource. Operation to update a Lab Plan resource. ### [Update-AzLabServicesPlanImage](Update-AzLabServicesPlanImage.md) -Updates an image resource. +Update an image resource. ### [Update-AzLabServicesQuota](Update-AzLabServicesQuota.md) API to update the lab quota. diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesLab.md b/src/LabServices/LabServices/help/Get-AzLabServicesLab.md index cc3cbda20cb5..0edce74a2890 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesLab.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesLab.md @@ -122,10 +122,9 @@ Accept wildcard characters: False ``` ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -253,11 +252,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesLabForVM.md b/src/LabServices/LabServices/help/Get-AzLabServicesLabForVM.md index 47b3c3f6a03d..83ddfa76df34 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesLabForVM.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesLabForVM.md @@ -119,7 +119,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesLabPlan.md b/src/LabServices/LabServices/help/Get-AzLabServicesLabPlan.md index 89de4eb7a355..39ddd294f7b5 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesLabPlan.md @@ -42,6 +42,12 @@ Get-AzLabServicesLabPlan [-SubscriptionId ] -ResourceId [-Def [] ``` +### GetViaIdentity +``` +Get-AzLabServicesLabPlan -InputObject [-DefaultProfile ] + [] +``` + ## DESCRIPTION Retrieves the properties of a Lab Plan. @@ -95,6 +101,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Name The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. @@ -146,7 +167,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: List, ListByLabPlanName, Get, List1, ResourceId Aliases: Required: False @@ -161,11 +182,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ### System.String ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesPlanImage.md b/src/LabServices/LabServices/help/Get-AzLabServicesPlanImage.md index 34f0f2179d8c..a254e2452939 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesPlanImage.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesPlanImage.md @@ -43,6 +43,18 @@ Get-AzLabServicesPlanImage [-Name ] [-SubscriptionId ] -LabPla [-DefaultProfile ] [] ``` +### GetViaIdentityLabPlan +``` +Get-AzLabServicesPlanImage -Name -LabPlanInputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzLabServicesPlanImage -InputObject [-DefaultProfile ] + [] +``` + ## DESCRIPTION Gets an image resource. @@ -136,11 +148,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -151,6 +177,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabPlanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLabPlan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. @@ -184,7 +225,7 @@ The image name. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLabPlan Aliases: ImageName Required: True @@ -253,7 +294,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: ResourceId, ListByDisplayName, List, Get, LabPlan Aliases: Required: False @@ -268,13 +309,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ### System.String ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesSchedule.md b/src/LabServices/LabServices/help/Get-AzLabServicesSchedule.md index cd2a854b091b..d8a038d81057 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesSchedule.md @@ -37,6 +37,18 @@ Get-AzLabServicesSchedule [-Name ] [-SubscriptionId ] -Lab ] ``` +### GetViaIdentityLab +``` +Get-AzLabServicesSchedule -Name -LabInputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzLabServicesSchedule -InputObject [-DefaultProfile ] + [] +``` + ## DESCRIPTION Returns the properties of a lab Schedule. @@ -89,11 +101,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -104,6 +130,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -126,7 +167,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLab Aliases: ScheduleName Required: True @@ -183,7 +224,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: LabObject, List, Get, Lab Aliases: Required: False @@ -198,11 +239,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesTemplateVM.md b/src/LabServices/LabServices/help/Get-AzLabServicesTemplateVM.md index bc7c5d82d1b6..34e65f309e00 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesTemplateVM.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesTemplateVM.md @@ -60,10 +60,9 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -122,11 +121,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesUser.md b/src/LabServices/LabServices/help/Get-AzLabServicesUser.md index c569493ecb21..e72e9ff51ee4 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesUser.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesUser.md @@ -36,6 +36,18 @@ Get-AzLabServicesUser [-Name ] [-SubscriptionId ] -Lab [ [] ``` +### GetViaIdentityLab +``` +Get-AzLabServicesUser -Name -LabInputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzLabServicesUser -InputObject [-DefaultProfile ] + [] +``` + ## DESCRIPTION Returns the properties of a lab user. @@ -100,11 +112,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -115,6 +141,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -137,7 +178,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLab Aliases: UserName Required: True @@ -194,7 +235,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: ResourceId, List, Get, Lab Aliases: Required: False @@ -209,11 +250,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesUserVM.md b/src/LabServices/LabServices/help/Get-AzLabServicesUserVM.md index e51067a2c327..dedb2a103661 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesUserVM.md @@ -87,10 +87,9 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -159,10 +158,9 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -178,11 +176,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices/help/Get-AzLabServicesVM.md b/src/LabServices/LabServices/help/Get-AzLabServicesVM.md index 836ce3db75df..c5351e3357d9 100644 --- a/src/LabServices/LabServices/help/Get-AzLabServicesVM.md +++ b/src/LabServices/LabServices/help/Get-AzLabServicesVM.md @@ -30,6 +30,18 @@ Get-AzLabServicesVM [-Name ] [-SubscriptionId ] -Lab [-D [] ``` +### GetViaIdentityLab +``` +Get-AzLabServicesVM -Name -LabInputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzLabServicesVM -InputObject [-DefaultProfile ] + [] +``` + ## DESCRIPTION Returns the properties for a lab virtual machine. @@ -96,11 +108,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -111,6 +137,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: GetViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -133,7 +174,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLab Aliases: VirtualMachineName Required: True @@ -176,7 +217,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: List, Get, Lab Aliases: Required: False @@ -191,11 +232,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices/help/New-AzLabServicesLab.md b/src/LabServices/LabServices/help/New-AzLabServicesLab.md index cb64d9d203d3..f814ce097bca 100644 --- a/src/LabServices/LabServices/help/New-AzLabServicesLab.md +++ b/src/LabServices/LabServices/help/New-AzLabServicesLab.md @@ -12,26 +12,39 @@ Operation to create a lab resource. ## SYNTAX +### CreateExpanded (Default) ``` New-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] -Location - [-AdditionalCapabilityInstallGpuDriver ] [-AdminUserPassword ] + [-AdditionalCapabilityInstallGpuDriver ] [-AdminUserPassword ] [-AdminUserUsername ] [-AutoShutdownProfileDisconnectDelay ] [-AutoShutdownProfileIdleDelay ] [-AutoShutdownProfileNoConnectDelay ] - [-AutoShutdownProfileShutdownOnDisconnect ] - [-AutoShutdownProfileShutdownOnIdle ] - [-AutoShutdownProfileShutdownWhenNotConnected ] - [-ConnectionProfileClientRdpAccess ] [-ConnectionProfileClientSshAccess ] - [-ConnectionProfileWebRdpAccess ] [-ConnectionProfileWebSshAccess ] - [-Description ] [-ImageReferenceId ] [-ImageReferenceOffer ] - [-ImageReferencePublisher ] [-ImageReferenceSku ] [-ImageReferenceVersion ] - [-LabPlanId ] [-NetworkProfileLoadBalancerId ] [-NetworkProfilePublicIPId ] - [-NetworkProfileSubnetId ] [-NonAdminUserPassword ] [-NonAdminUserUsername ] - [-RosterProfileActiveDirectoryGroupId ] [-RosterProfileLmsInstance ] - [-RosterProfileLtiClientId ] [-RosterProfileLtiContextId ] - [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-SkuCapacity ] - [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] - [-Title ] [-VirtualMachineProfileCreateOption ] - [-VirtualMachineProfileUsageQuota ] [-VirtualMachineProfileUseSharedPassword ] + [-AutoShutdownProfileShutdownOnDisconnect ] [-AutoShutdownProfileShutdownOnIdle ] + [-AutoShutdownProfileShutdownWhenNotConnected ] [-ConnectionProfileClientRdpAccess ] + [-ConnectionProfileClientSshAccess ] [-ConnectionProfileWebRdpAccess ] + [-ConnectionProfileWebSshAccess ] [-Description ] [-ImageReferenceId ] + [-ImageReferenceOffer ] [-ImageReferencePublisher ] [-ImageReferenceSku ] + [-ImageReferenceVersion ] [-LabPlanId ] [-NetworkProfileLoadBalancerId ] + [-NetworkProfilePublicIPId ] [-NetworkProfileSubnetId ] [-NonAdminUserPassword ] + [-NonAdminUserUsername ] [-RosterProfileActiveDirectoryGroupId ] + [-RosterProfileLmsInstance ] [-RosterProfileLtiClientId ] + [-RosterProfileLtiContextId ] [-RosterProfileLtiRosterEndpoint ] + [-SecurityProfileOpenAccess ] [-SkuCapacity ] [-SkuFamily ] [-SkuName ] + [-SkuSize ] [-SkuTier ] [-Tag ] [-Title ] + [-VirtualMachineProfileCreateOption ] [-VirtualMachineProfileUsageQuota ] + [-VirtualMachineProfileUseSharedPassword ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -84,8 +97,8 @@ Creates a new Lab. Flag to pre-install dedicated GPU drivers. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -101,7 +114,7 @@ This is required for the TemplateVM createOption. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -116,7 +129,7 @@ The username to use when signing in to lab VMs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -146,7 +159,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -161,7 +174,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -176,7 +189,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -190,8 +203,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -205,8 +218,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -220,8 +233,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -235,8 +248,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -250,8 +263,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -265,8 +278,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -280,8 +293,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -292,7 +305,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 @@ -311,7 +325,7 @@ The description of the lab. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -326,7 +340,7 @@ Image resource ID ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -341,7 +355,7 @@ The image offer if applicable. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -356,7 +370,7 @@ The image publisher ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -371,7 +385,7 @@ The image SKU ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -386,7 +400,7 @@ The image version specified on creation. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -396,6 +410,36 @@ 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 +``` + ### -LabPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. @@ -403,7 +447,7 @@ Setting a labPlanId on an existing lab provides organization.. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -418,7 +462,7 @@ The geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -449,7 +493,7 @@ The external load balancer resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -464,7 +508,7 @@ The external public IP resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -479,7 +523,7 @@ The external subnet resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -495,7 +539,7 @@ This is required for the TemplateVM createOption. ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -510,7 +554,7 @@ The username to use when signing in to lab VMs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -557,7 +601,7 @@ Having this set enables AAD sync mode. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -572,7 +616,7 @@ The base URI identifying the lms instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -587,7 +631,7 @@ The unique id of the azure lab services tool in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -602,7 +646,7 @@ The unique context identifier for the lab in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -617,7 +661,7 @@ The uri of the names and roles service endpoint on the lms for the class attache ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -631,8 +675,8 @@ Accept wildcard characters: False Whether any user or only specified users can register to a lab. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -648,7 +692,7 @@ If scale out/in is not possible for the resource this may be omitted. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -663,7 +707,7 @@ If the service has different generations of hardware, for the same SKU, then tha ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -680,7 +724,7 @@ It is typically a letter+number code ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -696,7 +740,7 @@ When the name field is the combination of tier and some other value, this would ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -710,8 +754,8 @@ Accept wildcard characters: False This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -741,7 +785,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -756,7 +800,7 @@ The title of the lab. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -770,8 +814,8 @@ Accept wildcard characters: False Indicates what lab virtual machines are created from. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -787,7 +831,7 @@ Must be a time span between 0 and 9999 hours. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -801,8 +845,8 @@ Accept wildcard characters: False Enabling this option will use the same password for all user VMs. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -850,7 +894,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices/help/New-AzLabServicesLabPlan.md b/src/LabServices/LabServices/help/New-AzLabServicesLabPlan.md index 73f409071f8c..abc5b0d147ab 100644 --- a/src/LabServices/LabServices/help/New-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices/help/New-AzLabServicesLabPlan.md @@ -8,29 +8,42 @@ schema: 2.0.0 # New-AzLabServicesLabPlan ## SYNOPSIS -Operation to create or update a Lab Plan resource. +Operation to create a Lab Plan resource. ## SYNTAX +### CreateExpanded (Default) ``` New-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] -Location [-AllowedRegion ] [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] [-DefaultAutoShutdownProfileNoConnectDelay ] - [-DefaultAutoShutdownProfileShutdownOnDisconnect ] - [-DefaultAutoShutdownProfileShutdownOnIdle ] - [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] - [-DefaultConnectionProfileClientRdpAccess ] - [-DefaultConnectionProfileClientSshAccess ] - [-DefaultConnectionProfileWebRdpAccess ] - [-DefaultConnectionProfileWebSshAccess ] [-DefaultNetworkProfileSubnetId ] - [-LinkedLmsInstance ] [-SharedGalleryId ] [-SupportInfoEmail ] - [-SupportInfoInstruction ] [-SupportInfoPhone ] [-SupportInfoUrl ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccess ] [-DefaultConnectionProfileClientSshAccess ] + [-DefaultConnectionProfileWebRdpAccess ] [-DefaultConnectionProfileWebSshAccess ] + [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] + [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] + [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Operation to create or update a Lab Plan resource. +Operation to create a Lab Plan resource. ## EXAMPLES @@ -69,7 +82,7 @@ The allowed regions for the lab creator to use when creating labs using this lab ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -99,7 +112,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -114,7 +127,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -129,7 +142,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -143,8 +156,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -158,8 +171,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -173,8 +186,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -188,8 +201,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -203,8 +216,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -218,8 +231,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -233,8 +246,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -249,7 +262,7 @@ The external subnet resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -275,12 +288,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LinkedLmsInstance Base Url of the lms instance this lab plan can link lab rosters against. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -295,7 +338,7 @@ The geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -359,7 +402,7 @@ Shared images from the gallery can be made available to use when creating new la ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -389,7 +432,7 @@ Support contact email address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -404,7 +447,7 @@ Support instructions. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -419,7 +462,7 @@ Support contact phone number. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -434,7 +477,7 @@ Support web address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -449,7 +492,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -497,7 +540,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan ## NOTES diff --git a/src/LabServices/LabServices/help/New-AzLabServicesSchedule.md b/src/LabServices/LabServices/help/New-AzLabServicesSchedule.md index b954cbc0ebeb..b61a2d2b334e 100644 --- a/src/LabServices/LabServices/help/New-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices/help/New-AzLabServicesSchedule.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzLabServicesSchedule ## SYNOPSIS -Operation to create or update a lab schedule. +Operation to create a lab schedule. ## SYNTAX @@ -16,22 +16,45 @@ Operation to create or update a lab schedule. ``` New-AzLabServicesSchedule -Name -LabName -ResourceGroupName [-SubscriptionId ] [-Note ] [-RecurrencePatternExpirationDate ] - [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] - [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] + [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] + [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonString +``` +New-AzLabServicesSchedule -Name -LabName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesSchedule -Name -LabName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ### Lab ``` New-AzLabServicesSchedule -Name [-SubscriptionId ] -Lab [-Note ] - [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] - [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityLabExpanded +``` +New-AzLabServicesSchedule -Name -LabInputObject [-Note ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Operation to create or update a lab schedule. +Operation to create a lab schedule. ## EXAMPLES @@ -76,11 +99,40 @@ 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 +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -91,13 +143,28 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: CreateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -128,7 +195,7 @@ Notes for this schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -144,7 +211,7 @@ This date is inclusive. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -158,8 +225,8 @@ Accept wildcard characters: False The frequency of the recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -176,7 +243,7 @@ When no interval is supplied, an interval of 1 is used. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -191,8 +258,8 @@ The week days the schedule runs. Used for when the Frequency is set to Weekly. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[] -Parameter Sets: (All) +Type: System.String[] +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -208,7 +275,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -224,7 +291,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -240,7 +307,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -255,7 +322,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath, Lab Aliases: Required: False @@ -270,7 +337,7 @@ The IANA timezone id for the schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -316,11 +383,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule ## NOTES diff --git a/src/LabServices/LabServices/help/New-AzLabServicesUser.md b/src/LabServices/LabServices/help/New-AzLabServicesUser.md index c67f0d7381e2..867c36704a3e 100644 --- a/src/LabServices/LabServices/help/New-AzLabServicesUser.md +++ b/src/LabServices/LabServices/help/New-AzLabServicesUser.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzLabServicesUser ## SYNOPSIS -Operation to create or update a lab user. +Operation to create a lab user. ## SYNTAX @@ -19,6 +19,20 @@ New-AzLabServicesUser -Name -LabName -ResourceGroupName ] ``` +### CreateViaJsonString +``` +New-AzLabServicesUser -Name -LabName -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzLabServicesUser -Name -LabName -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ### Lab ``` New-AzLabServicesUser -Name [-SubscriptionId ] -Lab -Email @@ -26,8 +40,15 @@ New-AzLabServicesUser -Name [-SubscriptionId ] -Lab -Emai [-WhatIf] [-Confirm] [] ``` +### CreateViaIdentityLabExpanded +``` +New-AzLabServicesUser -Name -LabInputObject -Email + [-AdditionalUsageQuota ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Operation to create or update a lab user. +Operation to create a lab user. ## EXAMPLES @@ -51,7 +72,7 @@ The amount of usage quota time the user gets in addition to the lab usage quota. ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded Aliases: Required: False @@ -97,7 +118,37 @@ Email address of the user. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, Lab, CreateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +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 @@ -108,10 +159,9 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -122,13 +172,28 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: CreateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -175,7 +240,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -190,7 +255,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath, Lab Aliases: Required: False @@ -236,11 +301,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ## NOTES diff --git a/src/LabServices/LabServices/help/Publish-AzLabServicesLab.md b/src/LabServices/LabServices/help/Publish-AzLabServicesLab.md index dbb0662e18c7..69a2a5fb83c3 100644 --- a/src/LabServices/LabServices/help/Publish-AzLabServicesLab.md +++ b/src/LabServices/LabServices/help/Publish-AzLabServicesLab.md @@ -34,6 +34,12 @@ Publish-AzLabServicesLab [-SubscriptionId ] -Lab [-AdditionalUsage [] ``` +### PublishViaIdentity +``` +Publish-AzLabServicesLab -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. @@ -100,11 +106,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: PublishViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -151,7 +171,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Publish +Parameter Sets: Publish, PublishViaIdentity Aliases: Required: False @@ -196,7 +216,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Publish, Lab Aliases: Required: False @@ -242,11 +262,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ### System.Boolean diff --git a/src/LabServices/LabServices/help/Remove-AzLabServicesLab.md b/src/LabServices/LabServices/help/Remove-AzLabServicesLab.md index ee5045585abb..55ecc40ae621 100644 --- a/src/LabServices/LabServices/help/Remove-AzLabServicesLab.md +++ b/src/LabServices/LabServices/help/Remove-AzLabServicesLab.md @@ -38,6 +38,12 @@ Remove-AzLabServicesLab [-SubscriptionId ] -Lab [-DefaultProfile < [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesLab -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Operation to delete a lab resource. @@ -83,11 +89,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -99,10 +119,9 @@ Accept wildcard characters: False ``` ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -194,7 +213,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, LabPlan, Delete, Lab Aliases: Required: False @@ -240,7 +259,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS diff --git a/src/LabServices/LabServices/help/Remove-AzLabServicesLabPlan.md b/src/LabServices/LabServices/help/Remove-AzLabServicesLabPlan.md index 4d25ce3cb6db..ce8a370a49a4 100644 --- a/src/LabServices/LabServices/help/Remove-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices/help/Remove-AzLabServicesLabPlan.md @@ -26,6 +26,12 @@ Remove-AzLabServicesLabPlan [-SubscriptionId ] -LabPlan [-Defa [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesLabPlan -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan, nor does it delete shared images added to a gallery via the lab plan permission container. @@ -72,11 +78,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -154,7 +174,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete, LabPlan Aliases: Required: False @@ -200,7 +220,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS diff --git a/src/LabServices/LabServices/help/Remove-AzLabServicesSchedule.md b/src/LabServices/LabServices/help/Remove-AzLabServicesSchedule.md index 6ed9aa726a80..ce90a60efe53 100644 --- a/src/LabServices/LabServices/help/Remove-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices/help/Remove-AzLabServicesSchedule.md @@ -25,12 +25,24 @@ Remove-AzLabServicesSchedule -LabName -Name -ResourceGroupName [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentityLab +``` +Remove-AzLabServicesSchedule -Name -LabInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ### Schedule ``` Remove-AzLabServicesSchedule [-SubscriptionId ] -Schedule [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesSchedule -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Operation to delete a schedule resource. @@ -76,6 +88,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -98,7 +140,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityLab Aliases: ScheduleName Required: True @@ -169,10 +211,9 @@ Accept wildcard characters: False ``` ### -Schedule -To construct, see NOTES section for SCHEDULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Schedule +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Schedule Parameter Sets: Schedule Aliases: @@ -188,7 +229,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Delete, Schedule Aliases: Required: False @@ -234,7 +275,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Schedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Schedule ## OUTPUTS diff --git a/src/LabServices/LabServices/help/Remove-AzLabServicesUser.md b/src/LabServices/LabServices/help/Remove-AzLabServicesUser.md index 81b4164b064a..5fbc74385e5e 100644 --- a/src/LabServices/LabServices/help/Remove-AzLabServicesUser.md +++ b/src/LabServices/LabServices/help/Remove-AzLabServicesUser.md @@ -31,12 +31,24 @@ Remove-AzLabServicesUser -Name [-SubscriptionId ] -Lab [- [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentityLab +``` +Remove-AzLabServicesUser -Name -LabInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ### User ``` Remove-AzLabServicesUser [-SubscriptionId ] -User [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentity +``` +Remove-AzLabServicesUser -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Operation to delete a user resource. @@ -82,11 +94,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -97,6 +123,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: DeleteViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -119,7 +160,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Delete, Lab +Parameter Sets: Delete, Lab, DeleteViaIdentityLab Aliases: UserName Required: True @@ -194,7 +235,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Delete, Lab, User Aliases: Required: False @@ -205,10 +246,9 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -255,9 +295,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS diff --git a/src/LabServices/LabServices/help/Reset-AzLabServicesVMPassword.md b/src/LabServices/LabServices/help/Reset-AzLabServicesVMPassword.md index bb3cc3f709a2..3831be61145c 100644 --- a/src/LabServices/LabServices/help/Reset-AzLabServicesVMPassword.md +++ b/src/LabServices/LabServices/help/Reset-AzLabServicesVMPassword.md @@ -14,25 +14,53 @@ Resets a lab virtual machine password. ### ResourceId (Default) ``` -Reset-AzLabServicesVMPassword [-SubscriptionId ] -Password -Username - -ResourceId [-DefaultProfile ] [-PassThru] [-AsJob] [-NoWait] +Reset-AzLabServicesVMPassword [-SubscriptionId ] -Password [-Username ] + -ResourceId [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### Reset +### ResetViaJsonString ``` -Reset-AzLabServicesVMPassword -LabName -ResourceGroupName -VirtualMachineName - [-SubscriptionId ] -Password -Username [-DefaultProfile ] - [-PassThru] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +Reset-AzLabServicesVMPassword -LabName -ResourceGroupName [-SubscriptionId ] + -VirtualMachineName -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### ResetViaJsonFilePath +``` +Reset-AzLabServicesVMPassword -LabName -ResourceGroupName [-SubscriptionId ] + -VirtualMachineName -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### ResetExpanded +``` +Reset-AzLabServicesVMPassword -LabName -ResourceGroupName [-SubscriptionId ] + -VirtualMachineName -Password -Username [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### VM ``` -Reset-AzLabServicesVMPassword [-SubscriptionId ] -Password -Username - -VM [-DefaultProfile ] [-PassThru] [-AsJob] [-NoWait] +Reset-AzLabServicesVMPassword [-SubscriptionId ] -Password [-Username ] + -VM [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### ResetViaIdentityLabExpanded +``` +Reset-AzLabServicesVMPassword -VirtualMachineName -LabInputObject + -Password -Username [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### ResetViaIdentityExpanded +``` +Reset-AzLabServicesVMPassword -InputObject -Password -Username + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ## DESCRIPTION Resets a lab virtual machine password. @@ -63,7 +91,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 @@ -77,13 +106,73 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: ResetViaIdentityExpanded +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 Reset operation + +```yaml +Type: System.String +Parameter Sets: ResetViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Reset operation + +```yaml +Type: System.String +Parameter Sets: ResetViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: ResetViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Reset +Parameter Sets: ResetViaJsonString, ResetViaJsonFilePath, ResetExpanded Aliases: Required: True @@ -128,7 +217,7 @@ The password ```yaml Type: System.Security.SecureString -Parameter Sets: (All) +Parameter Sets: ResourceId, ResetExpanded, VM, ResetViaIdentityLabExpanded, ResetViaIdentityExpanded Aliases: Required: True @@ -144,7 +233,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Reset +Parameter Sets: ResetViaJsonString, ResetViaJsonFilePath, ResetExpanded Aliases: Required: True @@ -173,7 +262,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, ResetViaJsonString, ResetViaJsonFilePath, ResetExpanded, VM Aliases: Required: False @@ -188,7 +277,19 @@ The user whose password is being reset ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, VM +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +```yaml +Type: System.String +Parameter Sets: ResetExpanded, ResetViaIdentityLabExpanded, ResetViaIdentityExpanded Aliases: Required: True @@ -204,7 +305,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Reset +Parameter Sets: ResetViaJsonString, ResetViaJsonFilePath, ResetExpanded, ResetViaIdentityLabExpanded Aliases: Required: True @@ -215,10 +316,9 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -265,11 +365,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices/help/Save-AzLabServicesLabPlanImage.md b/src/LabServices/LabServices/help/Save-AzLabServicesLabPlanImage.md index c8bc70190d0c..17f5ec36a2a4 100644 --- a/src/LabServices/LabServices/help/Save-AzLabServicesLabPlanImage.md +++ b/src/LabServices/LabServices/help/Save-AzLabServicesLabPlanImage.md @@ -12,12 +12,34 @@ Saves an image from a lab VM to the attached shared image gallery. ## SYNTAX +### SaveExpanded (Default) ``` Save-AzLabServicesLabPlanImage -LabPlanName -ResourceGroupName [-SubscriptionId ] [-LabVirtualMachineId ] [-Name ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### SaveViaJsonString +``` +Save-AzLabServicesLabPlanImage -LabPlanName -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### SaveViaJsonFilePath +``` +Save-AzLabServicesLabPlanImage -LabPlanName -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### SaveViaIdentityExpanded +``` +Save-AzLabServicesLabPlanImage -InputObject [-LabVirtualMachineId ] + [-Name ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Saves an image from a lab VM to the attached shared image gallery. @@ -63,13 +85,58 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: SaveViaIdentityExpanded +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 Save operation + +```yaml +Type: System.String +Parameter Sets: SaveViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Save operation + +```yaml +Type: System.String +Parameter Sets: SaveViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LabPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaJsonString, SaveViaJsonFilePath Aliases: Required: True @@ -84,7 +151,7 @@ The ID of the lab virtual machine you want to save an image from. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaIdentityExpanded Aliases: Required: False @@ -99,7 +166,7 @@ The name for the image we create. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaIdentityExpanded Aliases: Required: False @@ -145,7 +212,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaJsonString, SaveViaJsonFilePath Aliases: Required: True @@ -160,7 +227,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: SaveExpanded, SaveViaJsonString, SaveViaJsonFilePath Aliases: Required: False @@ -206,6 +273,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS ### System.Boolean diff --git a/src/LabServices/LabServices/help/Send-AzLabServicesUserInvite.md b/src/LabServices/LabServices/help/Send-AzLabServicesUserInvite.md index 4a0ad06b1067..e70213063783 100644 --- a/src/LabServices/LabServices/help/Send-AzLabServicesUserInvite.md +++ b/src/LabServices/LabServices/help/Send-AzLabServicesUserInvite.md @@ -19,6 +19,20 @@ Send-AzLabServicesUserInvite [-SubscriptionId ] [-Text ] -Resour [] ``` +### InviteViaJsonString +``` +Send-AzLabServicesUserInvite -LabName -ResourceGroupName [-SubscriptionId ] + -UserName -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### InviteViaJsonFilePath +``` +Send-AzLabServicesUserInvite -LabName -ResourceGroupName [-SubscriptionId ] + -UserName -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ### InviteExpanded ``` Send-AzLabServicesUserInvite -LabName -ResourceGroupName [-SubscriptionId ] @@ -33,6 +47,19 @@ Send-AzLabServicesUserInvite [-SubscriptionId ] [-Text ] -User < [] ``` +### InviteViaIdentityLabExpanded +``` +Send-AzLabServicesUserInvite -UserName -LabInputObject [-Text ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### InviteViaIdentityExpanded +``` +Send-AzLabServicesUserInvite -InputObject [-Text ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Operation to invite a user to a lab. @@ -78,13 +105,73 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: InviteViaIdentityExpanded +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 Invite operation + +```yaml +Type: System.String +Parameter Sets: InviteViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Invite operation + +```yaml +Type: System.String +Parameter Sets: InviteViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: InviteViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: InviteExpanded +Parameter Sets: InviteViaJsonString, InviteViaJsonFilePath, InviteExpanded Aliases: Required: True @@ -114,7 +201,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: InviteExpanded +Parameter Sets: InviteViaJsonString, InviteViaJsonFilePath, InviteExpanded, InviteViaIdentityLabExpanded, InviteViaIdentityExpanded Aliases: Required: False @@ -130,7 +217,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: InviteExpanded +Parameter Sets: InviteViaJsonString, InviteViaJsonFilePath, InviteExpanded Aliases: Required: True @@ -159,7 +246,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, InviteViaJsonString, InviteViaJsonFilePath, InviteExpanded, Users Aliases: Required: False @@ -174,7 +261,7 @@ Custom text for the invite email. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, InviteExpanded, Users, InviteViaIdentityLabExpanded, InviteViaIdentityExpanded Aliases: Required: False @@ -185,10 +272,9 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: Users Aliases: @@ -205,7 +291,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: InviteExpanded +Parameter Sets: InviteViaJsonString, InviteViaJsonFilePath, InviteExpanded, InviteViaIdentityLabExpanded Aliases: Required: True @@ -251,11 +337,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices/help/Start-AzLabServicesUserVM.md b/src/LabServices/LabServices/help/Start-AzLabServicesUserVM.md index 591d2c7a0ce0..2155d0915125 100644 --- a/src/LabServices/LabServices/help/Start-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices/help/Start-AzLabServicesUserVM.md @@ -145,10 +145,9 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -195,11 +194,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices/help/Start-AzLabServicesVM.md b/src/LabServices/LabServices/help/Start-AzLabServicesVM.md index ad41eb9eb528..7629f04a4064 100644 --- a/src/LabServices/LabServices/help/Start-AzLabServicesVM.md +++ b/src/LabServices/LabServices/help/Start-AzLabServicesVM.md @@ -25,12 +25,24 @@ Start-AzLabServicesVM -LabName -Name -ResourceGroupName ] ``` +### StartViaIdentityLab +``` +Start-AzLabServicesVM -Name -LabInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ### VM ``` Start-AzLabServicesVM [-SubscriptionId ] -VM [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### StartViaIdentity +``` +Start-AzLabServicesVM -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Action to start a lab virtual machine. @@ -76,6 +88,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StartViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -98,7 +140,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Start +Parameter Sets: Start, StartViaIdentityLab Aliases: VirtualMachineName Required: True @@ -128,7 +170,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Start +Parameter Sets: Start, StartViaIdentityLab, StartViaIdentity Aliases: Required: False @@ -173,7 +215,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Start, VM Aliases: Required: False @@ -184,10 +226,9 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -234,11 +275,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices/help/Start-AzLabServicesVMRedeployment.md b/src/LabServices/LabServices/help/Start-AzLabServicesVMRedeployment.md index 7477ab3bb085..72030e397274 100644 --- a/src/LabServices/LabServices/help/Start-AzLabServicesVMRedeployment.md +++ b/src/LabServices/LabServices/help/Start-AzLabServicesVMRedeployment.md @@ -26,6 +26,19 @@ Start-AzLabServicesVMRedeployment -LabName -ResourceGroupName [-WhatIf] [-Confirm] [] ``` +### RedeployViaIdentityLab +``` +Start-AzLabServicesVMRedeployment -VirtualMachineName -LabInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### RedeployViaIdentity +``` +Start-AzLabServicesVMRedeployment -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. @@ -72,6 +85,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: RedeployViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: RedeployViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -153,7 +196,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Redeploy Aliases: Required: False @@ -169,7 +212,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Redeploy +Parameter Sets: Redeploy, RedeployViaIdentityLab Aliases: Required: True @@ -215,9 +258,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices/help/Stop-AzLabServicesUserVM.md b/src/LabServices/LabServices/help/Stop-AzLabServicesUserVM.md index 170158b64dcc..8d90f048e6c2 100644 --- a/src/LabServices/LabServices/help/Stop-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices/help/Stop-AzLabServicesUserVM.md @@ -145,10 +145,9 @@ Accept wildcard characters: False ``` ### -User -To construct, see NOTES section for USER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User Parameter Sets: User Aliases: @@ -195,11 +194,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.User +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.User ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ## NOTES diff --git a/src/LabServices/LabServices/help/Stop-AzLabServicesVM.md b/src/LabServices/LabServices/help/Stop-AzLabServicesVM.md index e6a824bed1f7..cc481186dc99 100644 --- a/src/LabServices/LabServices/help/Stop-AzLabServicesVM.md +++ b/src/LabServices/LabServices/help/Stop-AzLabServicesVM.md @@ -25,12 +25,24 @@ Stop-AzLabServicesVM -LabName -Name -ResourceGroupName ] ``` +### StopViaIdentityLab +``` +Stop-AzLabServicesVM -Name -LabInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + ### VM ``` Stop-AzLabServicesVM [-SubscriptionId ] -VM [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### StopViaIdentity +``` +Stop-AzLabServicesVM -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Action to stop a lab virtual machine. @@ -76,6 +88,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StopViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: StopViaIdentityLab +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. @@ -98,7 +140,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: Stop +Parameter Sets: Stop, StopViaIdentityLab Aliases: VirtualMachineName Required: True @@ -128,7 +170,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Stop +Parameter Sets: Stop, StopViaIdentityLab, StopViaIdentity Aliases: Required: False @@ -173,7 +215,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, Stop, VM Aliases: Required: False @@ -184,10 +226,9 @@ Accept wildcard characters: False ``` ### -VM -To construct, see NOTES section for VM properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine Parameter Sets: VM Aliases: @@ -234,11 +275,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.VirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.VirtualMachine ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IVirtualMachine +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine ### System.Boolean diff --git a/src/LabServices/LabServices/help/Sync-AzLabServicesLabUser.md b/src/LabServices/LabServices/help/Sync-AzLabServicesLabUser.md index 49c3f67e8ec7..38b8c64e4da0 100644 --- a/src/LabServices/LabServices/help/Sync-AzLabServicesLabUser.md +++ b/src/LabServices/LabServices/help/Sync-AzLabServicesLabUser.md @@ -25,6 +25,12 @@ Sync-AzLabServicesLabUser [-SubscriptionId ] -Lab [-DefaultProfile [-WhatIf] [-Confirm] [] ``` +### SyncViaIdentity +``` +Sync-AzLabServicesLabUser -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Action used to manually kick off an AAD group sync job. @@ -70,11 +76,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: SyncViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -121,7 +141,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Sync +Parameter Sets: Sync, SyncViaIdentity Aliases: Required: False @@ -152,7 +172,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Sync, Lab Aliases: Required: False @@ -198,11 +218,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IUser +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser ### System.Boolean diff --git a/src/LabServices/LabServices/help/Update-AzLabServicesLab.md b/src/LabServices/LabServices/help/Update-AzLabServicesLab.md index c78f13600f77..64b3f34b9896 100644 --- a/src/LabServices/LabServices/help/Update-AzLabServicesLab.md +++ b/src/LabServices/LabServices/help/Update-AzLabServicesLab.md @@ -12,27 +12,48 @@ Operation to update a lab resource. ## SYNTAX +### UpdateExpanded (Default) ``` Update-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] - [-AdditionalCapabilityInstallGpuDriver ] [-AdminUserPassword ] - [-AdminUserUsername ] [-AutoShutdownProfileDisconnectDelay ] + [-AutoShutdownProfileDisconnectDelay ] [-AutoShutdownProfileIdleDelay ] + [-AutoShutdownProfileNoConnectDelay ] [-AutoShutdownProfileShutdownOnDisconnect ] + [-AutoShutdownProfileShutdownOnIdle ] [-AutoShutdownProfileShutdownWhenNotConnected ] + [-ConnectionProfileClientRdpAccess ] [-ConnectionProfileClientSshAccess ] + [-ConnectionProfileWebRdpAccess ] [-ConnectionProfileWebSshAccess ] [-Description ] + [-LabPlanId ] [-RosterProfileActiveDirectoryGroupId ] [-RosterProfileLmsInstance ] + [-RosterProfileLtiClientId ] [-RosterProfileLtiContextId ] + [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-Tag ] + [-Title ] [-VirtualMachineProfileUsageQuota ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesLab -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesLab -InputObject [-AutoShutdownProfileDisconnectDelay ] [-AutoShutdownProfileIdleDelay ] [-AutoShutdownProfileNoConnectDelay ] - [-AutoShutdownProfileShutdownOnDisconnect ] - [-AutoShutdownProfileShutdownOnIdle ] - [-AutoShutdownProfileShutdownWhenNotConnected ] - [-ConnectionProfileClientRdpAccess ] [-ConnectionProfileClientSshAccess ] - [-ConnectionProfileWebRdpAccess ] [-ConnectionProfileWebSshAccess ] - [-Description ] [-ImageReferenceId ] [-ImageReferenceOffer ] - [-ImageReferencePublisher ] [-ImageReferenceSku ] [-ImageReferenceVersion ] - [-LabPlanId ] [-NonAdminUserPassword ] [-NonAdminUserUsername ] + [-AutoShutdownProfileShutdownOnDisconnect ] [-AutoShutdownProfileShutdownOnIdle ] + [-AutoShutdownProfileShutdownWhenNotConnected ] [-ConnectionProfileClientRdpAccess ] + [-ConnectionProfileClientSshAccess ] [-ConnectionProfileWebRdpAccess ] + [-ConnectionProfileWebSshAccess ] [-Description ] [-LabPlanId ] [-RosterProfileActiveDirectoryGroupId ] [-RosterProfileLmsInstance ] [-RosterProfileLtiClientId ] [-RosterProfileLtiContextId ] - [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-SkuCapacity ] - [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] - [-Title ] [-VirtualMachineProfileCreateOption ] - [-VirtualMachineProfileUsageQuota ] [-VirtualMachineProfileUseSharedPassword ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-RosterProfileLtiRosterEndpoint ] [-SecurityProfileOpenAccess ] [-Tag ] + [-Title ] [-VirtualMachineProfileUsageQuota ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -55,52 +76,6 @@ This example updates the lab and enables the Shutdown on Disconnect option setti ## PARAMETERS -### -AdditionalCapabilityInstallGpuDriver -Flag to pre-install dedicated GPU drivers. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -AdminUserPassword -The password for the user. -This is required for the TemplateVM createOption. - -```yaml -Type: System.Security.SecureString -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -AdminUserUsername -The username to use when signing in to lab VMs. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -AsJob Run the command as a job @@ -121,7 +96,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -136,7 +111,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -151,7 +126,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -165,8 +140,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -180,8 +155,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -195,8 +170,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -210,8 +185,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -225,8 +200,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -240,8 +215,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -255,8 +230,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -267,7 +242,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 @@ -286,7 +262,7 @@ The description of the lab. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -296,75 +272,45 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ImageReferenceId -Image resource ID +### -InputObject +Identity Parameter ```yaml -Type: System.String -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded Aliases: -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ImageReferenceOffer -The image offer if applicable. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ImageReferencePublisher -The image publisher - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False +Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -ImageReferenceSku -The image SKU +### -JsonFilePath +Path of Json file supplied to the Update operation ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateViaJsonFilePath Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ImageReferenceVersion -The image version specified on creation. +### -JsonString +Json string supplied to the Update operation ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateViaJsonString Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -378,7 +324,7 @@ Setting a labPlanId on an existing lab provides organization.. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -394,7 +340,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: LabName Required: True @@ -404,37 +350,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NonAdminUserPassword -The password for the user. -This is required for the TemplateVM createOption. - -```yaml -Type: System.Security.SecureString -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NonAdminUserUsername -The username to use when signing in to lab VMs. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -NoWait Run the command asynchronously @@ -456,7 +371,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -472,7 +387,7 @@ Having this set enables AAD sync mode. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -487,7 +402,7 @@ The base URI identifying the lms instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -502,7 +417,7 @@ The unique id of the azure lab services tool in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -517,7 +432,7 @@ The unique context identifier for the lab in the lms. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -532,7 +447,7 @@ The uri of the names and roles service endpoint on the lms for the class attache ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -545,88 +460,9 @@ Accept wildcard characters: False ### -SecurityProfileOpenAccess Whether any user or only specified users can register to a lab. -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuCapacity -If the SKU supports scale out/in then the capacity integer should be included. -If scale out/in is not possible for the resource this may be omitted. - -```yaml -Type: System.Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuFamily -If the service has different generations of hardware, for the same SKU, then that can be captured here. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuName -The name of the SKU. -Ex - P3. -It is typically a letter+number code - ```yaml Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuSize -The SKU size. -When the name field is the combination of tier and some other value, this would be the standalone code. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuTier -This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.SkuTier -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -641,7 +477,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: False @@ -656,7 +492,7 @@ Resource tags. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -671,22 +507,7 @@ The title of the lab. ```yaml Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -VirtualMachineProfileCreateOption -Indicates what lab virtual machines are created from. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreateOption -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -702,22 +523,7 @@ Must be a time span between 0 and 9999 hours. ```yaml Type: System.TimeSpan -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -VirtualMachineProfileUseSharedPassword -Enabling this option will use the same password for all user VMs. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -763,9 +569,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices/help/Update-AzLabServicesLabPlan.md b/src/LabServices/LabServices/help/Update-AzLabServicesLabPlan.md index 3b89b5138d34..549cfc978066 100644 --- a/src/LabServices/LabServices/help/Update-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices/help/Update-AzLabServicesLabPlan.md @@ -17,17 +17,29 @@ Operation to update a Lab Plan resource. Update-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] [-AllowedRegion ] [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] [-DefaultAutoShutdownProfileNoConnectDelay ] - [-DefaultAutoShutdownProfileShutdownOnDisconnect ] - [-DefaultAutoShutdownProfileShutdownOnIdle ] - [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] - [-DefaultConnectionProfileClientRdpAccess ] - [-DefaultConnectionProfileClientSshAccess ] - [-DefaultConnectionProfileWebRdpAccess ] - [-DefaultConnectionProfileWebSshAccess ] [-DefaultNetworkProfileSubnetId ] - [-LinkedLmsInstance ] [-SharedGalleryId ] [-SupportInfoEmail ] - [-SupportInfoInstruction ] [-SupportInfoPhone ] [-SupportInfoUrl ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccess ] [-DefaultConnectionProfileClientSshAccess ] + [-DefaultConnectionProfileWebRdpAccess ] [-DefaultConnectionProfileWebSshAccess ] + [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] + [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] + [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonString +``` +Update-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesLabPlan -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### LabPlan @@ -35,14 +47,30 @@ Update-AzLabServicesLabPlan -Name -ResourceGroupName [-Subscri Update-AzLabServicesLabPlan [-SubscriptionId ] -LabPlan [-AllowedRegion ] [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] [-DefaultAutoShutdownProfileNoConnectDelay ] - [-DefaultAutoShutdownProfileShutdownOnDisconnect ] - [-DefaultAutoShutdownProfileShutdownOnIdle ] - [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] [-DefaultNetworkProfileSubnetId ] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] [-SupportInfoUrl ] [-Tag ] - [-DefaultConnectionProfileClientRdpAccessEnabled ] - [-DefaultConnectionProfileClientSshAccessEnabled ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultConnectionProfileClientRdpAccessEnabled ] + [-DefaultConnectionProfileClientSshAccessEnabled ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesLabPlan -InputObject [-AllowedRegion ] + [-DefaultAutoShutdownProfileDisconnectDelay ] [-DefaultAutoShutdownProfileIdleDelay ] + [-DefaultAutoShutdownProfileNoConnectDelay ] + [-DefaultAutoShutdownProfileShutdownOnDisconnect ] + [-DefaultAutoShutdownProfileShutdownOnIdle ] + [-DefaultAutoShutdownProfileShutdownWhenNotConnected ] + [-DefaultConnectionProfileClientRdpAccess ] [-DefaultConnectionProfileClientSshAccess ] + [-DefaultConnectionProfileWebRdpAccess ] [-DefaultConnectionProfileWebSshAccess ] + [-DefaultNetworkProfileSubnetId ] [-LinkedLmsInstance ] [-SharedGalleryId ] + [-SupportInfoEmail ] [-SupportInfoInstruction ] [-SupportInfoPhone ] + [-SupportInfoUrl ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -70,7 +98,7 @@ The allowed regions for the lab creator to use when creating labs using this lab ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -100,7 +128,7 @@ The amount of time a VM will stay running after a user disconnects if this behav ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -115,7 +143,7 @@ The amount of time a VM will idle before it is shutdown if this behavior is enab ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -130,7 +158,7 @@ The amount of time a VM will stay running before it is shutdown if no connection ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -144,8 +172,8 @@ Accept wildcard characters: False Whether shutdown on disconnect is enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -159,8 +187,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it has idled for a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -174,8 +202,8 @@ Accept wildcard characters: False Whether a VM will get shutdown when it hasn't been connected to after a period of time. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -189,8 +217,8 @@ Accept wildcard characters: False The enabled access level for Client Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -203,7 +231,7 @@ Accept wildcard characters: False ### -DefaultConnectionProfileClientRdpAccessEnabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType +Type: System.String Parameter Sets: LabPlan Aliases: @@ -218,8 +246,8 @@ Accept wildcard characters: False The enabled access level for Client Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -232,7 +260,7 @@ Accept wildcard characters: False ### -DefaultConnectionProfileClientSshAccessEnabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType +Type: System.String Parameter Sets: LabPlan Aliases: @@ -247,8 +275,8 @@ Accept wildcard characters: False The enabled access level for Web Access over RDP. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -262,8 +290,8 @@ Accept wildcard characters: False The enabled access level for Web Access over SSH. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ConnectionType -Parameter Sets: UpdateExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -278,7 +306,7 @@ The external subnet resource id ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -304,11 +332,55 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -324,7 +396,7 @@ Base Url of the lms instance this lab plan can link lab rosters against. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -340,7 +412,7 @@ Used in resource URIs and in UI. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: LabPlanName Required: True @@ -371,7 +443,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -388,7 +460,7 @@ Shared images from the gallery can be made available to use when creating new la ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -403,7 +475,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath, LabPlan Aliases: Required: False @@ -418,7 +490,7 @@ Support contact email address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -433,7 +505,7 @@ Support instructions. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -448,7 +520,7 @@ Support contact phone number. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -463,7 +535,7 @@ Support web address. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -478,7 +550,7 @@ Resource tags. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, LabPlan, UpdateViaIdentityExpanded Aliases: Required: False @@ -524,11 +596,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan ## NOTES diff --git a/src/LabServices/LabServices/help/Update-AzLabServicesPlanImage.md b/src/LabServices/LabServices/help/Update-AzLabServicesPlanImage.md index 1216f19141ce..cd57ccdfc9d6 100644 --- a/src/LabServices/LabServices/help/Update-AzLabServicesPlanImage.md +++ b/src/LabServices/LabServices/help/Update-AzLabServicesPlanImage.md @@ -8,33 +8,60 @@ schema: 2.0.0 # Update-AzLabServicesPlanImage ## SYNOPSIS -Updates an image resource. +Update an image resource. ## SYNTAX ### ResourceId (Default) ``` -Update-AzLabServicesPlanImage [-SubscriptionId ] [-EnabledState ] -ResourceId +Update-AzLabServicesPlanImage [-SubscriptionId ] -EnabledState -ResourceId [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonString +``` +Update-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ### UpdateExpanded ``` Update-AzLabServicesPlanImage -LabPlanName -Name -ResourceGroupName - [-SubscriptionId ] [-EnabledState ] [-DefaultProfile ] + [-SubscriptionId ] [-EnabledState ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### LabPlan ``` Update-AzLabServicesPlanImage -Name [-SubscriptionId ] -LabPlan - [-EnabledState ] [-DefaultProfile ] [-WhatIf] + -EnabledState [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaIdentityLabPlanExpanded +``` +Update-AzLabServicesPlanImage -Name -LabPlanInputObject + [-EnabledState ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesPlanImage -InputObject [-EnabledState ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Updates an image resource. +Update an image resource. ## EXAMPLES @@ -87,8 +114,20 @@ Accept wildcard characters: False Is the image enabled ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState -Parameter Sets: (All) +Type: System.String +Parameter Sets: ResourceId, LabPlan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityLabPlanExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -98,11 +137,55 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 +``` + ### -LabPlan -To construct, see NOTES section for LABPLAN properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan Parameter Sets: LabPlan Aliases: @@ -113,13 +196,28 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LabPlanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityLabPlanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded Aliases: Required: True @@ -134,7 +232,7 @@ The image name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, LabPlan +Parameter Sets: UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded, LabPlan, UpdateViaIdentityLabPlanExpanded Aliases: ImageName Required: True @@ -164,7 +262,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded Aliases: Required: True @@ -193,7 +291,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded, LabPlan Aliases: Required: False @@ -239,11 +337,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.LabPlan +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.LabPlan ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImage +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage ## NOTES diff --git a/src/LabServices/LabServices/help/Update-AzLabServicesQuota.md b/src/LabServices/LabServices/help/Update-AzLabServicesQuota.md index a3b73e569dce..adb60f93b641 100644 --- a/src/LabServices/LabServices/help/Update-AzLabServicesQuota.md +++ b/src/LabServices/LabServices/help/Update-AzLabServicesQuota.md @@ -77,10 +77,9 @@ Accept wildcard characters: False ``` ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -201,11 +200,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ILab +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab ## NOTES diff --git a/src/LabServices/LabServices/help/Update-AzLabServicesSchedule.md b/src/LabServices/LabServices/help/Update-AzLabServicesSchedule.md index 6edb5a2b892d..db91a4300e94 100644 --- a/src/LabServices/LabServices/help/Update-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices/help/Update-AzLabServicesSchedule.md @@ -15,26 +15,58 @@ Operation to update a lab schedule. ### ResourceId (Default) ``` Update-AzLabServicesSchedule [-SubscriptionId ] [-Note ] - [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] - [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] -ResourceId [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonString +``` +Update-AzLabServicesSchedule -LabName -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzLabServicesSchedule -LabName -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ### UpdateExpanded ``` Update-AzLabServicesSchedule -LabName -Name -ResourceGroupName [-SubscriptionId ] [-Note ] [-RecurrencePatternExpirationDate ] - [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] - [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] + [-RecurrencePatternFrequency ] [-RecurrencePatternInterval ] + [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### Lab ``` Update-AzLabServicesSchedule -Name [-SubscriptionId ] -Lab [-Note ] - [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] - [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityLabExpanded +``` +Update-AzLabServicesSchedule -Name -LabInputObject [-Note ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] + [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzLabServicesSchedule -InputObject [-Note ] + [-RecurrencePatternExpirationDate ] [-RecurrencePatternFrequency ] + [-RecurrencePatternInterval ] [-RecurrencePatternWeekDay ] [-StartAt ] [-StopAt ] [-TimeZoneId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -75,11 +107,55 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +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 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 +``` + ### -Lab -To construct, see NOTES section for LAB properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Lab +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Lab Parameter Sets: Lab Aliases: @@ -90,13 +166,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -LabInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity +Parameter Sets: UpdateViaIdentityLabExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -LabName The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded Aliases: Required: True @@ -112,7 +203,7 @@ Used in resource URIs. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, Lab +Parameter Sets: UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded Aliases: ScheduleName Required: True @@ -127,7 +218,7 @@ Notes for this schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -143,7 +234,7 @@ This date is inclusive. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -157,8 +248,8 @@ Accept wildcard characters: False The frequency of the recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.RecurrenceFrequency -Parameter Sets: (All) +Type: System.String +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -175,7 +266,7 @@ When no interval is supplied, an interval of 1 is used. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -190,8 +281,8 @@ The week days the schedule runs. Used for when the Frequency is set to Weekly. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.WeekDay[] -Parameter Sets: (All) +Type: System.String[] +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -207,7 +298,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded Aliases: Required: True @@ -237,7 +328,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -253,7 +344,7 @@ Timestamp offsets will be ignored and timeZoneId is used instead. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -268,7 +359,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateViaJsonString, UpdateViaJsonFilePath, UpdateExpanded, Lab Aliases: Required: False @@ -283,7 +374,7 @@ The IANA timezone id for the schedule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: ResourceId, UpdateExpanded, Lab, UpdateViaIdentityLabExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -329,9 +420,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabServicesIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule ## NOTES diff --git a/src/LabServices/LabServices/help/Update-AzLabServicesUser.md b/src/LabServices/LabServices/help/Update-AzLabServicesUser.md index 62195b337d3d..6c86f715ab55 100644 --- a/src/LabServices/LabServices/help/Update-AzLabServicesUser.md +++ b/src/LabServices/LabServices/help/Update-AzLabServicesUser.md @@ -19,6 +19,20 @@ Update-AzLabServicesUser [-SubscriptionId ] [-AdditionalUsageQuota