From f9bd9d0998e6f8ef4fbff6526e790f494fa14a20 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 21 Aug 2025 09:48:01 +0800 Subject: [PATCH 1/8] Az.CloudService update generation tool version: autorest.powershell v3->v4 --- .../Properties/AssemblyInfo.cs | 27 ++ .../CloudService.Autorest/README.md | 23 +- .../cloudServices-updateDomains.json | 52 +++ .../custom/New-AzCloudService.ps1 | 10 +- ...New-AzCloudServiceDiagnosticsExtension.ps1 | 2 +- .../New-AzCloudServiceExtensionObject.ps1 | 67 ---- ...ServiceLoadBalancerConfigurationObject.ps1 | 43 --- ...dBalancerFrontendIPConfigurationObject.ps1 | 40 ++- ...oudServiceRemoteDesktopExtensionObject.ps1 | 2 +- ...loudServiceRoleProfilePropertiesObject.ps1 | 51 --- ...w-AzCloudServiceVaultSecretGroupObject.ps1 | 24 +- .../custom/Serialization/CloudService.cs | 34 -- .../custom/Serialization/CloudServiceTags.cs | 15 - .../CloudServiceVaultCertificate.cs | 15 - .../ResourceInstanceViewStatus.cs | 15 - .../custom/Serialization/RoleInstanceTags.cs | 15 - .../custom/Serialization/StatusCodeCount.cs | 15 - .../custom/Switch-AzCloudService.ps1 | 38 +-- .../New-AzCloudServiceExtensionObject.ps1 | 112 +++++++ ...ServiceLoadBalancerConfigurationObject.ps1 | 60 ++++ ...loudServiceRoleProfilePropertiesObject.ps1 | 66 ++++ .../docs/Az.CloudService.md | 37 ++- .../docs/Get-AzCloudService.md | 3 +- ...AzCloudServiceCloudServicesUpdateDomain.md | 194 +++++++++++ .../docs/Get-AzCloudServiceInstanceView.md | 2 +- .../Get-AzCloudServiceNetworkInterface.md | 51 ++- .../docs/Get-AzCloudServiceOSFamily.md | 26 +- .../docs/Get-AzCloudServiceOSVersion.md | 26 +- .../docs/Get-AzCloudServicePublicIPAddress.md | 100 +++++- .../docs/Get-AzCloudServiceRoleInstance.md | 36 ++- ...oudServiceRoleInstanceRemoteDesktopFile.md | 31 +- .../Get-AzCloudServiceRoleInstanceView.md | 32 +- .../docs/Invoke-AzCloudServiceRebuild.md | 9 +- ...nvoke-AzCloudServiceRebuildCloudService.md | 240 ++++++++++++++ ...dServiceRebuildCloudServiceRoleInstance.md | 188 +++++++++++ .../docs/Invoke-AzCloudServiceReimage.md | 9 +- ...nvoke-AzCloudServiceRoleInstanceRebuild.md | 1 - ...nvoke-AzCloudServiceRoleInstanceReimage.md | 1 - .../docs/New-AzCloudService.md | 96 ++++-- .../New-AzCloudServiceDiagnosticsExtension.md | 2 +- .../docs/New-AzCloudServiceExtensionObject.md | 84 ++++- ...dServiceLoadBalancerConfigurationObject.md | 37 ++- ...adBalancerFrontendIPConfigurationObject.md | 21 +- ...loudServiceRemoteDesktopExtensionObject.md | 2 +- ...CloudServiceRoleProfilePropertiesObject.md | 14 +- ...ew-AzCloudServiceVaultSecretGroupObject.md | 8 +- .../docs/Remove-AzCloudService.md | 1 - .../docs/Remove-AzCloudServiceRoleInstance.md | 59 +++- .../docs/Restart-AzCloudService.md | 61 +++- .../Restart-AzCloudServiceRoleInstance.md | 24 +- .../docs/Set-AzCloudServiceUpdateDomain.md | 49 ++- .../docs/Start-AzCloudService.md | 1 - .../docs/Stop-AzCloudService.md | 1 - .../docs/Switch-AzCloudService.md | 4 +- .../docs/Update-AzCloudService.md | 12 +- ...AzCloudServiceCloudServicesUpdateDomain.md | 299 +++++++++++++++++ .../docs/Update-AzCloudServiceRoleInstance.md | 185 +++++++++++ ...AzCloudServiceCloudServicesUpdateDomain.md | 22 ++ ...nvoke-AzCloudServiceRebuildCloudService.md | 22 ++ ...dServiceRebuildCloudServiceRoleInstance.md | 22 ++ ...AzCloudServiceCloudServicesUpdateDomain.md | 22 ++ .../Update-AzCloudServiceRoleInstance.md | 22 ++ .../CloudService.Autorest/generate-info.json | 2 +- .../CloudService.Autorest/resources/README.md | 11 + ...ServiceCloudServicesUpdateDomain.Tests.ps1 | 33 ++ ...iceRoleInstanceRemoteDesktopFile.Tests.ps1 | 2 +- ...zCloudServiceRebuildCloudService.Tests.ps1 | 25 ++ ...eRebuildCloudServiceRoleInstance.Tests.ps1 | 21 ++ ...iceWalkCloudServicesUpdateDomain.Tests.ps1 | 49 +++ ...ServiceCloudServicesUpdateDomain.Tests.ps1 | 41 +++ ...pdate-AzCloudServiceRoleInstance.Tests.ps1 | 21 ++ src/CloudService/CloudService.sln | 89 +++++- .../CloudService/Az.CloudService.psd1 | 26 +- .../CloudService/help/Az.CloudService.md | 35 +- .../CloudService/help/Get-AzCloudService.md | 3 +- ...AzCloudServiceCloudServicesUpdateDomain.md | 196 ++++++++++++ .../help/Get-AzCloudServiceInstanceView.md | 2 +- .../Get-AzCloudServiceNetworkInterface.md | 52 ++- .../help/Get-AzCloudServiceOSFamily.md | 26 +- .../help/Get-AzCloudServiceOSVersion.md | 26 +- .../help/Get-AzCloudServicePublicIPAddress.md | 100 +++++- .../help/Get-AzCloudServiceRoleInstance.md | 36 ++- ...oudServiceRoleInstanceRemoteDesktopFile.md | 31 +- .../Get-AzCloudServiceRoleInstanceView.md | 32 +- .../help/Invoke-AzCloudServiceRebuild.md | 7 +- ...nvoke-AzCloudServiceRebuildCloudService.md | 239 ++++++++++++++ ...dServiceRebuildCloudServiceRoleInstance.md | 187 +++++++++++ .../help/Invoke-AzCloudServiceReimage.md | 7 +- ...nvoke-AzCloudServiceRoleInstanceRebuild.md | 1 - ...nvoke-AzCloudServiceRoleInstanceReimage.md | 1 - .../CloudService/help/New-AzCloudService.md | 119 +++++-- .../New-AzCloudServiceDiagnosticsExtension.md | 2 +- .../help/New-AzCloudServiceExtensionObject.md | 84 ++++- ...dServiceLoadBalancerConfigurationObject.md | 36 ++- ...adBalancerFrontendIPConfigurationObject.md | 21 +- ...loudServiceRemoteDesktopExtensionObject.md | 2 +- ...CloudServiceRoleProfilePropertiesObject.md | 14 +- ...ew-AzCloudServiceVaultSecretGroupObject.md | 8 +- .../help/Remove-AzCloudService.md | 1 - .../help/Remove-AzCloudServiceRoleInstance.md | 59 +++- .../help/Restart-AzCloudService.md | 59 +++- .../Restart-AzCloudServiceRoleInstance.md | 25 +- .../help/Set-AzCloudServiceUpdateDomain.md | 49 ++- .../CloudService/help/Start-AzCloudService.md | 1 - .../CloudService/help/Stop-AzCloudService.md | 1 - .../help/Switch-AzCloudService.md | 3 +- .../help/Update-AzCloudService.md | 12 +- ...AzCloudServiceCloudServicesUpdateDomain.md | 300 ++++++++++++++++++ .../help/Update-AzCloudServiceRoleInstance.md | 185 +++++++++++ 109 files changed, 4385 insertions(+), 679 deletions(-) create mode 100644 src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json delete mode 100644 src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceExtensionObject.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs delete mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceTags.cs delete mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceVaultCertificate.cs delete mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/ResourceInstanceViewStatus.cs delete mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/RoleInstanceTags.cs delete mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/StatusCodeCount.cs create mode 100644 src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceExtensionObject.ps1 create mode 100644 src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 create mode 100644 src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceRoleProfilePropertiesObject.ps1 create mode 100644 src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md create mode 100644 src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md create mode 100644 src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md create mode 100644 src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceCloudServicesUpdateDomain.md create mode 100644 src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md create mode 100644 src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md create mode 100644 src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md create mode 100644 src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md create mode 100644 src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md create mode 100644 src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md create mode 100644 src/CloudService/CloudService.Autorest/resources/README.md create mode 100644 src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 create mode 100644 src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 create mode 100644 src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 create mode 100644 src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 create mode 100644 src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 create mode 100644 src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 create mode 100644 src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md create mode 100644 src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md create mode 100644 src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md create mode 100644 src/CloudService/CloudService/help/Update-AzCloudServiceCloudServicesUpdateDomain.md create mode 100644 src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md diff --git a/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs b/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..a76bedb0fa31 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - CloudService")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/CloudService/CloudService.Autorest/README.md b/src/CloudService/CloudService.Autorest/README.md index 8eb974254517..91520ceb45b3 100644 --- a/src/CloudService/CloudService.Autorest/README.md +++ b/src/CloudService/CloudService.Autorest/README.md @@ -55,12 +55,6 @@ input-file: title: CloudService module-version: 0.1.0 -identity-correction-for-post: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: - where: subject: ^CloudServiceOperatingSystemOSFamily$ @@ -104,11 +98,11 @@ directive: verb: Get remove: true - where: - subject: ^WalkCloudServiceUpdateDomain$ - variant: ^Walk$ + subject: ^WalkCloudServicesUpdateDomain$ + variant: ^Walk$|^WalkViaIdentity$|^WalkViaIdentityCloudService$|^WalkViaIdentityCloudServiceExpanded$|^WalkViaIdentityExpanded$|^WalkViaJsonFilePathViaJsonFilePath$|^WalkViaJsonStringViaJsonString$ remove: true - where: - subject: ^WalkCloudServiceUpdateDomain$ + subject: ^WalkCloudServicesUpdateDomain$ set: subject: UpdateDomain verb: Set @@ -320,4 +314,15 @@ directive: transform: >- return "string" + - model-cmdlet: + - model-name: Extension + cmdlet-name: New-AzCloudServiceExtensionObject + - model-name: LoadBalancerConfiguration + cmdlet-name: New-AzCloudServiceLoadBalancerConfigurationObject + # - model-name: LoadBalancerFrontendIPConfiguration + # cmdlet-name: New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject + - model-name: CloudServiceRoleProfileProperties + cmdlet-name: New-AzCloudServiceRoleProfilePropertiesObject + # - model-name: CloudServiceVaultSecretGroup + # cmdlet-name: New-AzCloudServiceVaultSecretGroupObject ``` diff --git a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json new file mode 100644 index 000000000000..b66a8803974b --- /dev/null +++ b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json @@ -0,0 +1,52 @@ +{ + "resourceType": "cloudServices/updateDomains", + "apiVersion": "2022-09-04", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cloudservice" + }, + "commands": [ + { + "name": "Get-AzCloudServiceCloudServicesUpdateDomain", + "description": "Gets the specified get domain of a cloud service.\nUse nextLink property in the response to get the next page of get domains.\nDo this till nextLink is null to fetch all the get domains.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cloudservice/get-azcloudservicecloudservicesupdatedomain" + }, + "parameterSets": [ + { + "parameters": [ + "-CloudServiceName ", + "-ResourceGroupName ", + "[-SubscriptionId ]", + "-UpdateDomain " + ] + } + ] + }, + "examples": [ + { + "description": "Gets the specified get domain of a cloud service. Use nextLink property in the response to get the next page of get domains. Do this till nextLink is null to fetch all the get domains.", + "parameters": [ + { + "name": "-CloudServiceName", + "value": "[Path.cloudServiceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, + { + "name": "-UpdateDomain", + "value": "[Path.updateDomain]" + } + ] + } + ] + } + ] +} diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudService.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudService.ps1 index c2b7af149823..31b01574fc4b 100644 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudService.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/New-AzCloudService.ps1 @@ -21,7 +21,7 @@ Create a CloudService Resource #> function New-AzCloudService { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage', Mandatory)] @@ -86,7 +86,7 @@ function New-AzCloudService { [Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage', HelpMessage="Describes a cloud service extension profile.")] [Parameter(ParameterSetName='quickCreateParameterSetWithStorage', HelpMessage="Describes a cloud service extension profile.")] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceExtensionProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceExtensionProfile] # Describes a cloud service extension profile. # To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. ${ExtensionProfile}, @@ -104,16 +104,16 @@ function New-AzCloudService { [Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage')] [Parameter(ParameterSetName='quickCreateParameterSetWithStorage')] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage', HelpMessage="Update mode for the cloud service.")] [Parameter(ParameterSetName='quickCreateParameterSetWithStorage', HelpMessage="Update mode for the cloud service.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode])] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.PSArgumentCompleterAttribute("Auto", "Manual", "Simultaneous")] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode] + [System.String] # Update mode for the cloud service. # Role instances are allocated to update domains when the service is deployed. # Updates can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceDiagnosticsExtension.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceDiagnosticsExtension.ps1 index fc529b502541..d94e4d8498f4 100644 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceDiagnosticsExtension.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceDiagnosticsExtension.ps1 @@ -20,7 +20,7 @@ Create a in-memory object for Diagnostics Extension #> function New-AzCloudServiceDiagnosticsExtension { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension')] param( [Parameter(HelpMessage="Name of Diagnostics Extension.", Mandatory)] [string] $Name, diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceExtensionObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceExtensionObject.ps1 deleted file mode 100644 index 44c0e00b0cad..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceExtensionObject.ps1 +++ /dev/null @@ -1,67 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# 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. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a in-memory object for Extension -.Description -Create a in-memory object for Extension -#> -function New-AzCloudServiceExtensionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available.")] - [bool] - $AutoUpgradeMinorVersion, - [Parameter(HelpMessage="Name.")] - [string] - $Name, - [Parameter(HelpMessage="Protected settings for the extension which are encrypted before sent to the VM.")] - [string] - $ProtectedSetting, - [Parameter(HelpMessage="Publisher.")] - [string] - $Publisher, - [Parameter(HelpMessage="RolesAppliedTo.")] - [string[]] - $RolesAppliedTo, - [Parameter(HelpMessage="Public settings for the extension.")] - [string] - $Setting, - [Parameter(HelpMessage="Type.")] - [string] - $Type, - [Parameter(HelpMessage="TypeHandlerVersion.")] - [string] - $TypeHandlerVersion - ) - - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension]::New() - - $Object.AutoUpgradeMinorVersion = $AutoUpgradeMinorVersion - $Object.Name = $Name - $Object.ProtectedSetting = $ProtectedSetting - $Object.Publisher = $Publisher - $Object.RolesAppliedTo = $RolesAppliedTo - $Object.Setting = $Setting - $Object.Type = $Type - $Object.TypeHandlerVersion = $TypeHandlerVersion - return $Object - } -} - diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 deleted file mode 100644 index 795e94dad2ac..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 +++ /dev/null @@ -1,43 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# 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. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a in-memory object for LoadBalancerConfiguration -.Description -Create a in-memory object for LoadBalancerConfiguration -#> -function New-AzCloudServiceLoadBalancerConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerConfiguration')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="FrontendIPConfiguration.")] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ILoadBalancerFrontendIPConfiguration[]] - $FrontendIPConfiguration, - [Parameter(HelpMessage="Name of LoadBalancerConfiguration.")] - [string] - $Name - ) - - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerConfiguration]::New() - - $Object.FrontendIPConfiguration = $FrontendIPConfiguration - $Object.Name = $Name - return $Object - } -} - diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 index c873b11234b9..f9e8e721b086 100644 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 @@ -1,55 +1,63 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the \"License\"); +# 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, +# 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 -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. .Description -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerFrontendIPConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceloadbalancerfrontendipconfigurationobject #> function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerFrontendIPConfiguration')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerFrontendIPConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( - [Parameter(HelpMessage="Name of FrontendIpConfiguration.")] + [Parameter(Mandatory, HelpMessage="The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.")] [string] $Name, [Parameter(ParameterSetName="DefaultParameterSet", HelpMessage="Resource Id.")] [string] $PublicIPAddressId, - [Parameter(ParameterSetName="PrivateIP", HelpMessage="Private IP Address")] + [Parameter(ParameterSetName="PrivateIP", HelpMessage="The virtual network private IP address of the IP configuration.")] [string] $PrivateIPAddress, - [Parameter(ParameterSetName="PrivateIP", HelpMessage="Subnet ID")] + [Parameter(ParameterSetName="PrivateIP", HelpMessage="Resource Id.")] [string] $SubnetId ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerFrontendIPConfiguration]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerFrontendIPConfiguration]::New() - $Object.Name = $Name - if ($PSBoundParameters.ContainsKey("PublicIPAddressId")) { + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + if ($PSBoundParameters.ContainsKey('PublicIPAddressId')) { $Object.PublicIPAddressId = $PublicIPAddressId } - if ($PSBoundParameters.ContainsKey("PrivateIPAddress")) { - $Object.privateIPAddress = $PrivateIPAddress + if ($PSBoundParameters.ContainsKey('PrivateIPAddress')) { + $Object.PrivateIPAddress = $PrivateIPAddress $Object.SubnetId = $SubnetId } - return $Object } } diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 index 6e296538ccd0..2d15b791d534 100644 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 @@ -20,7 +20,7 @@ Create a in-memory object for Remote Desktop Extension #> function New-AzCloudServiceRemoteDesktopExtensionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension')] param( [Parameter(HelpMessage="Name of Remote Desktop Extension.", Mandatory)] [string] $Name, diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 deleted file mode 100644 index 3dedd0aa24bd..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 +++ /dev/null @@ -1,51 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# 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. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a in-memory object for CloudServiceRoleProfileProperties -.Description -Create a in-memory object for CloudServiceRoleProfileProperties -#> -function New-AzCloudServiceRoleProfilePropertiesObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceRoleProfileProperties')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="Name of role profile.")] - [string] - $Name, - [Parameter(HelpMessage="Specifies the number of role instances in the cloud service.")] - [long] - $SkuCapacity, - [Parameter(HelpMessage="The sku name.")] - [string] - $SkuName, - [Parameter(HelpMessage="SkuTier.")] - [string] - $SkuTier - ) - - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceRoleProfileProperties]::New() - - $Object.Name = $Name - $Object.SkuCapacity = $SkuCapacity - $Object.SkuName = $SkuName - $Object.SkuTier = $SkuTier - return $Object - } -} - diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 index 582fcd23eb36..4d8d5bd27da1 100644 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 @@ -1,26 +1,33 @@ + # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the \"License\"); +# 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, +# 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 -Create a in-memory object for Vault Secret Group +Create an in-memory object for CloudServiceVaultSecretGroup. .Description -Create a in-memory object for Secret Group -#> +Create an in-memory object for CloudServiceVaultSecretGroup. +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceVaultSecretGroup +.Link +https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudservicevaultsecretgroupobject +#> function New-AzCloudServiceVaultSecretGroupObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceVaultSecretGroup')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceVaultSecretGroup')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="Key Vault Resource Id.")] @@ -48,3 +55,4 @@ function New-AzCloudServiceVaultSecretGroupObject { return $cloudServiceVaultSecretGroup } } + diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs deleted file mode 100644 index b1b534a33154..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; - -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904 -{ - public partial class CloudService - { - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] - public string ResourceGroupName - { - get { - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(this.Id); - if (!_match.Success) { - return null; - } - return _match.Groups["resourceGroupName"].Value; - } - } - } - - public partial interface ICloudService - { - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"ResourceGroupName", - SerializedName = @"ResourceGroupName", - PossibleTypes = new [] { typeof(string) })] - string ResourceGroupName { get; } - } -} diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceTags.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceTags.cs deleted file mode 100644 index c95d60efe9c7..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceTags.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; - -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904 -{ - public partial class CloudServiceTags - { - public override string ToString() - { - return this.ToJsonString(); - } - } -} diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceVaultCertificate.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceVaultCertificate.cs deleted file mode 100644 index 97b7854a6868..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudServiceVaultCertificate.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; - -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904 -{ - public partial class CloudServiceVaultCertificate - { - public override string ToString() - { - return this.CertificateUrl; - } - } -} diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/ResourceInstanceViewStatus.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/ResourceInstanceViewStatus.cs deleted file mode 100644 index 9b886b4b2dcb..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/Serialization/ResourceInstanceViewStatus.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; - -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904 -{ - public partial class ResourceInstanceViewStatus - { - public override string ToString() - { - return this.DisplayStatus; - } - } -} diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/RoleInstanceTags.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/RoleInstanceTags.cs deleted file mode 100644 index 62adda463cde..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/Serialization/RoleInstanceTags.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; - -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904 -{ - public partial class RoleInstanceTags - { - public override string ToString() - { - return this.ToJsonString(); - } - } -} diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/StatusCodeCount.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/StatusCodeCount.cs deleted file mode 100644 index f68a60841bc2..000000000000 --- a/src/CloudService/CloudService.Autorest/custom/Serialization/StatusCodeCount.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; - -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904 -{ - public partial class StatusCodeCount - { - public override string ToString() - { - return this.ToJsonString(); - } - } -} diff --git a/src/CloudService/CloudService.Autorest/custom/Switch-AzCloudService.ps1 b/src/CloudService/CloudService.Autorest/custom/Switch-AzCloudService.ps1 index 7a13cbcfdf56..5aa1a4f48530 100644 --- a/src/CloudService/CloudService.Autorest/custom/Switch-AzCloudService.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/Switch-AzCloudService.ps1 @@ -39,7 +39,7 @@ function Switch-AzCloudService { [Parameter(Mandatory=$true, ParameterSetName="CloudService")] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudService] ${CloudService}, [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName")] @@ -237,24 +237,24 @@ function GetVIPSwapRequestBody() { return @" { - "frontendIPConfigurations": [ - { - "id": "#LBFE1#", - "properties": { - "publicIPAddress": { - "id": "#PIP2#" - } - } - }, - { - "id": "#LBFE2#", - "properties": { - "publicIPAddress": { - "id": "#PIP1#" - } - } - } - ] + "frontendIPConfigurations": [ + { + "id": "#LBFE1#", + "properties": { + "publicIPAddress": { + "id": "#PIP2#" + } + } + }, + { + "id": "#LBFE2#", + "properties": { + "publicIPAddress": { + "id": "#PIP1#" + } + } + } + ] } "@ } diff --git a/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceExtensionObject.ps1 b/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceExtensionObject.ps1 new file mode 100644 index 000000000000..69a7ed5ca658 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceExtensionObject.ps1 @@ -0,0 +1,112 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Create an in-memory object for Extension. +.Description +Create an in-memory object for Extension. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension +.Link +https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceextensionobject +#> +function New-AzCloudServiceExtensionObject { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.")] + [bool] + $AutoUpgradeMinorVersion, + [Parameter(HelpMessage="Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not.")] + [string] + $ForceUpdateTag, + [Parameter(HelpMessage="The name of the extension.")] + [string] + $Name, + [Parameter(HelpMessage="Protected settings for the extension which are encrypted before sent to the role instance.")] + [string] + $ProtectedSetting, + [Parameter(HelpMessage="Secret URL which contains the protected settings of the extension.")] + [string] + $ProtectedSettingFromKeyVaultSecretUrl, + [Parameter(HelpMessage="The name of the extension handler publisher.")] + [string] + $Publisher, + [Parameter(HelpMessage="Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.")] + [string[]] + $RolesAppliedTo, + [Parameter(HelpMessage="Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.")] + [string] + $Setting, + [Parameter(HelpMessage="Resource Id.")] + [string] + $SourceVaultId, + [Parameter(HelpMessage="Specifies the type of the extension.")] + [string] + $Type, + [Parameter(HelpMessage="Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.")] + [string] + $TypeHandlerVersion + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension]::New() + + if ($PSBoundParameters.ContainsKey('AutoUpgradeMinorVersion')) { + $Object.AutoUpgradeMinorVersion = $AutoUpgradeMinorVersion + } + if ($PSBoundParameters.ContainsKey('ForceUpdateTag')) { + $Object.ForceUpdateTag = $ForceUpdateTag + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + if ($PSBoundParameters.ContainsKey('ProtectedSetting')) { + $Object.ProtectedSetting = $ProtectedSetting + } + if ($PSBoundParameters.ContainsKey('ProtectedSettingFromKeyVaultSecretUrl')) { + $Object.ProtectedSettingFromKeyVaultSecretUrl = $ProtectedSettingFromKeyVaultSecretUrl + } + if ($PSBoundParameters.ContainsKey('Publisher')) { + $Object.Publisher = $Publisher + } + if ($PSBoundParameters.ContainsKey('RolesAppliedTo')) { + $Object.RolesAppliedTo = $RolesAppliedTo + } + if ($PSBoundParameters.ContainsKey('Setting')) { + $Object.Setting = $Setting + } + if ($PSBoundParameters.ContainsKey('SourceVaultId')) { + $Object.SourceVaultId = $SourceVaultId + } + if ($PSBoundParameters.ContainsKey('Type')) { + $Object.Type = $Type + } + if ($PSBoundParameters.ContainsKey('TypeHandlerVersion')) { + $Object.TypeHandlerVersion = $TypeHandlerVersion + } + return $Object + } +} + diff --git a/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 b/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 new file mode 100644 index 000000000000..fc0c37916d9d --- /dev/null +++ b/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 @@ -0,0 +1,60 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Create an in-memory object for LoadBalancerConfiguration. +.Description +Create an in-memory object for LoadBalancerConfiguration. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerConfiguration +.Link +https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceloadbalancerconfigurationobject +#> +function New-AzCloudServiceLoadBalancerConfigurationObject { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerConfiguration')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerFrontendIPConfiguration[]] + $FrontendIPConfiguration, + [Parameter(HelpMessage="Resource Id.")] + [string] + $Id, + [Parameter(Mandatory, HelpMessage="The name of the Load balancer.")] + [string] + $Name + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerConfiguration]::New() + + if ($PSBoundParameters.ContainsKey('FrontendIPConfiguration')) { + $Object.FrontendIPConfiguration = $FrontendIPConfiguration + } + if ($PSBoundParameters.ContainsKey('Id')) { + $Object.Id = $Id + } + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + return $Object + } +} + diff --git a/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceRoleProfilePropertiesObject.ps1 b/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceRoleProfilePropertiesObject.ps1 new file mode 100644 index 000000000000..eed336469f47 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/custom/autogen-model-cmdlets/New-AzCloudServiceRoleProfilePropertiesObject.ps1 @@ -0,0 +1,66 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Create an in-memory object for CloudServiceRoleProfileProperties. +.Description +Create an in-memory object for CloudServiceRoleProfileProperties. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceRoleProfileProperties +.Link +https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceroleprofilepropertiesobject +#> +function New-AzCloudServiceRoleProfilePropertiesObject { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceRoleProfileProperties')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Resource name.")] + [string] + $Name, + [Parameter(HelpMessage="Specifies the number of role instances in the cloud service.")] + [long] + $SkuCapacity, + [Parameter(HelpMessage="The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.")] + [string] + $SkuName, + [Parameter(HelpMessage="Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic**.")] + [string] + $SkuTier + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceRoleProfileProperties]::New() + + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + if ($PSBoundParameters.ContainsKey('SkuCapacity')) { + $Object.SkuCapacity = $SkuCapacity + } + if ($PSBoundParameters.ContainsKey('SkuName')) { + $Object.SkuName = $SkuName + } + if ($PSBoundParameters.ContainsKey('SkuTier')) { + $Object.SkuTier = $SkuTier + } + return $Object + } +} + diff --git a/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md b/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md index 830d1deba2af..739c7fed6837 100644 --- a/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md @@ -1,6 +1,6 @@ --- Module Name: Az.CloudService -Module Guid: a41eb61d-c5a1-4e9b-81a7-b8905fff7f2c +Module Guid: 7b3ddd84-935e-4839-bbe3-ba7d166d2523 Download Help Link: https://learn.microsoft.com/powershell/module/az.cloudservice Help Version: 1.0.0.0 Locale: en-US @@ -14,6 +14,11 @@ Microsoft Azure PowerShell: CloudService cmdlets ### [Get-AzCloudService](Get-AzCloudService.md) Display information about a cloud service. +### [Get-AzCloudServiceCloudServicesUpdateDomain](Get-AzCloudServiceCloudServicesUpdateDomain.md) +Gets the specified get domain of a cloud service. +Use nextLink property in the response to get the next page of get domains. +Do this till nextLink is null to fetch all the get domains. + ### [Get-AzCloudServiceInstanceView](Get-AzCloudServiceInstanceView.md) Gets the status of a cloud service. @@ -42,6 +47,14 @@ Retrieves information about the run-time state of a role instance in a cloud ser Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. +### [Invoke-AzCloudServiceRebuildCloudService](Invoke-AzCloudServiceRebuildCloudService.md) +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +### [Invoke-AzCloudServiceRebuildCloudServiceRoleInstance](Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md) +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + ### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -53,29 +66,29 @@ If you do not want to initialize storage resources, you can use Reimage Role Ins The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. ### [New-AzCloudService](New-AzCloudService.md) -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ### [New-AzCloudServiceDiagnosticsExtension](New-AzCloudServiceDiagnosticsExtension.md) Create a in-memory object for Diagnostics Extension ### [New-AzCloudServiceExtensionObject](New-AzCloudServiceExtensionObject.md) -Create a in-memory object for Extension +Create an in-memory object for Extension. ### [New-AzCloudServiceLoadBalancerConfigurationObject](New-AzCloudServiceLoadBalancerConfigurationObject.md) -Create a in-memory object for LoadBalancerConfiguration +Create an in-memory object for LoadBalancerConfiguration. ### [New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject](New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md) -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. ### [New-AzCloudServiceRemoteDesktopExtensionObject](New-AzCloudServiceRemoteDesktopExtensionObject.md) Create a in-memory object for Remote Desktop Extension ### [New-AzCloudServiceRoleProfilePropertiesObject](New-AzCloudServiceRoleProfilePropertiesObject.md) -Create a in-memory object for CloudServiceRoleProfileProperties +Create an in-memory object for CloudServiceRoleProfileProperties. ### [New-AzCloudServiceVaultSecretGroupObject](New-AzCloudServiceVaultSecretGroupObject.md) -Create a in-memory object for Vault Secret Group +Create an in-memory object for CloudServiceVaultSecretGroup. ### [Remove-AzCloudService](Remove-AzCloudService.md) Deletes a cloud service. @@ -90,7 +103,7 @@ Restarts one or more role instances in a cloud service. The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. ### [Set-AzCloudServiceUpdateDomain](Set-AzCloudServiceUpdateDomain.md) -Updates the role instances in the specified update domain. +Walk the role instances in the specified walk domain. ### [Start-AzCloudService](Start-AzCloudService.md) Starts the cloud service. @@ -103,6 +116,12 @@ Note that resources are still attached and you are getting charged for the resou Swaps VIPs between two cloud service (extended support) load balancers. ### [Update-AzCloudService](Update-AzCloudService.md) -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. +### [Update-AzCloudServiceCloudServicesUpdateDomain](Update-AzCloudServiceCloudServicesUpdateDomain.md) +Walk the role instances in the specified walk domain. + +### [Update-AzCloudServiceRoleInstance](Update-AzCloudServiceRoleInstance.md) +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudService.md index 92b31c404b8c..72be946575b8 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudService.md @@ -103,7 +103,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -172,7 +171,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md new file mode 100644 index 000000000000..fbb2d6842f71 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md @@ -0,0 +1,194 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/get-azcloudservicecloudservicesupdatedomain +schema: 2.0.0 +--- + +# Get-AzCloudServiceCloudServicesUpdateDomain + +## SYNOPSIS +Gets the specified get domain of a cloud service. +Use nextLink property in the response to get the next page of get domains. +Do this till nextLink is null to fetch all the get domains. + +## SYNTAX + +### List (Default) +``` +Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName + -UpdateDomain [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzCloudServiceCloudServicesUpdateDomain -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityCloudService +``` +Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceInputObject + -UpdateDomain [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets the specified get domain of a cloud service. +Use nextLink property in the response to get the next page of get domains. +Do this till nextLink is null to fetch all the get domains. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UpdateDomain +Specifies an integer value that identifies the update domain. +Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +```yaml +Type: System.Int32 +Parameter Sets: Get, GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain + +## NOTES + +## RELATED LINKS + diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceInstanceView.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceInstanceView.md index 965b094510d8..bb74c8f68931 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceInstanceView.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceInstanceView.md @@ -148,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceInstanceView ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceNetworkInterface.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceNetworkInterface.md index 4983379c15ce..99ec7748a3ee 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceNetworkInterface.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceNetworkInterface.md @@ -31,6 +31,18 @@ Get-AzCloudServiceNetworkInterface -InputObject [-Expand [-DefaultProfile ] [] ``` +### GetViaIdentityCloudService +``` +Get-AzCloudServiceNetworkInterface -CloudServiceInputObject -Name + -RoleInstanceName [-Expand ] [-DefaultProfile ] [] +``` + +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceNetworkInterface -Name -RoleInstanceInputObject + [-Expand ] [-DefaultProfile ] [] +``` + ### List ``` Get-AzCloudServiceNetworkInterface -CloudServiceName -ResourceGroupName @@ -59,6 +71,21 @@ Gets all the network interfaces for a given cloud service object. ## PARAMETERS +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -CloudServiceName The name of the cloud service. @@ -95,7 +122,7 @@ Expands referenced resources. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: Get, GetViaIdentity, GetViaIdentityCloudService, GetViaIdentityRoleInstance Aliases: Required: False @@ -107,7 +134,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -126,7 +152,7 @@ The name of the network interface. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityCloudService, GetViaIdentityRoleInstance Aliases: NetworkInterfaceName Required: True @@ -151,12 +177,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName The name of role instance. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, GetViaIdentityCloudService, List Aliases: Required: True @@ -191,7 +232,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSFamily.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSFamily.md index 7181c41f1a83..0fd5e38b3829 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSFamily.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSFamily.md @@ -30,6 +30,12 @@ Get-AzCloudServiceOSFamily -InputObject [-DefaultProfile [] ``` +### GetViaIdentityLocation +``` +Get-AzCloudServiceOSFamily -LocationInputObject -OSFamilyName + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. @@ -85,7 +91,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -114,12 +119,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -LocationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityLocation +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -OSFamilyName Name of the OS family. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLocation Aliases: Required: True @@ -154,7 +174,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSFamily ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSVersion.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSVersion.md index d9421135599a..2cfd15cefec3 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSVersion.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceOSVersion.md @@ -30,6 +30,12 @@ Get-AzCloudServiceOSVersion -InputObject [-DefaultProfil [] ``` +### GetViaIdentityLocation +``` +Get-AzCloudServiceOSVersion -LocationInputObject -OSVersionName + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. @@ -85,7 +91,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -114,12 +119,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -LocationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityLocation +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -OSVersionName Name of the OS version. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLocation Aliases: Required: True @@ -154,7 +174,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSVersion +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSVersion ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServicePublicIPAddress.md index 9102e0056246..57ae4f21d15b 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServicePublicIPAddress.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServicePublicIPAddress.md @@ -31,6 +31,33 @@ Get-AzCloudServicePublicIPAddress -InputObject [-Expand [-DefaultProfile ] [] ``` +### GetViaIdentityCloudService +``` +Get-AzCloudServicePublicIPAddress -CloudServiceInputObject + -IPConfigurationName -Name -NetworkInterfaceName -RoleInstanceName + [-Expand ] [-DefaultProfile ] [] +``` + +### GetViaIdentityIpconfiguration +``` +Get-AzCloudServicePublicIPAddress -IpconfigurationInputObject -Name + [-Expand ] [-DefaultProfile ] [] +``` + +### GetViaIdentityNetworkInterface +``` +Get-AzCloudServicePublicIPAddress -IPConfigurationName -Name + -NetworkInterfaceInputObject [-Expand ] [-DefaultProfile ] + [] +``` + +### GetViaIdentityRoleInstance +``` +Get-AzCloudServicePublicIPAddress -IPConfigurationName -Name -NetworkInterfaceName + -RoleInstanceInputObject [-Expand ] [-DefaultProfile ] + [] +``` + ### List1 ``` Get-AzCloudServicePublicIPAddress -CloudServiceName -IPConfigurationName @@ -60,6 +87,21 @@ Gets the instance level public IP addresses for a given cloud service object. ## PARAMETERS +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -CloudServiceName The name of the cloud service. @@ -96,7 +138,7 @@ Expands referenced resources. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: Get, GetViaIdentity, GetViaIdentityCloudService, GetViaIdentityIpconfiguration, GetViaIdentityNetworkInterface, GetViaIdentityRoleInstance Aliases: Required: False @@ -108,7 +150,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -122,12 +163,27 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -IpconfigurationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityIpconfiguration +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -IPConfigurationName The name of the IP configuration. ```yaml Type: System.String -Parameter Sets: Get, List1 +Parameter Sets: Get, GetViaIdentityCloudService, GetViaIdentityNetworkInterface, GetViaIdentityRoleInstance, List1 Aliases: Required: True @@ -142,7 +198,7 @@ The name of the public IP Address. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityCloudService, GetViaIdentityIpconfiguration, GetViaIdentityNetworkInterface, GetViaIdentityRoleInstance Aliases: PublicIPAddressName Required: True @@ -152,12 +208,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NetworkInterfaceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityNetworkInterface +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NetworkInterfaceName The name of the network interface. ```yaml Type: System.String -Parameter Sets: Get, List1 +Parameter Sets: Get, GetViaIdentityCloudService, GetViaIdentityRoleInstance, List1 Aliases: Required: True @@ -182,12 +253,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName The role instance name. ```yaml Type: System.String -Parameter Sets: Get, List1 +Parameter Sets: Get, GetViaIdentityCloudService, List1 Aliases: Required: True @@ -222,7 +308,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPublicIPAddress ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstance.md index c58c32568f11..ee1cb379cd1a 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstance.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstance.md @@ -15,22 +15,28 @@ Gets a role instance from a cloud service. ### List (Default) ``` Get-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName - [-SubscriptionId ] [-Expand ] [-DefaultProfile ] [] + [-SubscriptionId ] [-Expand ] [-DefaultProfile ] [] ``` ### Get ``` Get-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName - -RoleInstanceName [-SubscriptionId ] [-Expand ] - [-DefaultProfile ] [] + -RoleInstanceName [-SubscriptionId ] [-Expand ] [-DefaultProfile ] + [] ``` ### GetViaIdentity ``` -Get-AzCloudServiceRoleInstance -InputObject [-Expand ] +Get-AzCloudServiceRoleInstance -InputObject [-Expand ] [-DefaultProfile ] [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject + [-Expand ] [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets a role instance from a cloud service. @@ -72,7 +78,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, GetViaIdentityRoleInstance, List Aliases: Required: True @@ -103,7 +109,7 @@ The expand expression to apply to the operation. 'UserData' is not supported for cloud services. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes +Type: System.String Parameter Sets: (All) Aliases: @@ -116,7 +122,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -145,6 +150,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. @@ -185,7 +205,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoleInstance ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md index cc96801d521e..6822a1fd78bb 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md @@ -12,12 +12,20 @@ Gets a remote desktop file for a role instance in a cloud service. ## SYNTAX +### Get (Default) ``` Get-AzCloudServiceRoleInstanceRemoteDesktopFile -CloudServiceName -ResourceGroupName -RoleInstanceName -OutFile [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceRoleInstanceRemoteDesktopFile -CloudServiceName + -RoleInstanceInputObject -OutFile [-DefaultProfile ] [-PassThru] + [] +``` + ## DESCRIPTION Gets a remote desktop file for a role instance in a cloud service. @@ -98,7 +106,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -108,12 +116,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -129,7 +152,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: False @@ -144,6 +167,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + ## OUTPUTS ### System.Boolean diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceView.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceView.md index 5ecda1ec735b..31c9fec7e45c 100644 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceView.md +++ b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceRoleInstanceView.md @@ -12,11 +12,18 @@ Retrieves information about the run-time state of a role instance in a cloud ser ## SYNTAX +### Get (Default) ``` Get-AzCloudServiceRoleInstanceView -CloudServiceName -ResourceGroupName -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceRoleInstanceView -CloudServiceName -RoleInstanceInputObject + [-DefaultProfile ] [] +``` + ## DESCRIPTION Retrieves information about the run-time state of a role instance in a cloud service. @@ -73,7 +80,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -83,12 +90,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -104,7 +126,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: False @@ -119,9 +141,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstanceView +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoleInstanceView ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md index 99b9849beb60..50f09af391d8 100644 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md @@ -15,14 +15,14 @@ If you do not want to initialize storage resources, you can use Reimage Role Ins ### RebuildExpanded (Default) ``` -Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName -RoleInstance - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] +Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName [-SubscriptionId ] + [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### RebuildViaIdentityExpanded ``` -Invoke-AzCloudServiceRebuild -InputObject -RoleInstance +Invoke-AzCloudServiceRebuild -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -97,7 +97,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -165,7 +164,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md new file mode 100644 index 000000000000..17ed88cc3208 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md @@ -0,0 +1,240 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudservice +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRebuildCloudService + +## SYNOPSIS +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +## SYNTAX + +### RebuildViaJsonFilePath (Default) +``` +Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### RebuildViaJsonString +``` +Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md new file mode 100644 index 000000000000..5e8dcfcbc1b8 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md @@ -0,0 +1,188 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudserviceroleinstance +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRebuildCloudServiceRoleInstance + +## SYNOPSIS +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +## SYNTAX + +``` +Invoke-AzCloudServiceRebuildCloudServiceRoleInstance -CloudServiceName + -RoleInstanceInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceReimage.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceReimage.md index 33b284721005..3e0ca5721bee 100644 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceReimage.md +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceReimage.md @@ -14,14 +14,14 @@ Reimage asynchronous operation reinstalls the operating system on instances of w ### ReimageExpanded (Default) ``` -Invoke-AzCloudServiceReimage -Name -ResourceGroupName -RoleInstance - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] +Invoke-AzCloudServiceReimage -Name -ResourceGroupName [-SubscriptionId ] + [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### ReimageViaIdentityExpanded ``` -Invoke-AzCloudServiceReimage -InputObject -RoleInstance +Invoke-AzCloudServiceReimage -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -163,7 +162,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md index 4b1235294551..96b942819999 100644 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -89,7 +89,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceReimage.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceReimage.md index 77c8e707ab10..034dd1fe8a05 100644 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceReimage.md +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceReimage.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudService.md index 64e152ca01b3..2ea89f46320e 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudService.md @@ -8,18 +8,31 @@ schema: 2.0.0 # New-AzCloudService ## SYNOPSIS -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ## SYNTAX ### CreateExpanded (Default) ``` -New-AzCloudService -Name -ResourceGroupName -Location [-SubscriptionId ] - [-AllowModelOverride] [-Configuration ] [-ConfigurationUrl ] - [-ExtensionProfile ] [-NetworkProfile ] - [-OSProfile ] [-PackageUrl ] [-RoleProfile ] - [-StartCloudService] [-Tag ] [-UpgradeMode ] [-Zone ] +New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] [-AllowModelOverride] + [-Configuration ] [-ConfigurationUrl ] [-ExtensionProfile ] + [-Location ] [-NetworkProfile ] [-OSProfile ] + [-PackageUrl ] [-RoleProfile ] [-StartCloudService] [-Tag ] + [-UpgradeMode ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzCloudService -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzCloudService -Name -ResourceGroupName -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -28,8 +41,7 @@ New-AzCloudService -Name -ResourceGroupName -Location New-AzCloudService -Name -ResourceGroupName -ConfigurationFile -DefinitionFile -Location -PackageUrl [-SubscriptionId ] [-DnsName ] [-ExtensionProfile ] [-KeyVaultName ] - [-StartCloudService] [-Tag ] [-UpgradeMode ] [-Confirm] [-WhatIf] - [] + [-StartCloudService] [-Tag ] [-UpgradeMode ] [-Confirm] [-WhatIf] [] ``` ### quickCreateParameterSetWithStorage @@ -37,12 +49,12 @@ New-AzCloudService -Name -ResourceGroupName -ConfigurationFile New-AzCloudService -Name -ResourceGroupName -ConfigurationFile -DefinitionFile -Location -PackageFile -StorageAccount [-SubscriptionId ] [-DnsName ] [-ExtensionProfile ] - [-KeyVaultName ] [-StartCloudService] [-Tag ] [-UpgradeMode ] - [-Confirm] [-WhatIf] [] + [-KeyVaultName ] [-StartCloudService] [-Tag ] [-UpgradeMode ] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ## EXAMPLES @@ -266,7 +278,7 @@ Run the command as a job ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -328,7 +340,7 @@ Use the SubscriptionId parameter when available if executing the cmdlet against ```yaml Type: System.Management.Automation.PSObject -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: AzureRMContext, AzureCredential Required: False @@ -370,11 +382,10 @@ Accept wildcard characters: False ### -ExtensionProfile Describes a cloud service extension profile. -To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceExtensionProfile -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceExtensionProfile +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -384,6 +395,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 +``` + ### -KeyVaultName Name of the KeyVault to be used for the CloudService resource. @@ -404,7 +445,7 @@ Resource location. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: True @@ -431,10 +472,9 @@ Accept wildcard characters: False ### -NetworkProfile Network Profile for the cloud service. -To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceNetworkProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceNetworkProfile Parameter Sets: CreateExpanded Aliases: @@ -450,7 +490,7 @@ Run the command asynchronously ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -462,10 +502,9 @@ Accept wildcard characters: False ### -OSProfile Describes the OS profile for the cloud service. -To construct, see NOTES section for OSPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceOSProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceOSProfile Parameter Sets: CreateExpanded Aliases: @@ -525,10 +564,9 @@ Accept wildcard characters: False ### -RoleProfile Describes the role profile for the cloud service. -To construct, see NOTES section for ROLEPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceRoleProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfile Parameter Sets: CreateExpanded Aliases: @@ -547,7 +585,7 @@ A deployed service still incurs charges, even if it is poweredoff. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -593,7 +631,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -611,8 +649,8 @@ If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -677,7 +715,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceDiagnosticsExtension.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceDiagnosticsExtension.md index 24f1217e350f..cb88a51986b1 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceDiagnosticsExtension.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceDiagnosticsExtension.md @@ -194,7 +194,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceExtensionObject.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceExtensionObject.md index 0ce30e1a4ac3..195815efae53 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceExtensionObject.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceExtensionObject.md @@ -1,25 +1,26 @@ --- external help file: Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceextensionobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceextensionobject schema: 2.0.0 --- # New-AzCloudServiceExtensionObject ## SYNOPSIS -Create a in-memory object for Extension +Create an in-memory object for Extension. ## SYNTAX ``` -New-AzCloudServiceExtensionObject [-AutoUpgradeMinorVersion ] [-Name ] - [-ProtectedSetting ] [-Publisher ] [-RolesAppliedTo ] [-Setting ] +New-AzCloudServiceExtensionObject [-AutoUpgradeMinorVersion ] [-ForceUpdateTag ] + [-Name ] [-ProtectedSetting ] [-ProtectedSettingFromKeyVaultSecretUrl ] + [-Publisher ] [-RolesAppliedTo ] [-Setting ] [-SourceVaultId ] [-Type ] [-TypeHandlerVersion ] [] ``` ## DESCRIPTION -Create a in-memory object for Extension +Create an in-memory object for Extension. ## EXAMPLES @@ -34,7 +35,7 @@ For more details see New-AzCloudService. ## PARAMETERS ### -AutoUpgradeMinorVersion -Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available. +Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. ```yaml Type: System.Boolean @@ -48,8 +49,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ForceUpdateTag +Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name -Name. +The name of the extension. ```yaml Type: System.String @@ -64,7 +84,22 @@ Accept wildcard characters: False ``` ### -ProtectedSetting -Protected settings for the extension which are encrypted before sent to the VM. +Protected settings for the extension which are encrypted before sent to the role instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProtectedSettingFromKeyVaultSecretUrl +Secret URL which contains the protected settings of the extension. ```yaml Type: System.String @@ -79,7 +114,7 @@ Accept wildcard characters: False ``` ### -Publisher -Publisher. +The name of the extension handler publisher. ```yaml Type: System.String @@ -94,7 +129,8 @@ Accept wildcard characters: False ``` ### -RolesAppliedTo -RolesAppliedTo. +Optional list of roles to apply this extension. +If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. ```yaml Type: System.String[] @@ -110,6 +146,23 @@ Accept wildcard characters: False ### -Setting Public settings for the extension. +For JSON extensions, this is the JSON settings for the extension. +For XML Extension (like RDP), this is the XML setting for the extension. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceVaultId +Resource Id. ```yaml Type: System.String @@ -124,7 +177,7 @@ Accept wildcard characters: False ``` ### -Type -Type. +Specifies the type of the extension. ```yaml Type: System.String @@ -139,7 +192,12 @@ Accept wildcard characters: False ``` ### -TypeHandlerVersion -TypeHandlerVersion. +Specifies the version of the extension. +Specifies the version of the extension. +If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. +If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. +If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. +If a version is specified, an auto-upgrade is performed on the role instance. ```yaml Type: System.String @@ -160,7 +218,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerConfigurationObject.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerConfigurationObject.md index bc7f1530e410..090ebef91988 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerConfigurationObject.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerConfigurationObject.md @@ -1,24 +1,25 @@ --- external help file: Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceloadbalancerconfigurationobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceloadbalancerconfigurationobject schema: 2.0.0 --- # New-AzCloudServiceLoadBalancerConfigurationObject ## SYNOPSIS -Create a in-memory object for LoadBalancerConfiguration +Create an in-memory object for LoadBalancerConfiguration. ## SYNTAX ``` New-AzCloudServiceLoadBalancerConfigurationObject - [-FrontendIPConfiguration ] [-Name ] [] + -FrontendIPConfiguration -Name [-Id ] + [] ``` ## DESCRIPTION -Create a in-memory object for LoadBalancerConfiguration +Create an in-memory object for LoadBalancerConfiguration. ## EXAMPLES @@ -35,11 +36,27 @@ For more details see New-AzCloudService. ## PARAMETERS ### -FrontendIPConfiguration -FrontendIPConfiguration. -To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. +Specifies the frontend IP to be used for the load balancer. +Only IPv4 frontend IP address is supported. +Each load balancer configuration must have exactly one frontend IP configuration. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ILoadBalancerFrontendIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerFrontendIPConfiguration[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource Id. + +```yaml +Type: System.String Parameter Sets: (All) Aliases: @@ -51,14 +68,14 @@ Accept wildcard characters: False ``` ### -Name -Name of LoadBalancerConfiguration. +The name of the Load balancer. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -72,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerConfiguration ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md index 3094d762c0ef..6a88910a2f09 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md @@ -1,31 +1,31 @@ --- external help file: Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceloadbalancerfrontendipconfigurationobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceloadbalancerfrontendipconfigurationobject schema: 2.0.0 --- # New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject ## SYNOPSIS -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. ## SYNTAX ### DefaultParameterSet (Default) ``` -New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject [-Name ] [-PublicIPAddressId ] +New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name [-PublicIPAddressId ] [] ``` ### PrivateIP ``` -New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject [-Name ] [-PrivateIPAddress ] +New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name [-PrivateIPAddress ] [-SubnetId ] [] ``` ## DESCRIPTION -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. ## EXAMPLES @@ -53,14 +53,15 @@ This command creates load balancer frontend IP configuration object with a Priva ## PARAMETERS ### -Name -Name of FrontendIpConfiguration. +The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. +This name can be used to access the resource. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -68,7 +69,7 @@ Accept wildcard characters: False ``` ### -PrivateIPAddress -Private IP Address +The virtual network private IP address of the IP configuration. ```yaml Type: System.String @@ -98,7 +99,7 @@ Accept wildcard characters: False ``` ### -SubnetId -Subnet ID +Resource Id. ```yaml Type: System.String @@ -119,7 +120,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerFrontendIPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerFrontendIPConfiguration ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRemoteDesktopExtensionObject.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRemoteDesktopExtensionObject.md index 98b816f62dcd..353ff89cd25a 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRemoteDesktopExtensionObject.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRemoteDesktopExtensionObject.md @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRoleProfilePropertiesObject.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRoleProfilePropertiesObject.md index 9a23a53c5b0b..9d066bde190d 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRoleProfilePropertiesObject.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceRoleProfilePropertiesObject.md @@ -1,14 +1,14 @@ --- external help file: Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceroleprofilepropertiesobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceroleprofilepropertiesobject schema: 2.0.0 --- # New-AzCloudServiceRoleProfilePropertiesObject ## SYNOPSIS -Create a in-memory object for CloudServiceRoleProfileProperties +Create an in-memory object for CloudServiceRoleProfileProperties. ## SYNTAX @@ -18,7 +18,7 @@ New-AzCloudServiceRoleProfilePropertiesObject [-Name ] [-SkuCapacity \
**Standard** \
\
**Basic**. ```yaml Type: System.String @@ -99,7 +101,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceRoleProfileProperties +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceRoleProfileProperties ## NOTES diff --git a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceVaultSecretGroupObject.md b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceVaultSecretGroupObject.md index 28fb131af869..027988ef5ff1 100644 --- a/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceVaultSecretGroupObject.md +++ b/src/CloudService/CloudService.Autorest/docs/New-AzCloudServiceVaultSecretGroupObject.md @@ -1,14 +1,14 @@ --- external help file: Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudservicevaultsecretgroupobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudservicevaultsecretgroupobject schema: 2.0.0 --- # New-AzCloudServiceVaultSecretGroupObject ## SYNOPSIS -Create a in-memory object for Vault Secret Group +Create an in-memory object for CloudServiceVaultSecretGroup. ## SYNTAX @@ -17,7 +17,7 @@ New-AzCloudServiceVaultSecretGroupObject [-CertificateUrl ] [-Id -ResourceGroupName - -RoleInstance [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-SubscriptionId ] [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### DeleteViaIdentityExpanded ``` -Remove-AzCloudServiceRoleInstance -InputObject -RoleInstance +Remove-AzCloudServiceRoleInstance -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaJsonFilePath +``` +Remove-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### DeleteViaJsonString +``` +Remove-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Deletes role instances in a cloud service. @@ -59,7 +73,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: DeleteExpanded +Parameter Sets: DeleteExpanded, DeleteViaJsonFilePath, DeleteViaJsonString Aliases: Required: True @@ -87,7 +101,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -101,6 +114,36 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Delete operation + +```yaml +Type: System.String +Parameter Sets: DeleteViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Delete operation + +```yaml +Type: System.String +Parameter Sets: DeleteViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -136,7 +179,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: DeleteExpanded +Parameter Sets: DeleteExpanded, DeleteViaJsonFilePath, DeleteViaJsonString Aliases: Required: True @@ -152,10 +195,10 @@ Value of '*' will signify all role instances of the cloud service. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: DeleteExpanded, DeleteViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -168,7 +211,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: DeleteExpanded +Parameter Sets: DeleteExpanded, DeleteViaJsonFilePath, DeleteViaJsonString Aliases: Required: False diff --git a/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudService.md index 9d3b333846e4..4f9e25b8d408 100644 --- a/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudService.md @@ -14,17 +14,31 @@ Restarts one or more role instances in a cloud service. ### RestartExpanded (Default) ``` -Restart-AzCloudService -Name -ResourceGroupName -RoleInstance - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] +Restart-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### RestartViaIdentityExpanded ``` -Restart-AzCloudService -InputObject -RoleInstance +Restart-AzCloudService -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### RestartViaJsonFilePath +``` +Restart-AzCloudService -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### RestartViaJsonString +``` +Restart-AzCloudService -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Restarts one or more role instances in a cloud service. @@ -80,7 +94,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -94,12 +107,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the cloud service. ```yaml Type: System.String -Parameter Sets: RestartExpanded +Parameter Sets: RestartExpanded, RestartViaJsonFilePath, RestartViaJsonString Aliases: CloudServiceName Required: True @@ -144,7 +187,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: RestartExpanded +Parameter Sets: RestartExpanded, RestartViaJsonFilePath, RestartViaJsonString Aliases: Required: True @@ -160,10 +203,10 @@ Value of '*' will signify all role instances of the cloud service. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: RestartExpanded, RestartViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -176,7 +219,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: RestartExpanded +Parameter Sets: RestartExpanded, RestartViaJsonFilePath, RestartViaJsonString Aliases: Required: False diff --git a/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudServiceRoleInstance.md index 78acc47779c9..dd2e09173325 100644 --- a/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudServiceRoleInstance.md +++ b/src/CloudService/CloudService.Autorest/docs/Restart-AzCloudServiceRoleInstance.md @@ -25,6 +25,12 @@ Restart-AzCloudServiceRoleInstance -InputObject [-Defaul [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### RestartViaIdentityRoleInstance +``` +Restart-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. @@ -59,7 +65,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: Restart +Parameter Sets: Restart, RestartViaIdentityRoleInstance Aliases: Required: True @@ -87,7 +93,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -146,6 +151,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RestartViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. diff --git a/src/CloudService/CloudService.Autorest/docs/Set-AzCloudServiceUpdateDomain.md b/src/CloudService/CloudService.Autorest/docs/Set-AzCloudServiceUpdateDomain.md index cd6f1dba9a79..899c9ccfb51a 100644 --- a/src/CloudService/CloudService.Autorest/docs/Set-AzCloudServiceUpdateDomain.md +++ b/src/CloudService/CloudService.Autorest/docs/Set-AzCloudServiceUpdateDomain.md @@ -8,18 +8,33 @@ schema: 2.0.0 # Set-AzCloudServiceUpdateDomain ## SYNOPSIS -Updates the role instances in the specified update domain. +Walk the role instances in the specified walk domain. ## SYNTAX +### WalkExpanded (Default) ``` Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### WalkViaJsonFilePath +``` +Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### WalkViaJsonString +``` +Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Updates the role instances in the specified update domain. +Walk the role instances in the specified walk domain. ## EXAMPLES @@ -78,6 +93,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Walk operation + +```yaml +Type: System.String +Parameter Sets: WalkViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Walk operation + +```yaml +Type: System.String +Parameter Sets: WalkViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously diff --git a/src/CloudService/CloudService.Autorest/docs/Start-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/Start-AzCloudService.md index 85a97b6ec40f..2f8b8913793f 100644 --- a/src/CloudService/CloudService.Autorest/docs/Start-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Start-AzCloudService.md @@ -71,7 +71,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService.Autorest/docs/Stop-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/Stop-AzCloudService.md index bab77082a692..0745520854d5 100644 --- a/src/CloudService/CloudService.Autorest/docs/Stop-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Stop-AzCloudService.md @@ -73,7 +73,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService.Autorest/docs/Switch-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/Switch-AzCloudService.md index 1256c4323647..63cad453bf99 100644 --- a/src/CloudService/CloudService.Autorest/docs/Switch-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Switch-AzCloudService.md @@ -79,10 +79,10 @@ Accept wildcard characters: False ``` ### -CloudService -To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudService +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudService Parameter Sets: CloudService Aliases: diff --git a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudService.md b/src/CloudService/CloudService.Autorest/docs/Update-AzCloudService.md index eb810a96159e..3f5984dc4490 100644 --- a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Update-AzCloudService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzCloudService ## SYNOPSIS -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ## SYNTAX @@ -19,7 +19,7 @@ Update-AzCloudService -InputObject -Parameter -ResourceGroupName + -UpdateDomain [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### Update +``` +Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName + -UpdateDomain -Parameter [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentity +``` +Update-AzCloudServiceCloudServicesUpdateDomain -InputObject -Parameter + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityCloudService +``` +Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceInputObject + -UpdateDomain -Parameter [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityCloudServiceExpanded +``` +Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceInputObject + -UpdateDomain [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzCloudServiceCloudServicesUpdateDomain -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Walk the role instances in the specified walk domain. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: UpdateViaIdentityCloudService, UpdateViaIdentityCloudServiceExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: UpdateViaIdentity, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +Defines an update domain for the cloud service. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain +Parameter Sets: Update, UpdateViaIdentity, UpdateViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UpdateDomain +Specifies an integer value that identifies the update domain. +Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +```yaml +Type: System.Int32 +Parameter Sets: Update, UpdateExpanded, UpdateViaIdentityCloudService, UpdateViaIdentityCloudServiceExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain + +## NOTES + +## RELATED LINKS + diff --git a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..a3496fa9d79e --- /dev/null +++ b/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md @@ -0,0 +1,185 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/update-azcloudserviceroleinstance +schema: 2.0.0 +--- + +# Update-AzCloudServiceRoleInstance + +## SYNOPSIS +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## SYNTAX + +``` +Update-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/CloudService/CloudService.Autorest/generate-info.json b/src/CloudService/CloudService.Autorest/generate-info.json index 726df2dd5cef..8fcfeda41af0 100644 --- a/src/CloudService/CloudService.Autorest/generate-info.json +++ b/src/CloudService/CloudService.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "f75fc427-d5a9-4621-809f-472136726c10" + "generate_Id": "7aa0f70f-1a28-42a9-b2f6-3e5ad8dfcbcd" } diff --git a/src/CloudService/CloudService.Autorest/resources/README.md b/src/CloudService/CloudService.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/CloudService/CloudService.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/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 new file mode 100644 index 000000000000..062b2404f9cc --- /dev/null +++ b/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCloudServiceCloudServicesUpdateDomain')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceCloudServicesUpdateDomain.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzCloudServiceCloudServicesUpdateDomain' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentityCloudService' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 index f26f491b8853..48ee1ba6f0e4 100644 --- a/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 +++ b/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 @@ -16,7 +16,7 @@ Describe 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile' { It 'Get remote desktop file' { $RDPOutputFile = [System.IO.Path]::Combine($PSScriptRoot, "test-artifacts", $env.RDPOutputFile) RemoveFile $RDPOutputFile - $x = Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstance $env.RoleInstanceName -OutFile $RDPOutputFile + $x = Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName -OutFile $RDPOutputFile Test-Path $RDPOutputFile | Should be $true $content = Get-Content $RDPOutputFile $content[2].contains($env.RoleInstanceName) | Should be $true diff --git a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 new file mode 100644 index 000000000000..582db2d33349 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzCloudServiceRebuildCloudService')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRebuildCloudService.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzCloudServiceRebuildCloudService' { + It 'RebuildViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'RebuildViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 new file mode 100644 index 000000000000..07cc34da536b --- /dev/null +++ b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance' { + It 'RebuildViaIdentityRoleInstance' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 new file mode 100644 index 000000000000..e0a76282a713 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 @@ -0,0 +1,49 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzCloudServiceWalkCloudServicesUpdateDomain')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzCloudServiceWalkCloudServicesUpdateDomain' { + It 'WalkExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'WalkViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'WalkViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Walk' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'WalkViaIdentityCloudServiceExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'WalkViaIdentityCloudService' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'WalkViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'WalkViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 new file mode 100644 index 000000000000..7e29ee04f3c8 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCloudServiceCloudServicesUpdateDomain')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzCloudServiceCloudServicesUpdateDomain.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzCloudServiceCloudServicesUpdateDomain' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Update' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityCloudServiceExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityCloudService' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 new file mode 100644 index 000000000000..9a98d7315d24 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCloudServiceRoleInstance')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzCloudServiceRoleInstance.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzCloudServiceRoleInstance' { + It 'ReimageViaIdentityRoleInstance' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/CloudService.sln b/src/CloudService/CloudService.sln index 7927f9076b53..397cf0b035db 100644 --- a/src/CloudService/CloudService.sln +++ b/src/CloudService/CloudService.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}") = "CloudService", "CloudService\CloudService.csproj", "{66F605AB-247B-47C6-BB0C-614EBFCD6C1E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{F05DBF05-FEF4-4285-AA6A-9DCFA2AE1F0D}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CloudService.Autorest", "CloudService.Autorest", "{8D56B996-E5C3-5DFA-8212-71CB87FB279F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{82A5F175-27F7-4C10-9468-CD7D0E33BE21}" 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 {57969845-A309-4DCC-8228-AA547E56CCA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {57969845-A309-4DCC-8228-AA547E56CCA8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Debug|x64.ActiveCfg = Debug|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Debug|x64.Build.0 = Debug|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Debug|x86.ActiveCfg = Debug|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Debug|x86.Build.0 = Debug|Any CPU {57969845-A309-4DCC-8228-AA547E56CCA8}.Release|Any CPU.ActiveCfg = Release|Any CPU {57969845-A309-4DCC-8228-AA547E56CCA8}.Release|Any CPU.Build.0 = Release|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Release|x64.ActiveCfg = Release|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Release|x64.Build.0 = Release|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Release|x86.ActiveCfg = Release|Any CPU + {57969845-A309-4DCC-8228-AA547E56CCA8}.Release|x86.Build.0 = Release|Any CPU {B60779AE-95E2-44E7-8669-590A6984B713}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B60779AE-95E2-44E7-8669-590A6984B713}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Debug|x64.ActiveCfg = Debug|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Debug|x64.Build.0 = Debug|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Debug|x86.ActiveCfg = Debug|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Debug|x86.Build.0 = Debug|Any CPU {B60779AE-95E2-44E7-8669-590A6984B713}.Release|Any CPU.ActiveCfg = Release|Any CPU {B60779AE-95E2-44E7-8669-590A6984B713}.Release|Any CPU.Build.0 = Release|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Release|x64.ActiveCfg = Release|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Release|x64.Build.0 = Release|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Release|x86.ActiveCfg = Release|Any CPU + {B60779AE-95E2-44E7-8669-590A6984B713}.Release|x86.Build.0 = Release|Any CPU {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Debug|x64.ActiveCfg = Debug|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Debug|x64.Build.0 = Debug|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Debug|x86.ActiveCfg = Debug|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Debug|x86.Build.0 = Debug|Any CPU {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Release|Any CPU.ActiveCfg = Release|Any CPU {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Release|Any CPU.Build.0 = Release|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Release|x64.ActiveCfg = Release|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Release|x64.Build.0 = Release|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Release|x86.ActiveCfg = Release|Any CPU + {D91E3ECB-5DF9-4CC5-8AFB-880B4078F816}.Release|x86.Build.0 = Release|Any CPU {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Debug|Any CPU.Build.0 = Debug|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Debug|x64.ActiveCfg = Debug|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Debug|x64.Build.0 = Debug|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Debug|x86.ActiveCfg = Debug|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Debug|x86.Build.0 = Debug|Any CPU {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Release|Any CPU.ActiveCfg = Release|Any CPU {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Release|Any CPU.Build.0 = Release|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Release|x64.ActiveCfg = Release|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Release|x64.Build.0 = Release|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Release|x86.ActiveCfg = Release|Any CPU + {68D2827E-8679-4F16-B8F7-011F2DD8EF47}.Release|x86.Build.0 = Release|Any CPU {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Debug|x64.ActiveCfg = Debug|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Debug|x64.Build.0 = Debug|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Debug|x86.ActiveCfg = Debug|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Debug|x86.Build.0 = Debug|Any CPU {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Release|Any CPU.ActiveCfg = Release|Any CPU {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Release|Any CPU.Build.0 = Release|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Release|x64.ActiveCfg = Release|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Release|x64.Build.0 = Release|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Release|x86.ActiveCfg = Release|Any CPU + {A99ED914-A8AE-49E5-A115-D0D4FD5E1926}.Release|x86.Build.0 = Release|Any CPU {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Debug|x64.ActiveCfg = Debug|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Debug|x64.Build.0 = Debug|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Debug|x86.ActiveCfg = Debug|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Debug|x86.Build.0 = Debug|Any CPU {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Release|Any CPU.ActiveCfg = Release|Any CPU {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Release|Any CPU.Build.0 = Release|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Release|x64.ActiveCfg = Release|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Release|x64.Build.0 = Release|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Release|x86.ActiveCfg = Release|Any CPU + {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B}.Release|x86.Build.0 = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Debug|x64.ActiveCfg = Debug|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Debug|x64.Build.0 = Debug|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Debug|x86.ActiveCfg = Debug|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Debug|x86.Build.0 = Debug|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|Any CPU.ActiveCfg = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|Any CPU.Build.0 = Release|Any CPU - {F05DBF05-FEF4-4285-AA6A-9DCFA2AE1F0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F05DBF05-FEF4-4285-AA6A-9DCFA2AE1F0D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F05DBF05-FEF4-4285-AA6A-9DCFA2AE1F0D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F05DBF05-FEF4-4285-AA6A-9DCFA2AE1F0D}.Release|Any CPU.Build.0 = Release|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x64.ActiveCfg = Release|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x64.Build.0 = Release|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.ActiveCfg = Release|Any CPU + {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.Build.0 = Release|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|Any CPU.Build.0 = Debug|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x64.ActiveCfg = Debug|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x64.Build.0 = Debug|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x86.ActiveCfg = Debug|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x86.Build.0 = Debug|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|Any CPU.ActiveCfg = Release|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|Any CPU.Build.0 = Release|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x64.ActiveCfg = Release|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x64.Build.0 = Release|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x86.ActiveCfg = Release|Any CPU + {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {57969845-A309-4DCC-8228-AA547E56CCA8} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} @@ -70,5 +140,6 @@ Global {68D2827E-8679-4F16-B8F7-011F2DD8EF47} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {A99ED914-A8AE-49E5-A115-D0D4FD5E1926} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} + {82A5F175-27F7-4C10-9468-CD7D0E33BE21} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} EndGlobalSection EndGlobal diff --git a/src/CloudService/CloudService/Az.CloudService.psd1 b/src/CloudService/CloudService/Az.CloudService.psd1 index df9b6b7b1f71..e5affb907330 100644 --- a/src/CloudService/CloudService/Az.CloudService.psd1 +++ b/src/CloudService/CloudService/Az.CloudService.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-08-20 # @{ @@ -51,31 +51,35 @@ 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.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'CloudService.Autorest/bin/Az.CloudService.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 = 'CloudService.Autorest\Az.CloudService.format.ps1xml' +FormatsToProcess = 'CloudService.Autorest/Az.CloudService.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('CloudService.Autorest/Az.CloudService.psm1') # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceInstanceView', +FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceCloudServicesUpdateDomain', + 'Get-AzCloudServiceInstanceView', 'Get-AzCloudServiceNetworkInterface', 'Get-AzCloudServiceOSFamily', 'Get-AzCloudServiceOSVersion', 'Get-AzCloudServicePublicIPAddress', 'Get-AzCloudServiceRoleInstance', 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile', 'Get-AzCloudServiceRoleInstanceView', - 'Invoke-AzCloudServiceRebuild', 'Invoke-AzCloudServiceReimage', + 'Invoke-AzCloudServiceRebuild', + 'Invoke-AzCloudServiceRebuildCloudService', + 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance', + 'Invoke-AzCloudServiceReimage', 'Invoke-AzCloudServiceRoleInstanceRebuild', 'Invoke-AzCloudServiceRoleInstanceReimage', 'New-AzCloudService', 'New-AzCloudServiceDiagnosticsExtension', @@ -89,7 +93,9 @@ FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceInstanceView', 'Restart-AzCloudServiceRoleInstance', 'Set-AzCloudServiceUpdateDomain', 'Start-AzCloudService', 'Stop-AzCloudService', 'Switch-AzCloudService', - 'Update-AzCloudService' + 'Update-AzCloudService', + 'Update-AzCloudServiceCloudServicesUpdateDomain', + 'Update-AzCloudServiceRoleInstance' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -115,7 +121,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','CloudService' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'CloudService' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -140,7 +146,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/CloudService/CloudService/help/Az.CloudService.md b/src/CloudService/CloudService/help/Az.CloudService.md index 830d1deba2af..3cde067f163c 100644 --- a/src/CloudService/CloudService/help/Az.CloudService.md +++ b/src/CloudService/CloudService/help/Az.CloudService.md @@ -14,6 +14,11 @@ Microsoft Azure PowerShell: CloudService cmdlets ### [Get-AzCloudService](Get-AzCloudService.md) Display information about a cloud service. +### [Get-AzCloudServiceCloudServicesUpdateDomain](Get-AzCloudServiceCloudServicesUpdateDomain.md) +Gets the specified get domain of a cloud service. +Use nextLink property in the response to get the next page of get domains. +Do this till nextLink is null to fetch all the get domains. + ### [Get-AzCloudServiceInstanceView](Get-AzCloudServiceInstanceView.md) Gets the status of a cloud service. @@ -42,6 +47,14 @@ Retrieves information about the run-time state of a role instance in a cloud ser Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. +### [Invoke-AzCloudServiceRebuildCloudService](Invoke-AzCloudServiceRebuildCloudService.md) +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +### [Invoke-AzCloudServiceRebuildCloudServiceRoleInstance](Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md) +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + ### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -53,29 +66,29 @@ If you do not want to initialize storage resources, you can use Reimage Role Ins The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. ### [New-AzCloudService](New-AzCloudService.md) -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ### [New-AzCloudServiceDiagnosticsExtension](New-AzCloudServiceDiagnosticsExtension.md) Create a in-memory object for Diagnostics Extension ### [New-AzCloudServiceExtensionObject](New-AzCloudServiceExtensionObject.md) -Create a in-memory object for Extension +Create an in-memory object for Extension. ### [New-AzCloudServiceLoadBalancerConfigurationObject](New-AzCloudServiceLoadBalancerConfigurationObject.md) -Create a in-memory object for LoadBalancerConfiguration +Create an in-memory object for LoadBalancerConfiguration. ### [New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject](New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md) -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. ### [New-AzCloudServiceRemoteDesktopExtensionObject](New-AzCloudServiceRemoteDesktopExtensionObject.md) Create a in-memory object for Remote Desktop Extension ### [New-AzCloudServiceRoleProfilePropertiesObject](New-AzCloudServiceRoleProfilePropertiesObject.md) -Create a in-memory object for CloudServiceRoleProfileProperties +Create an in-memory object for CloudServiceRoleProfileProperties. ### [New-AzCloudServiceVaultSecretGroupObject](New-AzCloudServiceVaultSecretGroupObject.md) -Create a in-memory object for Vault Secret Group +Create an in-memory object for CloudServiceVaultSecretGroup. ### [Remove-AzCloudService](Remove-AzCloudService.md) Deletes a cloud service. @@ -90,7 +103,7 @@ Restarts one or more role instances in a cloud service. The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. ### [Set-AzCloudServiceUpdateDomain](Set-AzCloudServiceUpdateDomain.md) -Updates the role instances in the specified update domain. +Walk the role instances in the specified walk domain. ### [Start-AzCloudService](Start-AzCloudService.md) Starts the cloud service. @@ -103,6 +116,12 @@ Note that resources are still attached and you are getting charged for the resou Swaps VIPs between two cloud service (extended support) load balancers. ### [Update-AzCloudService](Update-AzCloudService.md) -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. +### [Update-AzCloudServiceCloudServicesUpdateDomain](Update-AzCloudServiceCloudServicesUpdateDomain.md) +Walk the role instances in the specified walk domain. + +### [Update-AzCloudServiceRoleInstance](Update-AzCloudServiceRoleInstance.md) +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + diff --git a/src/CloudService/CloudService/help/Get-AzCloudService.md b/src/CloudService/CloudService/help/Get-AzCloudService.md index 4067ca697672..968db01721c7 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudService.md +++ b/src/CloudService/CloudService/help/Get-AzCloudService.md @@ -105,7 +105,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -174,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md new file mode 100644 index 000000000000..292db484e2a8 --- /dev/null +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md @@ -0,0 +1,196 @@ +--- +external help file: Az.CloudService-help.xml +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/get-azcloudservicecloudservicesupdatedomain +schema: 2.0.0 +--- + +# Get-AzCloudServiceCloudServicesUpdateDomain + +## SYNOPSIS +Gets the specified get domain of a cloud service. +Use nextLink property in the response to get the next page of get domains. +Do this till nextLink is null to fetch all the get domains. + +## SYNTAX + +### List (Default) +``` +Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName + [-SubscriptionId ] -UpdateDomain [-DefaultProfile ] + [] +``` + +### GetViaIdentityCloudService +``` +Get-AzCloudServiceCloudServicesUpdateDomain -UpdateDomain + -CloudServiceInputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzCloudServiceCloudServicesUpdateDomain -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets the specified get domain of a cloud service. +Use nextLink property in the response to get the next page of get domains. +Do this till nextLink is null to fetch all the get domains. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UpdateDomain +Specifies an integer value that identifies the update domain. +Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +```yaml +Type: System.Int32 +Parameter Sets: Get, GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain + +## NOTES + +## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceInstanceView.md b/src/CloudService/CloudService/help/Get-AzCloudServiceInstanceView.md index a79a4a1a2f21..fd67c537de9c 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceInstanceView.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceInstanceView.md @@ -149,7 +149,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceInstanceView ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceNetworkInterface.md b/src/CloudService/CloudService/help/Get-AzCloudServiceNetworkInterface.md index 458a1d4beee0..e68f99e35723 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceNetworkInterface.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceNetworkInterface.md @@ -33,6 +33,19 @@ Get-AzCloudServiceNetworkInterface -CloudServiceName -Name -Re [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceNetworkInterface -Name -RoleInstanceInputObject + [-Expand ] [-DefaultProfile ] [] +``` + +### GetViaIdentityCloudService +``` +Get-AzCloudServiceNetworkInterface -Name -RoleInstanceName + -CloudServiceInputObject [-Expand ] [-DefaultProfile ] + [] +``` + ### GetViaIdentity ``` Get-AzCloudServiceNetworkInterface -InputObject [-Expand ] @@ -61,6 +74,21 @@ Gets all the network interfaces for a given cloud service object. ## PARAMETERS +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -CloudServiceName The name of the cloud service. @@ -97,7 +125,7 @@ Expands referenced resources. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: Get, GetViaIdentityRoleInstance, GetViaIdentityCloudService, GetViaIdentity Aliases: Required: False @@ -109,7 +137,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -128,7 +155,7 @@ The name of the network interface. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityRoleInstance, GetViaIdentityCloudService Aliases: NetworkInterfaceName Required: True @@ -153,12 +180,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName The name of role instance. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: List, Get, GetViaIdentityCloudService Aliases: Required: True @@ -193,7 +235,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceOSFamily.md b/src/CloudService/CloudService/help/Get-AzCloudServiceOSFamily.md index 1f85ef2f3eda..099058f8a958 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceOSFamily.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceOSFamily.md @@ -24,6 +24,12 @@ Get-AzCloudServiceOSFamily -Location -OSFamilyName [-Subscript [-DefaultProfile ] [] ``` +### GetViaIdentityLocation +``` +Get-AzCloudServiceOSFamily -OSFamilyName -LocationInputObject + [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzCloudServiceOSFamily -InputObject [-DefaultProfile ] @@ -85,7 +91,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -114,12 +119,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -LocationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityLocation +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -OSFamilyName Name of the OS family. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLocation Aliases: Required: True @@ -154,7 +174,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSFamily ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceOSVersion.md b/src/CloudService/CloudService/help/Get-AzCloudServiceOSVersion.md index bff3efb863ba..fd02746f4386 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceOSVersion.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceOSVersion.md @@ -24,6 +24,12 @@ Get-AzCloudServiceOSVersion -Location -OSVersionName [-Subscri [-DefaultProfile ] [] ``` +### GetViaIdentityLocation +``` +Get-AzCloudServiceOSVersion -OSVersionName -LocationInputObject + [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzCloudServiceOSVersion -InputObject [-DefaultProfile ] @@ -85,7 +91,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -114,12 +119,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -LocationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityLocation +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -OSVersionName Name of the OS version. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityLocation Aliases: Required: True @@ -154,7 +174,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSVersion +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSVersion ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/CloudService/help/Get-AzCloudServicePublicIPAddress.md index cd30f04445f9..dca16a0a5688 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServicePublicIPAddress.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServicePublicIPAddress.md @@ -35,6 +35,33 @@ Get-AzCloudServicePublicIPAddress -CloudServiceName -IPConfigurationNam [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServicePublicIPAddress -IPConfigurationName -Name -NetworkInterfaceName + -RoleInstanceInputObject [-Expand ] [-DefaultProfile ] + [] +``` + +### GetViaIdentityNetworkInterface +``` +Get-AzCloudServicePublicIPAddress -IPConfigurationName -Name + -NetworkInterfaceInputObject [-Expand ] [-DefaultProfile ] + [] +``` + +### GetViaIdentityCloudService +``` +Get-AzCloudServicePublicIPAddress -IPConfigurationName -Name -NetworkInterfaceName + -RoleInstanceName -CloudServiceInputObject [-Expand ] + [-DefaultProfile ] [] +``` + +### GetViaIdentityIpconfiguration +``` +Get-AzCloudServicePublicIPAddress -Name -IpconfigurationInputObject + [-Expand ] [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzCloudServicePublicIPAddress -InputObject [-Expand ] @@ -63,6 +90,21 @@ Gets the instance level public IP addresses for a given cloud service object. ## PARAMETERS +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -CloudServiceName The name of the cloud service. @@ -99,7 +141,7 @@ Expands referenced resources. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: Get, GetViaIdentityRoleInstance, GetViaIdentityNetworkInterface, GetViaIdentityCloudService, GetViaIdentityIpconfiguration, GetViaIdentity Aliases: Required: False @@ -111,7 +153,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -125,12 +166,27 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -IpconfigurationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityIpconfiguration +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -IPConfigurationName The name of the IP configuration. ```yaml Type: System.String -Parameter Sets: List1, Get +Parameter Sets: List1, Get, GetViaIdentityRoleInstance, GetViaIdentityNetworkInterface, GetViaIdentityCloudService Aliases: Required: True @@ -145,7 +201,7 @@ The name of the public IP Address. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityRoleInstance, GetViaIdentityNetworkInterface, GetViaIdentityCloudService, GetViaIdentityIpconfiguration Aliases: PublicIPAddressName Required: True @@ -155,12 +211,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NetworkInterfaceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityNetworkInterface +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NetworkInterfaceName The name of the network interface. ```yaml Type: System.String -Parameter Sets: List1, Get +Parameter Sets: List1, Get, GetViaIdentityRoleInstance, GetViaIdentityCloudService Aliases: Required: True @@ -185,12 +256,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName The role instance name. ```yaml Type: System.String -Parameter Sets: List1, Get +Parameter Sets: List1, Get, GetViaIdentityCloudService Aliases: Required: True @@ -225,7 +311,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPublicIPAddress ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstance.md index 83d1a2be826d..e8dfea4d9957 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstance.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstance.md @@ -15,20 +15,26 @@ Gets a role instance from a cloud service. ### List (Default) ``` Get-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName - [-SubscriptionId ] [-Expand ] [-DefaultProfile ] + [-SubscriptionId ] [-Expand ] [-DefaultProfile ] [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject + [-Expand ] [-DefaultProfile ] [] +``` + ### Get ``` Get-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName - -RoleInstanceName [-SubscriptionId ] [-Expand ] - [-DefaultProfile ] [] + -RoleInstanceName [-SubscriptionId ] [-Expand ] [-DefaultProfile ] + [] ``` ### GetViaIdentity ``` -Get-AzCloudServiceRoleInstance -InputObject [-Expand ] +Get-AzCloudServiceRoleInstance -InputObject [-Expand ] [-DefaultProfile ] [] ``` @@ -73,7 +79,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: List, GetViaIdentityRoleInstance, Get Aliases: Required: True @@ -104,7 +110,7 @@ The expand expression to apply to the operation. 'UserData' is not supported for cloud services. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes +Type: System.String Parameter Sets: (All) Aliases: @@ -117,7 +123,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -146,6 +151,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. @@ -186,7 +206,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoleInstance ## NOTES diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md b/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md index 4e4a1e045c4c..36264c5262bc 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md @@ -12,12 +12,20 @@ Gets a remote desktop file for a role instance in a cloud service. ## SYNTAX +### Get (Default) ``` Get-AzCloudServiceRoleInstanceRemoteDesktopFile -CloudServiceName -ResourceGroupName -RoleInstanceName [-SubscriptionId ] -OutFile [-DefaultProfile ] [-PassThru] [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceRoleInstanceRemoteDesktopFile -CloudServiceName + -RoleInstanceInputObject -OutFile [-DefaultProfile ] [-PassThru] + [] +``` + ## DESCRIPTION Gets a remote desktop file for a role instance in a cloud service. @@ -98,7 +106,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -108,12 +116,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -129,7 +152,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: False @@ -144,6 +167,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + ## OUTPUTS ### System.Boolean diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceView.md b/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceView.md index 8d7e16f91486..c327a3b13dc6 100644 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceView.md +++ b/src/CloudService/CloudService/help/Get-AzCloudServiceRoleInstanceView.md @@ -12,12 +12,19 @@ Retrieves information about the run-time state of a role instance in a cloud ser ## SYNTAX +### Get (Default) ``` Get-AzCloudServiceRoleInstanceView -CloudServiceName -ResourceGroupName -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetViaIdentityRoleInstance +``` +Get-AzCloudServiceRoleInstanceView -CloudServiceName -RoleInstanceInputObject + [-DefaultProfile ] [] +``` + ## DESCRIPTION Retrieves information about the run-time state of a role instance in a cloud service. @@ -74,7 +81,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -84,12 +91,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: True @@ -105,7 +127,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get Aliases: Required: False @@ -120,9 +142,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstanceView +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoleInstanceView ## NOTES diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md index 00470532b8dd..bde526ec404e 100644 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md @@ -16,13 +16,13 @@ If you do not want to initialize storage resources, you can use Reimage Role Ins ### RebuildExpanded (Default) ``` Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName [-SubscriptionId ] - -RoleInstance [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### RebuildViaIdentityExpanded ``` -Invoke-AzCloudServiceRebuild -InputObject -RoleInstance +Invoke-AzCloudServiceRebuild -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -98,7 +98,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -166,7 +165,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md new file mode 100644 index 000000000000..cd9521de754e --- /dev/null +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md @@ -0,0 +1,239 @@ +--- +external help file: Az.CloudService-help.xml +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudservice +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRebuildCloudService + +## SYNOPSIS +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +## SYNTAX + +### RebuildViaJsonFilePath (Default) +``` +Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### RebuildViaJsonString +``` +Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md new file mode 100644 index 000000000000..c88372190230 --- /dev/null +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md @@ -0,0 +1,187 @@ +--- +external help file: Az.CloudService-help.xml +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudserviceroleinstance +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRebuildCloudServiceRoleInstance + +## SYNOPSIS +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +## SYNTAX + +``` +Invoke-AzCloudServiceRebuildCloudServiceRoleInstance -CloudServiceName + -RoleInstanceInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceReimage.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceReimage.md index 5262fed4f993..9ca7a7ff41c0 100644 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceReimage.md +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceReimage.md @@ -15,13 +15,13 @@ Reimage asynchronous operation reinstalls the operating system on instances of w ### ReimageExpanded (Default) ``` Invoke-AzCloudServiceReimage -Name -ResourceGroupName [-SubscriptionId ] - -RoleInstance [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### ReimageViaIdentityExpanded ``` -Invoke-AzCloudServiceReimage -InputObject -RoleInstance +Invoke-AzCloudServiceReimage -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -81,7 +81,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -164,7 +163,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md index 32545a33f3dd..8cf550ddee55 100644 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -89,7 +89,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md index 0dd7ae59d7e2..0027637f8b09 100644 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService/help/New-AzCloudService.md b/src/CloudService/CloudService/help/New-AzCloudService.md index 5032686155a9..c0e507ac0896 100644 --- a/src/CloudService/CloudService/help/New-AzCloudService.md +++ b/src/CloudService/CloudService/help/New-AzCloudService.md @@ -8,42 +8,55 @@ schema: 2.0.0 # New-AzCloudService ## SYNOPSIS -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ## SYNTAX ### CreateExpanded (Default) ``` -New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] -Location - [-AllowModelOverride] [-Configuration ] [-ConfigurationUrl ] - [-ExtensionProfile ] [-NetworkProfile ] - [-OSProfile ] [-PackageUrl ] [-RoleProfile ] - [-StartCloudService] [-Tag ] [-UpgradeMode ] [-Zone ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] +New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] [-AllowModelOverride] + [-Configuration ] [-ConfigurationUrl ] [-ExtensionProfile ] + [-Location ] [-NetworkProfile ] [-OSProfile ] + [-PackageUrl ] [-RoleProfile ] [-StartCloudService] [-Tag ] + [-UpgradeMode ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### quickCreateParameterSetWithoutStorage ``` -New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] -Location - [-ExtensionProfile ] -PackageUrl [-StartCloudService] - [-Tag ] [-UpgradeMode ] -ConfigurationFile +New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-ExtensionProfile ] -Location -PackageUrl + [-StartCloudService] [-Tag ] [-UpgradeMode ] -ConfigurationFile -DefinitionFile [-DnsName ] [-KeyVaultName ] [-WhatIf] [-Confirm] [] ``` ### quickCreateParameterSetWithStorage ``` -New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] -Location - [-ExtensionProfile ] [-StartCloudService] [-Tag ] - [-UpgradeMode ] -ConfigurationFile -DefinitionFile - -PackageFile -StorageAccount [-DnsName ] [-KeyVaultName ] +New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-ExtensionProfile ] -Location [-StartCloudService] [-Tag ] + [-UpgradeMode ] -ConfigurationFile -DefinitionFile -PackageFile + -StorageAccount [-DnsName ] [-KeyVaultName ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] -JsonString + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ## EXAMPLES @@ -265,7 +278,7 @@ Run the command as a job ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -327,7 +340,7 @@ Use the SubscriptionId parameter when available if executing the cmdlet against ```yaml Type: System.Management.Automation.PSObject -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: AzureRMContext, AzureCredential Required: False @@ -369,11 +382,10 @@ Accept wildcard characters: False ### -ExtensionProfile Describes a cloud service extension profile. -To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceExtensionProfile -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceExtensionProfile +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -383,6 +395,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 +``` + ### -KeyVaultName Name of the KeyVault to be used for the CloudService resource. @@ -403,7 +445,19 @@ Resource location. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +```yaml +Type: System.String +Parameter Sets: quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: True @@ -430,10 +484,9 @@ Accept wildcard characters: False ### -NetworkProfile Network Profile for the cloud service. -To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceNetworkProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceNetworkProfile Parameter Sets: CreateExpanded Aliases: @@ -449,7 +502,7 @@ Run the command asynchronously ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -461,10 +514,9 @@ Accept wildcard characters: False ### -OSProfile Describes the OS profile for the cloud service. -To construct, see NOTES section for OSPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceOSProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceOSProfile Parameter Sets: CreateExpanded Aliases: @@ -536,10 +588,9 @@ Accept wildcard characters: False ### -RoleProfile Describes the role profile for the cloud service. -To construct, see NOTES section for ROLEPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceRoleProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfile Parameter Sets: CreateExpanded Aliases: @@ -558,7 +609,7 @@ A deployed service still incurs charges, even if it is poweredoff. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -604,7 +655,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -622,8 +673,8 @@ If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded, quickCreateParameterSetWithoutStorage, quickCreateParameterSetWithStorage Aliases: Required: False @@ -688,7 +739,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md b/src/CloudService/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md index 3a5c1db9b601..632a7235fa3a 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md @@ -195,7 +195,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceExtensionObject.md b/src/CloudService/CloudService/help/New-AzCloudServiceExtensionObject.md index 1240a3dd43db..db19f0230c7f 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceExtensionObject.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceExtensionObject.md @@ -1,25 +1,26 @@ --- external help file: Az.CloudService-help.xml Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceextensionobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceextensionobject schema: 2.0.0 --- # New-AzCloudServiceExtensionObject ## SYNOPSIS -Create a in-memory object for Extension +Create an in-memory object for Extension. ## SYNTAX ``` -New-AzCloudServiceExtensionObject [-AutoUpgradeMinorVersion ] [-Name ] - [-ProtectedSetting ] [-Publisher ] [-RolesAppliedTo ] [-Setting ] +New-AzCloudServiceExtensionObject [-AutoUpgradeMinorVersion ] [-ForceUpdateTag ] + [-Name ] [-ProtectedSetting ] [-ProtectedSettingFromKeyVaultSecretUrl ] + [-Publisher ] [-RolesAppliedTo ] [-Setting ] [-SourceVaultId ] [-Type ] [-TypeHandlerVersion ] [] ``` ## DESCRIPTION -Create a in-memory object for Extension +Create an in-memory object for Extension. ## EXAMPLES @@ -34,7 +35,7 @@ For more details see New-AzCloudService. ## PARAMETERS ### -AutoUpgradeMinorVersion -Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available. +Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. ```yaml Type: System.Boolean @@ -48,8 +49,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ForceUpdateTag +Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name -Name. +The name of the extension. ```yaml Type: System.String @@ -64,7 +84,22 @@ Accept wildcard characters: False ``` ### -ProtectedSetting -Protected settings for the extension which are encrypted before sent to the VM. +Protected settings for the extension which are encrypted before sent to the role instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProtectedSettingFromKeyVaultSecretUrl +Secret URL which contains the protected settings of the extension. ```yaml Type: System.String @@ -79,7 +114,7 @@ Accept wildcard characters: False ``` ### -Publisher -Publisher. +The name of the extension handler publisher. ```yaml Type: System.String @@ -94,7 +129,8 @@ Accept wildcard characters: False ``` ### -RolesAppliedTo -RolesAppliedTo. +Optional list of roles to apply this extension. +If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. ```yaml Type: System.String[] @@ -110,6 +146,23 @@ Accept wildcard characters: False ### -Setting Public settings for the extension. +For JSON extensions, this is the JSON settings for the extension. +For XML Extension (like RDP), this is the XML setting for the extension. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceVaultId +Resource Id. ```yaml Type: System.String @@ -124,7 +177,7 @@ Accept wildcard characters: False ``` ### -Type -Type. +Specifies the type of the extension. ```yaml Type: System.String @@ -139,7 +192,12 @@ Accept wildcard characters: False ``` ### -TypeHandlerVersion -TypeHandlerVersion. +Specifies the version of the extension. +Specifies the version of the extension. +If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. +If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. +If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. +If a version is specified, an auto-upgrade is performed on the role instance. ```yaml Type: System.String @@ -160,7 +218,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md b/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md index cea2c86c4269..64ef08e2a2af 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md @@ -1,25 +1,25 @@ --- external help file: Az.CloudService-help.xml Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceloadbalancerconfigurationobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceloadbalancerconfigurationobject schema: 2.0.0 --- # New-AzCloudServiceLoadBalancerConfigurationObject ## SYNOPSIS -Create a in-memory object for LoadBalancerConfiguration +Create an in-memory object for LoadBalancerConfiguration. ## SYNTAX ``` New-AzCloudServiceLoadBalancerConfigurationObject - [-FrontendIPConfiguration ] [-Name ] + -FrontendIPConfiguration -Name [-Id ] [] ``` ## DESCRIPTION -Create a in-memory object for LoadBalancerConfiguration +Create an in-memory object for LoadBalancerConfiguration. ## EXAMPLES @@ -36,11 +36,27 @@ For more details see New-AzCloudService. ## PARAMETERS ### -FrontendIPConfiguration -FrontendIPConfiguration. -To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. +Specifies the frontend IP to be used for the load balancer. +Only IPv4 frontend IP address is supported. +Each load balancer configuration must have exactly one frontend IP configuration. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ILoadBalancerFrontendIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerFrontendIPConfiguration[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Resource Id. + +```yaml +Type: System.String Parameter Sets: (All) Aliases: @@ -52,14 +68,14 @@ Accept wildcard characters: False ``` ### -Name -Name of LoadBalancerConfiguration. +The name of the Load balancer. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -73,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerConfiguration ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md b/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md index 5ee335c8f811..53bfa18ba00e 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md @@ -1,31 +1,31 @@ --- external help file: Az.CloudService-help.xml Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceloadbalancerfrontendipconfigurationobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceloadbalancerfrontendipconfigurationobject schema: 2.0.0 --- # New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject ## SYNOPSIS -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. ## SYNTAX ### DefaultParameterSet (Default) ``` -New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject [-Name ] [-PublicIPAddressId ] +New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name [-PublicIPAddressId ] [] ``` ### PrivateIP ``` -New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject [-Name ] [-PrivateIPAddress ] +New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name [-PrivateIPAddress ] [-SubnetId ] [] ``` ## DESCRIPTION -Create a in-memory object for LoadBalancerFrontendIPConfiguration +Create an in-memory object for LoadBalancerFrontendIPConfiguration. ## EXAMPLES @@ -52,14 +52,15 @@ This command creates load balancer frontend IP configuration object with a Priva ## PARAMETERS ### -Name -Name of FrontendIpConfiguration. +The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. +This name can be used to access the resource. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -67,7 +68,7 @@ Accept wildcard characters: False ``` ### -PrivateIPAddress -Private IP Address +The virtual network private IP address of the IP configuration. ```yaml Type: System.String @@ -97,7 +98,7 @@ Accept wildcard characters: False ``` ### -SubnetId -Subnet ID +Resource Id. ```yaml Type: System.String @@ -118,7 +119,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerFrontendIPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.LoadBalancerFrontendIPConfiguration ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md b/src/CloudService/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md index 1743982e93ed..93406a0b76c1 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md b/src/CloudService/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md index b9c2c3412ae6..1271daf4c053 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md @@ -1,14 +1,14 @@ --- external help file: Az.CloudService-help.xml Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceroleprofilepropertiesobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudserviceroleprofilepropertiesobject schema: 2.0.0 --- # New-AzCloudServiceRoleProfilePropertiesObject ## SYNOPSIS -Create a in-memory object for CloudServiceRoleProfileProperties +Create an in-memory object for CloudServiceRoleProfileProperties. ## SYNTAX @@ -18,7 +18,7 @@ New-AzCloudServiceRoleProfilePropertiesObject [-Name ] [-SkuCapacity \
**Standard** \
\
**Basic**. ```yaml Type: System.String @@ -99,7 +101,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceRoleProfileProperties +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceRoleProfileProperties ## NOTES diff --git a/src/CloudService/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md b/src/CloudService/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md index e2c0226d2635..5502cdb3ed16 100644 --- a/src/CloudService/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md +++ b/src/CloudService/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md @@ -1,14 +1,14 @@ --- external help file: Az.CloudService-help.xml Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/new-azcloudservicevaultsecretgroupobject +online version: https://learn.microsoft.com/powershell/module/Az.CloudService/new-azcloudservicevaultsecretgroupobject schema: 2.0.0 --- # New-AzCloudServiceVaultSecretGroupObject ## SYNOPSIS -Create a in-memory object for Vault Secret Group +Create an in-memory object for CloudServiceVaultSecretGroup. ## SYNTAX @@ -18,7 +18,7 @@ New-AzCloudServiceVaultSecretGroupObject [-Id ] [-CertificateUrl -ResourceGroupName - [-SubscriptionId ] -RoleInstance [-DefaultProfile ] [-AsJob] [-NoWait] + [-SubscriptionId ] [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaJsonString +``` +Remove-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### DeleteViaJsonFilePath +``` +Remove-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ### DeleteViaIdentityExpanded ``` -Remove-AzCloudServiceRoleInstance -InputObject -RoleInstance +Remove-AzCloudServiceRoleInstance -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -60,7 +74,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: DeleteExpanded +Parameter Sets: DeleteExpanded, DeleteViaJsonString, DeleteViaJsonFilePath Aliases: Required: True @@ -88,7 +102,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -102,6 +115,36 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Delete operation + +```yaml +Type: System.String +Parameter Sets: DeleteViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Delete operation + +```yaml +Type: System.String +Parameter Sets: DeleteViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -137,7 +180,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: DeleteExpanded +Parameter Sets: DeleteExpanded, DeleteViaJsonString, DeleteViaJsonFilePath Aliases: Required: True @@ -153,10 +196,10 @@ Value of '*' will signify all role instances of the cloud service. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: DeleteExpanded, DeleteViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -169,7 +212,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: DeleteExpanded +Parameter Sets: DeleteExpanded, DeleteViaJsonString, DeleteViaJsonFilePath Aliases: Required: False diff --git a/src/CloudService/CloudService/help/Restart-AzCloudService.md b/src/CloudService/CloudService/help/Restart-AzCloudService.md index 2b644f59d180..d9e8efd9279b 100644 --- a/src/CloudService/CloudService/help/Restart-AzCloudService.md +++ b/src/CloudService/CloudService/help/Restart-AzCloudService.md @@ -15,13 +15,27 @@ Restarts one or more role instances in a cloud service. ### RestartExpanded (Default) ``` Restart-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] - -RoleInstance [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### RestartViaJsonString +``` +Restart-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### RestartViaJsonFilePath +``` +Restart-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### RestartViaIdentityExpanded ``` -Restart-AzCloudService -InputObject -RoleInstance +Restart-AzCloudService -InputObject [-RoleInstance ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -81,7 +95,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -95,12 +108,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the cloud service. ```yaml Type: System.String -Parameter Sets: RestartExpanded +Parameter Sets: RestartExpanded, RestartViaJsonString, RestartViaJsonFilePath Aliases: CloudServiceName Required: True @@ -145,7 +188,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: RestartExpanded +Parameter Sets: RestartExpanded, RestartViaJsonString, RestartViaJsonFilePath Aliases: Required: True @@ -161,10 +204,10 @@ Value of '*' will signify all role instances of the cloud service. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: RestartExpanded, RestartViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -177,7 +220,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: RestartExpanded +Parameter Sets: RestartExpanded, RestartViaJsonString, RestartViaJsonFilePath Aliases: Required: False diff --git a/src/CloudService/CloudService/help/Restart-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService/help/Restart-AzCloudServiceRoleInstance.md index cf6b6190ad34..e5bbf90f6b52 100644 --- a/src/CloudService/CloudService/help/Restart-AzCloudServiceRoleInstance.md +++ b/src/CloudService/CloudService/help/Restart-AzCloudServiceRoleInstance.md @@ -19,6 +19,13 @@ Restart-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName [-PassThru] [-WhatIf] [-Confirm] [] ``` +### RestartViaIdentityRoleInstance +``` +Restart-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ### RestartViaIdentity ``` Restart-AzCloudServiceRoleInstance -InputObject [-DefaultProfile ] [-AsJob] @@ -59,7 +66,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: Restart +Parameter Sets: Restart, RestartViaIdentityRoleInstance Aliases: Required: True @@ -87,7 +94,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity @@ -146,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RestartViaIdentityRoleInstance +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -RoleInstanceName Name of the role instance. diff --git a/src/CloudService/CloudService/help/Set-AzCloudServiceUpdateDomain.md b/src/CloudService/CloudService/help/Set-AzCloudServiceUpdateDomain.md index fadb977d136f..508286720c51 100644 --- a/src/CloudService/CloudService/help/Set-AzCloudServiceUpdateDomain.md +++ b/src/CloudService/CloudService/help/Set-AzCloudServiceUpdateDomain.md @@ -8,18 +8,33 @@ schema: 2.0.0 # Set-AzCloudServiceUpdateDomain ## SYNOPSIS -Updates the role instances in the specified update domain. +Walk the role instances in the specified walk domain. ## SYNTAX +### WalkExpanded (Default) ``` Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### WalkViaJsonFilePath +``` +Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### WalkViaJsonString +``` +Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Updates the role instances in the specified update domain. +Walk the role instances in the specified walk domain. ## EXAMPLES @@ -78,6 +93,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Walk operation + +```yaml +Type: System.String +Parameter Sets: WalkViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Walk operation + +```yaml +Type: System.String +Parameter Sets: WalkViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously diff --git a/src/CloudService/CloudService/help/Start-AzCloudService.md b/src/CloudService/CloudService/help/Start-AzCloudService.md index bcd5c5c0e8ba..6354a86b5f80 100644 --- a/src/CloudService/CloudService/help/Start-AzCloudService.md +++ b/src/CloudService/CloudService/help/Start-AzCloudService.md @@ -72,7 +72,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService/help/Stop-AzCloudService.md b/src/CloudService/CloudService/help/Stop-AzCloudService.md index da67fc45a24e..b84d3a0d6e14 100644 --- a/src/CloudService/CloudService/help/Stop-AzCloudService.md +++ b/src/CloudService/CloudService/help/Stop-AzCloudService.md @@ -74,7 +74,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity diff --git a/src/CloudService/CloudService/help/Switch-AzCloudService.md b/src/CloudService/CloudService/help/Switch-AzCloudService.md index b9f38b52349c..cb64a0b42d77 100644 --- a/src/CloudService/CloudService/help/Switch-AzCloudService.md +++ b/src/CloudService/CloudService/help/Switch-AzCloudService.md @@ -80,10 +80,9 @@ Accept wildcard characters: False ``` ### -CloudService -To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudService +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudService Parameter Sets: CloudService Aliases: diff --git a/src/CloudService/CloudService/help/Update-AzCloudService.md b/src/CloudService/CloudService/help/Update-AzCloudService.md index ad8e8cbeca40..50de2453a9f7 100644 --- a/src/CloudService/CloudService/help/Update-AzCloudService.md +++ b/src/CloudService/CloudService/help/Update-AzCloudService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzCloudService ## SYNOPSIS -Create or update a cloud service. +Create a cloud service. Please note some properties can be set only during cloud service creation. ## SYNTAX @@ -20,7 +20,7 @@ Update-AzCloudService -InputObject -Parameter -ResourceGroupName + [-SubscriptionId ] -UpdateDomain [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### Update +``` +Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName + [-SubscriptionId ] -UpdateDomain -Parameter [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityCloudServiceExpanded +``` +Update-AzCloudServiceCloudServicesUpdateDomain -UpdateDomain + -CloudServiceInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityCloudService +``` +Update-AzCloudServiceCloudServicesUpdateDomain -UpdateDomain + -CloudServiceInputObject -Parameter [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzCloudServiceCloudServicesUpdateDomain -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### UpdateViaIdentity +``` +Update-AzCloudServiceCloudServicesUpdateDomain -InputObject -Parameter + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Walk the role instances in the specified walk domain. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: UpdateViaIdentityCloudServiceExpanded, UpdateViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, Update +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +Defines an update domain for the cloud service. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain +Parameter Sets: Update, UpdateViaIdentityCloudService, UpdateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, Update +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, Update +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UpdateDomain +Specifies an integer value that identifies the update domain. +Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +```yaml +Type: System.Int32 +Parameter Sets: UpdateExpanded, Update, UpdateViaIdentityCloudServiceExpanded, UpdateViaIdentityCloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain + +## NOTES + +## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..c6b6da87a8c7 --- /dev/null +++ b/src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md @@ -0,0 +1,185 @@ +--- +external help file: Az.CloudService-help.xml +Module Name: Az.CloudService +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/update-azcloudserviceroleinstance +schema: 2.0.0 +--- + +# Update-AzCloudServiceRoleInstance + +## SYNOPSIS +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## SYNTAX + +``` +Update-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS From d62bbbabca6e588282d94ea4ef758e816bb84fd4 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 21 Aug 2025 15:04:55 +0800 Subject: [PATCH 2/8] update --- .../CloudService.Autorest/README.md | 10 +- .../cloudServices-roleInstances.json | 43 --- .../cloudServices-updateDomains.json | 52 --- .../docs/Az.CloudService.md | 19 -- ...AzCloudServiceCloudServicesUpdateDomain.md | 194 ----------- ...dServiceRebuildCloudServiceRoleInstance.md | 188 ----------- ...nvoke-AzCloudServiceRoleInstanceRebuild.md | 226 ------------- ...AzCloudServiceCloudServicesUpdateDomain.md | 299 ----------------- .../docs/Update-AzCloudServiceRoleInstance.md | 185 ----------- ...AzCloudServiceCloudServicesUpdateDomain.md | 22 -- ...dServiceRebuildCloudServiceRoleInstance.md | 22 -- ...nvoke-AzCloudServiceRoleInstanceRebuild.md | 7 - ...AzCloudServiceCloudServicesUpdateDomain.md | 22 -- .../Update-AzCloudServiceRoleInstance.md | 22 -- .../CloudService.Autorest/generate-info.json | 2 +- src/CloudService/CloudService.sln | 28 +- .../CloudService/Az.CloudService.psd1 | 11 +- .../CloudService/help/Az.CloudService.md | 19 -- ...AzCloudServiceCloudServicesUpdateDomain.md | 196 ------------ ...dServiceRebuildCloudServiceRoleInstance.md | 187 ----------- ...nvoke-AzCloudServiceRoleInstanceRebuild.md | 225 ------------- ...AzCloudServiceCloudServicesUpdateDomain.md | 300 ------------------ .../help/Update-AzCloudServiceRoleInstance.md | 185 ----------- 23 files changed, 23 insertions(+), 2441 deletions(-) delete mode 100644 src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json delete mode 100644 src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md delete mode 100644 src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md delete mode 100644 src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md delete mode 100644 src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceCloudServicesUpdateDomain.md delete mode 100644 src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md delete mode 100644 src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md delete mode 100644 src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md delete mode 100644 src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md delete mode 100644 src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md delete mode 100644 src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md delete mode 100644 src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md delete mode 100644 src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md delete mode 100644 src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md delete mode 100644 src/CloudService/CloudService/help/Update-AzCloudServiceCloudServicesUpdateDomain.md delete mode 100644 src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md diff --git a/src/CloudService/CloudService.Autorest/README.md b/src/CloudService/CloudService.Autorest/README.md index 91520ceb45b3..9b842590ca4f 100644 --- a/src/CloudService/CloudService.Autorest/README.md +++ b/src/CloudService/CloudService.Autorest/README.md @@ -65,8 +65,8 @@ directive: set: subject: CloudServiceOSVersion - where: - variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$|^Rebuild$|^RebuildViaIdentity$ - subject: ^CloudService$|^RebuildCloudService$ + variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$|^Rebuild$|^RebuildViaIdentity$|^RebuildViaJsonFilePathViaJsonFilePath$|^RebuildViaJsonStringViaJsonString$|^RebuildViaIdentityRoleInstance$ + subject: ^CloudService$|^RebuildCloudService$|^RebuildCloudServiceRoleInstance$ remove: true - where: @@ -94,8 +94,8 @@ directive: subject: RoleInstanceRebuild - where: - subject: ^CloudServiceUpdateDomain$ - verb: Get + subject: ^CloudServicesUpdateDomain$ + verb: Get|Update remove: true - where: subject: ^WalkCloudServicesUpdateDomain$ @@ -113,7 +113,7 @@ directive: remove: true - where: subject: ^CloudServiceRoleInstance$ - verb: Remove + verb: Remove|Update remove: true - where: variant: ^Delete$|^DeleteViaIdentity$ diff --git a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json index 7ca8d9b52822..191e7e44c522 100644 --- a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json +++ b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json @@ -48,49 +48,6 @@ } ] }, - { - "name": "Invoke-AzCloudServiceRoleInstanceRebuild", - "description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.\nIf you do not want to initialize storage resources, you can use Reimage Role Instance.", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild" - }, - "parameterSets": [ - { - "parameters": [ - "-CloudServiceName ", - "-ResourceGroupName ", - "-RoleInstanceName ", - "[-SubscriptionId ]" - ] - } - ] - }, - "examples": [ - { - "description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.", - "parameters": [ - { - "name": "-CloudServiceName", - "value": "[Path.cloudServiceName]" - }, - { - "name": "-ResourceGroupName", - "value": "[Path.resourceGroupName]" - }, - { - "name": "-RoleInstanceName", - "value": "[Path.roleInstanceName]" - }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - } - ] - } - ] - }, { "name": "Invoke-AzCloudServiceRoleInstanceReimage", "description": "The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.", diff --git a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json deleted file mode 100644 index b66a8803974b..000000000000 --- a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-updateDomains.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "resourceType": "cloudServices/updateDomains", - "apiVersion": "2022-09-04", - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.cloudservice" - }, - "commands": [ - { - "name": "Get-AzCloudServiceCloudServicesUpdateDomain", - "description": "Gets the specified get domain of a cloud service.\nUse nextLink property in the response to get the next page of get domains.\nDo this till nextLink is null to fetch all the get domains.", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.cloudservice/get-azcloudservicecloudservicesupdatedomain" - }, - "parameterSets": [ - { - "parameters": [ - "-CloudServiceName ", - "-ResourceGroupName ", - "[-SubscriptionId ]", - "-UpdateDomain " - ] - } - ] - }, - "examples": [ - { - "description": "Gets the specified get domain of a cloud service. Use nextLink property in the response to get the next page of get domains. Do this till nextLink is null to fetch all the get domains.", - "parameters": [ - { - "name": "-CloudServiceName", - "value": "[Path.cloudServiceName]" - }, - { - "name": "-ResourceGroupName", - "value": "[Path.resourceGroupName]" - }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - }, - { - "name": "-UpdateDomain", - "value": "[Path.updateDomain]" - } - ] - } - ] - } - ] -} diff --git a/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md b/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md index 739c7fed6837..60c98795b773 100644 --- a/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md @@ -14,11 +14,6 @@ Microsoft Azure PowerShell: CloudService cmdlets ### [Get-AzCloudService](Get-AzCloudService.md) Display information about a cloud service. -### [Get-AzCloudServiceCloudServicesUpdateDomain](Get-AzCloudServiceCloudServicesUpdateDomain.md) -Gets the specified get domain of a cloud service. -Use nextLink property in the response to get the next page of get domains. -Do this till nextLink is null to fetch all the get domains. - ### [Get-AzCloudServiceInstanceView](Get-AzCloudServiceInstanceView.md) Gets the status of a cloud service. @@ -51,17 +46,9 @@ If you do not want to initialize storage resources, you can use Reimage Role Ins Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. -### [Invoke-AzCloudServiceRebuildCloudServiceRoleInstance](Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md) -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - ### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. -### [Invoke-AzCloudServiceRoleInstanceRebuild](Invoke-AzCloudServiceRoleInstanceRebuild.md) -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - ### [Invoke-AzCloudServiceRoleInstanceReimage](Invoke-AzCloudServiceRoleInstanceReimage.md) The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -119,9 +106,3 @@ Swaps VIPs between two cloud service (extended support) load balancers. Create a cloud service. Please note some properties can be set only during cloud service creation. -### [Update-AzCloudServiceCloudServicesUpdateDomain](Update-AzCloudServiceCloudServicesUpdateDomain.md) -Walk the role instances in the specified walk domain. - -### [Update-AzCloudServiceRoleInstance](Update-AzCloudServiceRoleInstance.md) -The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. - diff --git a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md deleted file mode 100644 index fbb2d6842f71..000000000000 --- a/src/CloudService/CloudService.Autorest/docs/Get-AzCloudServiceCloudServicesUpdateDomain.md +++ /dev/null @@ -1,194 +0,0 @@ ---- -external help file: -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/get-azcloudservicecloudservicesupdatedomain -schema: 2.0.0 ---- - -# Get-AzCloudServiceCloudServicesUpdateDomain - -## SYNOPSIS -Gets the specified get domain of a cloud service. -Use nextLink property in the response to get the next page of get domains. -Do this till nextLink is null to fetch all the get domains. - -## SYNTAX - -### List (Default) -``` -Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - -UpdateDomain [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzCloudServiceCloudServicesUpdateDomain -InputObject [-DefaultProfile ] - [] -``` - -### GetViaIdentityCloudService -``` -Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceInputObject - -UpdateDomain [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets the specified get domain of a cloud service. -Use nextLink property in the response to get the next page of get domains. -Do this till nextLink is null to fetch all the get domains. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -CloudServiceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: GetViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the resource group. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String[] -Parameter Sets: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UpdateDomain -Specifies an integer value that identifies the update domain. -Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. - -```yaml -Type: System.Int32 -Parameter Sets: Get, GetViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain - -## NOTES - -## RELATED LINKS - diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md deleted file mode 100644 index 5e8dcfcbc1b8..000000000000 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md +++ /dev/null @@ -1,188 +0,0 @@ ---- -external help file: -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudserviceroleinstance -schema: 2.0.0 ---- - -# Invoke-AzCloudServiceRebuildCloudServiceRoleInstance - -## SYNOPSIS -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## SYNTAX - -``` -Invoke-AzCloudServiceRebuildCloudServiceRoleInstance -CloudServiceName - -RoleInstanceInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RoleInstanceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS - diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md deleted file mode 100644 index 96b942819999..000000000000 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md +++ /dev/null @@ -1,226 +0,0 @@ ---- -external help file: -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild -schema: 2.0.0 ---- - -# Invoke-AzCloudServiceRoleInstanceRebuild - -## SYNOPSIS -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## SYNTAX - -### Rebuild (Default) -``` -Invoke-AzCloudServiceRoleInstanceRebuild -CloudServiceName -ResourceGroupName - -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### RebuildViaIdentity -``` -Invoke-AzCloudServiceRoleInstanceRebuild -InputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## EXAMPLES - -### Example 1: Rebuild role instance of a cloud service -```powershell -Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -``` - -This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: RebuildViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the resource group. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RoleInstanceName -Name of the role instance. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS - diff --git a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceCloudServicesUpdateDomain.md deleted file mode 100644 index 7e10398a439e..000000000000 --- a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceCloudServicesUpdateDomain.md +++ /dev/null @@ -1,299 +0,0 @@ ---- -external help file: -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/update-azcloudservicecloudservicesupdatedomain -schema: 2.0.0 ---- - -# Update-AzCloudServiceCloudServicesUpdateDomain - -## SYNOPSIS -Walk the role instances in the specified walk domain. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - -UpdateDomain [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] -``` - -### Update -``` -Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - -UpdateDomain -Parameter [-SubscriptionId ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentity -``` -Update-AzCloudServiceCloudServicesUpdateDomain -InputObject -Parameter - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityCloudService -``` -Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceInputObject - -UpdateDomain -Parameter [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityCloudServiceExpanded -``` -Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceInputObject - -UpdateDomain [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzCloudServiceCloudServicesUpdateDomain -InputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Walk the role instances in the specified walk domain. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: UpdateViaIdentityCloudService, UpdateViaIdentityCloudServiceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: Update, UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: UpdateViaIdentity, UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Parameter -Defines an update domain for the cloud service. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain -Parameter Sets: Update, UpdateViaIdentity, UpdateViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the resource group. - -```yaml -Type: System.String -Parameter Sets: Update, UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String -Parameter Sets: Update, UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UpdateDomain -Specifies an integer value that identifies the update domain. -Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. - -```yaml -Type: System.Int32 -Parameter Sets: Update, UpdateExpanded, UpdateViaIdentityCloudService, UpdateViaIdentityCloudServiceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain - -## NOTES - -## RELATED LINKS - diff --git a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md deleted file mode 100644 index a3496fa9d79e..000000000000 --- a/src/CloudService/CloudService.Autorest/docs/Update-AzCloudServiceRoleInstance.md +++ /dev/null @@ -1,185 +0,0 @@ ---- -external help file: -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/update-azcloudserviceroleinstance -schema: 2.0.0 ---- - -# Update-AzCloudServiceRoleInstance - -## SYNOPSIS -The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. - -## SYNTAX - -``` -Update-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RoleInstanceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS - diff --git a/src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/CloudService/CloudService.Autorest/examples/Get-AzCloudServiceCloudServicesUpdateDomain.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md deleted file mode 100644 index 4b12ec6caf61..000000000000 --- a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md +++ /dev/null @@ -1,7 +0,0 @@ -### Example 1: Rebuild role instance of a cloud service - -```powershell -Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -``` - -This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceCloudServicesUpdateDomain.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/CloudService/CloudService.Autorest/examples/Update-AzCloudServiceRoleInstance.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/CloudService/CloudService.Autorest/generate-info.json b/src/CloudService/CloudService.Autorest/generate-info.json index 8fcfeda41af0..df3aa6fac664 100644 --- a/src/CloudService/CloudService.Autorest/generate-info.json +++ b/src/CloudService/CloudService.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "7aa0f70f-1a28-42a9-b2f6-3e5ad8dfcbcd" + "generate_Id": "6544f129-fdb4-4172-b7d7-bb378b037e67" } diff --git a/src/CloudService/CloudService.sln b/src/CloudService/CloudService.sln index 397cf0b035db..8c2aee2a470f 100644 --- a/src/CloudService/CloudService.sln +++ b/src/CloudService/CloudService.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudService", "CloudServic EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CloudService.Autorest", "CloudService.Autorest", "{8D56B996-E5C3-5DFA-8212-71CB87FB279F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{82A5F175-27F7-4C10-9468-CD7D0E33BE21}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{DBA2E29A-AF74-4C8B-9820-3A29692C8581}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x64.Build.0 = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.ActiveCfg = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.Build.0 = Release|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|Any CPU.Build.0 = Debug|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x64.ActiveCfg = Debug|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x64.Build.0 = Debug|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x86.ActiveCfg = Debug|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Debug|x86.Build.0 = Debug|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|Any CPU.ActiveCfg = Release|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|Any CPU.Build.0 = Release|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x64.ActiveCfg = Release|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x64.Build.0 = Release|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x86.ActiveCfg = Release|Any CPU - {82A5F175-27F7-4C10-9468-CD7D0E33BE21}.Release|x86.Build.0 = Release|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x64.ActiveCfg = Debug|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x64.Build.0 = Debug|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x86.ActiveCfg = Debug|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x86.Build.0 = Debug|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|Any CPU.Build.0 = Release|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x64.ActiveCfg = Release|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x64.Build.0 = Release|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x86.ActiveCfg = Release|Any CPU + {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {68D2827E-8679-4F16-B8F7-011F2DD8EF47} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {A99ED914-A8AE-49E5-A115-D0D4FD5E1926} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} - {82A5F175-27F7-4C10-9468-CD7D0E33BE21} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} + {DBA2E29A-AF74-4C8B-9820-3A29692C8581} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} EndGlobalSection EndGlobal diff --git a/src/CloudService/CloudService/Az.CloudService.psd1 b/src/CloudService/CloudService/Az.CloudService.psd1 index e5affb907330..3633866bb68b 100644 --- a/src/CloudService/CloudService/Az.CloudService.psd1 +++ b/src/CloudService/CloudService/Az.CloudService.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-08-20 +# Generated on: 2025-08-21 # @{ @@ -69,8 +69,7 @@ FormatsToProcess = 'CloudService.Autorest/Az.CloudService.format.ps1xml' NestedModules = @('CloudService.Autorest/Az.CloudService.psm1') # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceCloudServicesUpdateDomain', - 'Get-AzCloudServiceInstanceView', +FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceInstanceView', 'Get-AzCloudServiceNetworkInterface', 'Get-AzCloudServiceOSFamily', 'Get-AzCloudServiceOSVersion', 'Get-AzCloudServicePublicIPAddress', 'Get-AzCloudServiceRoleInstance', @@ -78,9 +77,7 @@ FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceCloudServicesUpdate 'Get-AzCloudServiceRoleInstanceView', 'Invoke-AzCloudServiceRebuild', 'Invoke-AzCloudServiceRebuildCloudService', - 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance', 'Invoke-AzCloudServiceReimage', - 'Invoke-AzCloudServiceRoleInstanceRebuild', 'Invoke-AzCloudServiceRoleInstanceReimage', 'New-AzCloudService', 'New-AzCloudServiceDiagnosticsExtension', 'New-AzCloudServiceExtensionObject', @@ -93,9 +90,7 @@ FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceCloudServicesUpdate 'Restart-AzCloudServiceRoleInstance', 'Set-AzCloudServiceUpdateDomain', 'Start-AzCloudService', 'Stop-AzCloudService', 'Switch-AzCloudService', - 'Update-AzCloudService', - 'Update-AzCloudServiceCloudServicesUpdateDomain', - 'Update-AzCloudServiceRoleInstance' + 'Update-AzCloudService' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() diff --git a/src/CloudService/CloudService/help/Az.CloudService.md b/src/CloudService/CloudService/help/Az.CloudService.md index 3cde067f163c..2b5abbd3e2e2 100644 --- a/src/CloudService/CloudService/help/Az.CloudService.md +++ b/src/CloudService/CloudService/help/Az.CloudService.md @@ -14,11 +14,6 @@ Microsoft Azure PowerShell: CloudService cmdlets ### [Get-AzCloudService](Get-AzCloudService.md) Display information about a cloud service. -### [Get-AzCloudServiceCloudServicesUpdateDomain](Get-AzCloudServiceCloudServicesUpdateDomain.md) -Gets the specified get domain of a cloud service. -Use nextLink property in the response to get the next page of get domains. -Do this till nextLink is null to fetch all the get domains. - ### [Get-AzCloudServiceInstanceView](Get-AzCloudServiceInstanceView.md) Gets the status of a cloud service. @@ -51,17 +46,9 @@ If you do not want to initialize storage resources, you can use Reimage Role Ins Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. -### [Invoke-AzCloudServiceRebuildCloudServiceRoleInstance](Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md) -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - ### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. -### [Invoke-AzCloudServiceRoleInstanceRebuild](Invoke-AzCloudServiceRoleInstanceRebuild.md) -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - ### [Invoke-AzCloudServiceRoleInstanceReimage](Invoke-AzCloudServiceRoleInstanceReimage.md) The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -119,9 +106,3 @@ Swaps VIPs between two cloud service (extended support) load balancers. Create a cloud service. Please note some properties can be set only during cloud service creation. -### [Update-AzCloudServiceCloudServicesUpdateDomain](Update-AzCloudServiceCloudServicesUpdateDomain.md) -Walk the role instances in the specified walk domain. - -### [Update-AzCloudServiceRoleInstance](Update-AzCloudServiceRoleInstance.md) -The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. - diff --git a/src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md deleted file mode 100644 index 292db484e2a8..000000000000 --- a/src/CloudService/CloudService/help/Get-AzCloudServiceCloudServicesUpdateDomain.md +++ /dev/null @@ -1,196 +0,0 @@ ---- -external help file: Az.CloudService-help.xml -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/get-azcloudservicecloudservicesupdatedomain -schema: 2.0.0 ---- - -# Get-AzCloudServiceCloudServicesUpdateDomain - -## SYNOPSIS -Gets the specified get domain of a cloud service. -Use nextLink property in the response to get the next page of get domains. -Do this till nextLink is null to fetch all the get domains. - -## SYNTAX - -### List (Default) -``` -Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] - [] -``` - -### Get -``` -Get-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - [-SubscriptionId ] -UpdateDomain [-DefaultProfile ] - [] -``` - -### GetViaIdentityCloudService -``` -Get-AzCloudServiceCloudServicesUpdateDomain -UpdateDomain - -CloudServiceInputObject [-DefaultProfile ] - [] -``` - -### GetViaIdentity -``` -Get-AzCloudServiceCloudServicesUpdateDomain -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets the specified get domain of a cloud service. -Use nextLink property in the response to get the next page of get domains. -Do this till nextLink is null to fetch all the get domains. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -CloudServiceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: GetViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: List, Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the resource group. - -```yaml -Type: System.String -Parameter Sets: List, Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String[] -Parameter Sets: List, Get -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UpdateDomain -Specifies an integer value that identifies the update domain. -Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. - -```yaml -Type: System.Int32 -Parameter Sets: Get, GetViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain - -## NOTES - -## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md deleted file mode 100644 index c88372190230..000000000000 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.md +++ /dev/null @@ -1,187 +0,0 @@ ---- -external help file: Az.CloudService-help.xml -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudserviceroleinstance -schema: 2.0.0 ---- - -# Invoke-AzCloudServiceRebuildCloudServiceRoleInstance - -## SYNOPSIS -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## SYNTAX - -``` -Invoke-AzCloudServiceRebuildCloudServiceRoleInstance -CloudServiceName - -RoleInstanceInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RoleInstanceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md deleted file mode 100644 index 8cf550ddee55..000000000000 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md +++ /dev/null @@ -1,225 +0,0 @@ ---- -external help file: Az.CloudService-help.xml -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild -schema: 2.0.0 ---- - -# Invoke-AzCloudServiceRoleInstanceRebuild - -## SYNOPSIS -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## SYNTAX - -### Rebuild (Default) -``` -Invoke-AzCloudServiceRoleInstanceRebuild -CloudServiceName -ResourceGroupName - -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] -``` - -### RebuildViaIdentity -``` -Invoke-AzCloudServiceRoleInstanceRebuild -InputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instance. - -## EXAMPLES - -### Example 1: Rebuild role instance of a cloud service -```powershell -Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -``` - -This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: RebuildViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the resource group. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RoleInstanceName -Name of the role instance. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String -Parameter Sets: Rebuild -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Update-AzCloudServiceCloudServicesUpdateDomain.md b/src/CloudService/CloudService/help/Update-AzCloudServiceCloudServicesUpdateDomain.md deleted file mode 100644 index 79d75e6db0f8..000000000000 --- a/src/CloudService/CloudService/help/Update-AzCloudServiceCloudServicesUpdateDomain.md +++ /dev/null @@ -1,300 +0,0 @@ ---- -external help file: Az.CloudService-help.xml -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/update-azcloudservicecloudservicesupdatedomain -schema: 2.0.0 ---- - -# Update-AzCloudServiceCloudServicesUpdateDomain - -## SYNOPSIS -Walk the role instances in the specified walk domain. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - [-SubscriptionId ] -UpdateDomain [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] -``` - -### Update -``` -Update-AzCloudServiceCloudServicesUpdateDomain -CloudServiceName -ResourceGroupName - [-SubscriptionId ] -UpdateDomain -Parameter [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] -``` - -### UpdateViaIdentityCloudServiceExpanded -``` -Update-AzCloudServiceCloudServicesUpdateDomain -UpdateDomain - -CloudServiceInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] -``` - -### UpdateViaIdentityCloudService -``` -Update-AzCloudServiceCloudServicesUpdateDomain -UpdateDomain - -CloudServiceInputObject -Parameter [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzCloudServiceCloudServicesUpdateDomain -InputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] - [-Confirm] [] -``` - -### UpdateViaIdentity -``` -Update-AzCloudServiceCloudServicesUpdateDomain -InputObject -Parameter - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] - [-Confirm] [] -``` - -## DESCRIPTION -Walk the role instances in the specified walk domain. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: UpdateViaIdentityCloudServiceExpanded, UpdateViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, Update -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Parameter -Defines an update domain for the cloud service. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain -Parameter Sets: Update, UpdateViaIdentityCloudService, UpdateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of the resource group. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, Update -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, Update -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UpdateDomain -Specifies an integer value that identifies the update domain. -Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. - -```yaml -Type: System.Int32 -Parameter Sets: UpdateExpanded, Update, UpdateViaIdentityCloudServiceExpanded, UpdateViaIdentityCloudService -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IUpdateDomain - -## NOTES - -## RELATED LINKS diff --git a/src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md b/src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md deleted file mode 100644 index c6b6da87a8c7..000000000000 --- a/src/CloudService/CloudService/help/Update-AzCloudServiceRoleInstance.md +++ /dev/null @@ -1,185 +0,0 @@ ---- -external help file: Az.CloudService-help.xml -Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/update-azcloudserviceroleinstance -schema: 2.0.0 ---- - -# Update-AzCloudServiceRoleInstance - -## SYNOPSIS -The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. - -## SYNTAX - -``` -Update-AzCloudServiceRoleInstance -CloudServiceName -RoleInstanceInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] - [-Confirm] [] -``` - -## DESCRIPTION -The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CloudServiceName -Name of the cloud service. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -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 -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RoleInstanceInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS From cfd3351eb1127f589b0226dc4f0534fad47f1b7c Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 21 Aug 2025 16:17:21 +0800 Subject: [PATCH 3/8] update --- .../CloudService.Autorest/README.md | 21 +++-- .../cloudServices-roleInstances.json | 43 +++++++++ .../docs/Az.CloudService.md | 8 +- .../docs/Invoke-AzCloudServiceRebuild.md | 52 +++++++++- ...voke-AzCloudServiceRoleInstanceRebuild.md} | 94 ++++++++----------- ...nvoke-AzCloudServiceRebuildCloudService.md | 22 ----- ...nvoke-AzCloudServiceRoleInstanceRebuild.md | 7 ++ .../CloudService.Autorest/generate-info.json | 2 +- src/CloudService/CloudService.sln | 28 +++--- .../CloudService/Az.CloudService.psd1 | 5 +- .../CloudService/help/Az.CloudService.md | 8 +- .../help/Invoke-AzCloudServiceRebuild.md | 52 +++++++++- ...voke-AzCloudServiceRoleInstanceRebuild.md} | 94 ++++++++----------- 13 files changed, 265 insertions(+), 171 deletions(-) rename src/CloudService/CloudService.Autorest/docs/{Invoke-AzCloudServiceRebuildCloudService.md => Invoke-AzCloudServiceRoleInstanceRebuild.md} (67%) delete mode 100644 src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md create mode 100644 src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md rename src/CloudService/CloudService/help/{Invoke-AzCloudServiceRebuildCloudService.md => Invoke-AzCloudServiceRoleInstanceRebuild.md} (67%) diff --git a/src/CloudService/CloudService.Autorest/README.md b/src/CloudService/CloudService.Autorest/README.md index 9b842590ca4f..accc0e827315 100644 --- a/src/CloudService/CloudService.Autorest/README.md +++ b/src/CloudService/CloudService.Autorest/README.md @@ -65,8 +65,20 @@ directive: set: subject: CloudServiceOSVersion - where: - variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$|^Rebuild$|^RebuildViaIdentity$|^RebuildViaJsonFilePathViaJsonFilePath$|^RebuildViaJsonStringViaJsonString$|^RebuildViaIdentityRoleInstance$ - subject: ^CloudService$|^RebuildCloudService$|^RebuildCloudServiceRoleInstance$ + variant: ^Rebuild$|^RebuildViaIdentity$|^RebuildViaJsonFilePathViaJsonFilePath$|^RebuildViaJsonStringViaJsonString$ + subject: RebuildCloudService + remove: true + - where: + subject: ^RebuildCloudService$ + set: + subject: Rebuild + - where: + variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$ + subject: ^CloudService$ + remove: true + - where: + variant: ^RebuildViaIdentityRoleInstance$ + subject: ^RebuildCloudServiceRoleInstance$ remove: true - where: @@ -82,11 +94,6 @@ directive: subject: CloudServiceRoleInstanceReimage verb: Invoke - - where: - subject: ^RebuildCloudService$ - variant: ^RebuildExpanded$|^RebuildViaIdentityExpanded$ - set: - subject: Rebuild - where: subject: ^RebuildCloudServiceRoleInstance$ variant: ^Rebuild$|^RebuildViaIdentity$ diff --git a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json index 191e7e44c522..7ca8d9b52822 100644 --- a/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json +++ b/src/CloudService/CloudService.Autorest/UX/Microsoft.Compute/cloudServices-roleInstances.json @@ -48,6 +48,49 @@ } ] }, + { + "name": "Invoke-AzCloudServiceRoleInstanceRebuild", + "description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.\nIf you do not want to initialize storage resources, you can use Reimage Role Instance.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild" + }, + "parameterSets": [ + { + "parameters": [ + "-CloudServiceName ", + "-ResourceGroupName ", + "-RoleInstanceName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.", + "parameters": [ + { + "name": "-CloudServiceName", + "value": "[Path.cloudServiceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-RoleInstanceName", + "value": "[Path.roleInstanceName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Invoke-AzCloudServiceRoleInstanceReimage", "description": "The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.", diff --git a/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md b/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md index 60c98795b773..2b9def07a448 100644 --- a/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Az.CloudService.md @@ -42,13 +42,13 @@ Retrieves information about the run-time state of a role instance in a cloud ser Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. -### [Invoke-AzCloudServiceRebuildCloudService](Invoke-AzCloudServiceRebuildCloudService.md) -Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instances. - ### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +### [Invoke-AzCloudServiceRoleInstanceRebuild](Invoke-AzCloudServiceRoleInstanceRebuild.md) +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + ### [Invoke-AzCloudServiceRoleInstanceReimage](Invoke-AzCloudServiceRoleInstanceReimage.md) The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md index 50f09af391d8..d2f0d436cfb3 100644 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuild.md @@ -26,6 +26,20 @@ Invoke-AzCloudServiceRebuild -InputObject [-RoleInstance [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### RebuildViaJsonFilePath +``` +Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### RebuildViaJsonString +``` +Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. @@ -69,7 +83,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: RebuildExpanded +Parameter Sets: RebuildExpanded, RebuildViaJsonFilePath, RebuildViaJsonString Aliases: Required: True @@ -110,6 +124,36 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -145,7 +189,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: RebuildExpanded +Parameter Sets: RebuildExpanded, RebuildViaJsonFilePath, RebuildViaJsonString Aliases: Required: True @@ -161,7 +205,7 @@ Value of '*' will signify all role instances of the cloud service. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: RebuildExpanded, RebuildViaIdentityExpanded Aliases: Required: False @@ -177,7 +221,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: RebuildExpanded +Parameter Sets: RebuildExpanded, RebuildViaJsonFilePath, RebuildViaJsonString Aliases: Required: False diff --git a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md similarity index 67% rename from src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md rename to src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md index 17ed88cc3208..96b942819999 100644 --- a/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRebuildCloudService.md +++ b/src/CloudService/CloudService.Autorest/docs/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -1,59 +1,43 @@ --- external help file: Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudservice +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild schema: 2.0.0 --- -# Invoke-AzCloudServiceRebuildCloudService +# Invoke-AzCloudServiceRoleInstanceRebuild ## SYNOPSIS -Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instances. +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. ## SYNTAX -### RebuildViaJsonFilePath (Default) +### Rebuild (Default) ``` -Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] +Invoke-AzCloudServiceRoleInstanceRebuild -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] ``` -### RebuildViaJsonString +### RebuildViaIdentity ``` -Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] +Invoke-AzCloudServiceRoleInstanceRebuild -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instances. +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Rebuild role instance of a cloud service ```powershell -{{ Add code here }} +Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. ## PARAMETERS @@ -77,7 +61,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Rebuild Aliases: Required: True @@ -103,38 +87,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Rebuild operation +### -InputObject +Identity Parameter ```yaml -Type: System.String -Parameter Sets: RebuildViaJsonFilePath +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RebuildViaIdentity Aliases: Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -JsonString -Json string supplied to the Rebuild operation +### -NoWait +Run the command asynchronously ```yaml -Type: System.String -Parameter Sets: RebuildViaJsonString +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously +### -PassThru +Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter @@ -148,27 +132,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds +### -ResourceGroupName +Name of the resource group. ```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Type: System.String +Parameter Sets: Rebuild Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -Name of the resource group. +### -RoleInstanceName +Name of the role instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Rebuild Aliases: Required: True @@ -184,7 +168,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Rebuild Aliases: Required: False @@ -230,6 +214,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + ## OUTPUTS ### System.Boolean diff --git a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRebuildCloudService.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md new file mode 100644 index 000000000000..4b12ec6caf61 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -0,0 +1,7 @@ +### Example 1: Rebuild role instance of a cloud service + +```powershell +Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/CloudService.Autorest/generate-info.json b/src/CloudService/CloudService.Autorest/generate-info.json index df3aa6fac664..9fff04c5ae50 100644 --- a/src/CloudService/CloudService.Autorest/generate-info.json +++ b/src/CloudService/CloudService.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "6544f129-fdb4-4172-b7d7-bb378b037e67" + "generate_Id": "ab56bbb6-7893-43a1-9897-bb9798dc19e1" } diff --git a/src/CloudService/CloudService.sln b/src/CloudService/CloudService.sln index 8c2aee2a470f..78425c592504 100644 --- a/src/CloudService/CloudService.sln +++ b/src/CloudService/CloudService.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudService", "CloudServic EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CloudService.Autorest", "CloudService.Autorest", "{8D56B996-E5C3-5DFA-8212-71CB87FB279F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{DBA2E29A-AF74-4C8B-9820-3A29692C8581}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{8D379FFF-366A-4607-B6CD-B0F0EAB93C41}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x64.Build.0 = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.ActiveCfg = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.Build.0 = Release|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x64.ActiveCfg = Debug|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x64.Build.0 = Debug|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x86.ActiveCfg = Debug|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Debug|x86.Build.0 = Debug|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|Any CPU.Build.0 = Release|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x64.ActiveCfg = Release|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x64.Build.0 = Release|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x86.ActiveCfg = Release|Any CPU - {DBA2E29A-AF74-4C8B-9820-3A29692C8581}.Release|x86.Build.0 = Release|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x64.ActiveCfg = Debug|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x64.Build.0 = Debug|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x86.ActiveCfg = Debug|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x86.Build.0 = Debug|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|Any CPU.Build.0 = Release|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x64.ActiveCfg = Release|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x64.Build.0 = Release|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x86.ActiveCfg = Release|Any CPU + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {68D2827E-8679-4F16-B8F7-011F2DD8EF47} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {A99ED914-A8AE-49E5-A115-D0D4FD5E1926} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} - {DBA2E29A-AF74-4C8B-9820-3A29692C8581} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} + {8D379FFF-366A-4607-B6CD-B0F0EAB93C41} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} EndGlobalSection EndGlobal diff --git a/src/CloudService/CloudService/Az.CloudService.psd1 b/src/CloudService/CloudService/Az.CloudService.psd1 index 3633866bb68b..7ea7c0426bb8 100644 --- a/src/CloudService/CloudService/Az.CloudService.psd1 +++ b/src/CloudService/CloudService/Az.CloudService.psd1 @@ -75,9 +75,8 @@ FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceInstanceView', 'Get-AzCloudServiceRoleInstance', 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile', 'Get-AzCloudServiceRoleInstanceView', - 'Invoke-AzCloudServiceRebuild', - 'Invoke-AzCloudServiceRebuildCloudService', - 'Invoke-AzCloudServiceReimage', + 'Invoke-AzCloudServiceRebuild', 'Invoke-AzCloudServiceReimage', + 'Invoke-AzCloudServiceRoleInstanceRebuild', 'Invoke-AzCloudServiceRoleInstanceReimage', 'New-AzCloudService', 'New-AzCloudServiceDiagnosticsExtension', 'New-AzCloudServiceExtensionObject', diff --git a/src/CloudService/CloudService/help/Az.CloudService.md b/src/CloudService/CloudService/help/Az.CloudService.md index 2b5abbd3e2e2..7c25c2a3a2d7 100644 --- a/src/CloudService/CloudService/help/Az.CloudService.md +++ b/src/CloudService/CloudService/help/Az.CloudService.md @@ -42,13 +42,13 @@ Retrieves information about the run-time state of a role instance in a cloud ser Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. -### [Invoke-AzCloudServiceRebuildCloudService](Invoke-AzCloudServiceRebuildCloudService.md) -Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instances. - ### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +### [Invoke-AzCloudServiceRoleInstanceRebuild](Invoke-AzCloudServiceRoleInstanceRebuild.md) +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + ### [Invoke-AzCloudServiceRoleInstanceReimage](Invoke-AzCloudServiceRoleInstanceReimage.md) The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md index bde526ec404e..51c14c20f864 100644 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuild.md @@ -20,6 +20,20 @@ Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName ] ``` +### RebuildViaJsonString +``` +Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### RebuildViaJsonFilePath +``` +Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ### RebuildViaIdentityExpanded ``` Invoke-AzCloudServiceRebuild -InputObject [-RoleInstance ] @@ -70,7 +84,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: RebuildExpanded +Parameter Sets: RebuildExpanded, RebuildViaJsonString, RebuildViaJsonFilePath Aliases: Required: True @@ -111,6 +125,36 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Rebuild operation + +```yaml +Type: System.String +Parameter Sets: RebuildViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -146,7 +190,7 @@ Name of the resource group. ```yaml Type: System.String -Parameter Sets: RebuildExpanded +Parameter Sets: RebuildExpanded, RebuildViaJsonString, RebuildViaJsonFilePath Aliases: Required: True @@ -162,7 +206,7 @@ Value of '*' will signify all role instances of the cloud service. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: RebuildExpanded, RebuildViaIdentityExpanded Aliases: Required: False @@ -178,7 +222,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: RebuildExpanded +Parameter Sets: RebuildExpanded, RebuildViaJsonString, RebuildViaJsonFilePath Aliases: Required: False diff --git a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md similarity index 67% rename from src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md rename to src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md index cd9521de754e..8cf550ddee55 100644 --- a/src/CloudService/CloudService/help/Invoke-AzCloudServiceRebuildCloudService.md +++ b/src/CloudService/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -1,59 +1,43 @@ --- external help file: Az.CloudService-help.xml Module Name: Az.CloudService -online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudservicerebuildcloudservice +online version: https://learn.microsoft.com/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild schema: 2.0.0 --- -# Invoke-AzCloudServiceRebuildCloudService +# Invoke-AzCloudServiceRoleInstanceRebuild ## SYNOPSIS -Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instances. +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. ## SYNTAX -### RebuildViaJsonFilePath (Default) +### Rebuild (Default) ``` -Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] +Invoke-AzCloudServiceRoleInstanceRebuild -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] ``` -### RebuildViaJsonString +### RebuildViaIdentity ``` -Invoke-AzCloudServiceRebuildCloudService -CloudServiceName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] +Invoke-AzCloudServiceRoleInstanceRebuild -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. -If you do not want to initialize storage resources, you can use Reimage Role Instances. +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Rebuild role instance of a cloud service ```powershell -{{ Add code here }} +Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" ``` -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. ## PARAMETERS @@ -77,7 +61,7 @@ Name of the cloud service. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Rebuild Aliases: Required: True @@ -103,38 +87,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Rebuild operation +### -InputObject +Identity Parameter ```yaml -Type: System.String -Parameter Sets: RebuildViaJsonFilePath +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RebuildViaIdentity Aliases: Required: True Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -JsonString -Json string supplied to the Rebuild operation +### -NoWait +Run the command asynchronously ```yaml -Type: System.String -Parameter Sets: RebuildViaJsonString +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously +### -PassThru +Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter @@ -148,27 +132,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds +### -ResourceGroupName +Name of the resource group. ```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Type: System.String +Parameter Sets: Rebuild Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -Name of the resource group. +### -RoleInstanceName +Name of the role instance. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Rebuild Aliases: Required: True @@ -184,7 +168,7 @@ The subscription ID forms part of the URI for every service call. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Rebuild Aliases: Required: False @@ -230,6 +214,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + ## OUTPUTS ### System.Boolean From f02f82f239ce75028c17067a18681645f5f5325b Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 21 Aug 2025 16:20:07 +0800 Subject: [PATCH 4/8] update --- ...ServiceCloudServicesUpdateDomain.Tests.ps1 | 33 ------------- ...zCloudServiceRebuildCloudService.Tests.ps1 | 25 ---------- ...eRebuildCloudServiceRoleInstance.Tests.ps1 | 21 -------- ...iceWalkCloudServicesUpdateDomain.Tests.ps1 | 49 ------------------- ...ServiceCloudServicesUpdateDomain.Tests.ps1 | 41 ---------------- ...pdate-AzCloudServiceRoleInstance.Tests.ps1 | 21 -------- 6 files changed, 190 deletions(-) delete mode 100644 src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 delete mode 100644 src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 diff --git a/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 deleted file mode 100644 index 062b2404f9cc..000000000000 --- a/src/CloudService/CloudService.Autorest/test/Get-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCloudServiceCloudServicesUpdateDomain')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceCloudServicesUpdateDomain.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzCloudServiceCloudServicesUpdateDomain' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityCloudService' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 deleted file mode 100644 index 582db2d33349..000000000000 --- a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudService.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzCloudServiceRebuildCloudService')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRebuildCloudService.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzCloudServiceRebuildCloudService' { - It 'RebuildViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'RebuildViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 deleted file mode 100644 index 07cc34da536b..000000000000 --- a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Tests.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzCloudServiceRebuildCloudServiceRoleInstance' { - It 'RebuildViaIdentityRoleInstance' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 deleted file mode 100644 index e0a76282a713..000000000000 --- a/src/CloudService/CloudService.Autorest/test/Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Tests.ps1 +++ /dev/null @@ -1,49 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzCloudServiceWalkCloudServicesUpdateDomain')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceWalkCloudServicesUpdateDomain.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzCloudServiceWalkCloudServicesUpdateDomain' { - It 'WalkExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'WalkViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'WalkViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Walk' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'WalkViaIdentityCloudServiceExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'WalkViaIdentityCloudService' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'WalkViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'WalkViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 deleted file mode 100644 index 7e29ee04f3c8..000000000000 --- a/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceCloudServicesUpdateDomain.Tests.ps1 +++ /dev/null @@ -1,41 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCloudServiceCloudServicesUpdateDomain')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzCloudServiceCloudServicesUpdateDomain.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzCloudServiceCloudServicesUpdateDomain' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Update' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityCloudServiceExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityCloudService' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 deleted file mode 100644 index 9a98d7315d24..000000000000 --- a/src/CloudService/CloudService.Autorest/test/Update-AzCloudServiceRoleInstance.Tests.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCloudServiceRoleInstance')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzCloudServiceRoleInstance.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzCloudServiceRoleInstance' { - It 'ReimageViaIdentityRoleInstance' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} From fd8aab81168d301a7d52b97e26b4c21d5cc6d5a7 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 26 Aug 2025 11:29:54 +0800 Subject: [PATCH 5/8] Create BreakingChangeIssues.csv --- .../Az.CloudService/BreakingChangeIssues.csv | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.CloudService/BreakingChangeIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.CloudService/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.CloudService/BreakingChangeIssues.csv new file mode 100644 index 000000000000..7cfbdab02cb6 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.CloudService/BreakingChangeIssues.csv @@ -0,0 +1,121 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'Extension' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceExtensionProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IExtension' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IExtension]'.","Change the type of property 'Extension' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IExtension'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'LoadBalancerConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceNetworkProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerConfiguration]'.","Change the type of property 'LoadBalancerConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerConfiguration'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'SlotType' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceNetworkProfile' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceSlotType]' to 'System.String'.","Change the type of property 'SlotType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceSlotType]'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'Secret' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceOSProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultSecretGroup' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultSecretGroup]'.","Change the type of property 'Secret' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultSecretGroup'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'Role' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceRoleProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfileProperties' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfileProperties]'.","Change the type of property 'Role' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfileProperties'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'UpgradeMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]' to 'System.String'.","Change the type of property 'UpgradeMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3010","The property 'ResourceGroupName' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has been removed.","Add the property 'ResourceGroupName' back to type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService'." +"Az.CloudService","Get-AzCloudService","Get-AzCloudService","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceInstanceView","Get-AzCloudServiceInstanceView","0","3000","The type of property 'Statuses' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus]'.","Change the type of property 'Statuses' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus'." +"Az.CloudService","Get-AzCloudServiceInstanceView","Get-AzCloudServiceInstanceView","0","3000","The type of property 'RoleInstanceStatusesSummary' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IStatusCodeCount' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IStatusCodeCount]'.","Change the type of property 'RoleInstanceStatusesSummary' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IStatusCodeCount'." +"Az.CloudService","Get-AzCloudServiceInstanceView","Get-AzCloudServiceInstanceView","0","3000","The type of property 'PrivateId' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'PrivateId' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ApplicationSecurityGroup' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IApplicationSecurityGroup' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IApplicationSecurityGroup]'.","Change the type of property 'ApplicationSecurityGroup' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IApplicationSecurityGroup'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'CustomDnsConfig' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICustomDnsConfigPropertiesFormat' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICustomDnsConfigPropertiesFormat]'.","Change the type of property 'CustomDnsConfig' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICustomDnsConfigPropertiesFormat'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'FlowLog' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFlowLog' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFlowLog]'.","Change the type of property 'FlowLog' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFlowLog'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'LoadBalancerFrontendIPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFrontendIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFrontendIPConfiguration]'.","Change the type of property 'LoadBalancerFrontendIPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFrontendIPConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'NetworkSecurityGroupPropertiesNetworkInterface' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface]'.","Change the type of property 'NetworkSecurityGroupPropertiesNetworkInterface' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpointPropertiesNetworkInterface' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface]'.","Change the type of property 'PrivateEndpointPropertiesNetworkInterface' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateLinkServicePropertiesNetworkInterface' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface]'.","Change the type of property 'PrivateLinkServicePropertiesNetworkInterface' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'IPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterfaceIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterfaceIPConfiguration]'.","Change the type of property 'IPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterfaceIPConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'TapConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterfaceTapConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterfaceTapConfiguration]'.","Change the type of property 'TapConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterfaceTapConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpointConnection' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpointConnection' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpointConnection]'.","Change the type of property 'PrivateEndpointConnection' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpointConnection'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpointPropertiesIPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpointIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpointIPConfiguration]'.","Change the type of property 'PrivateEndpointPropertiesIPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpointIPConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateLinkServiceConnection' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceConnection' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceConnection]'.","Change the type of property 'PrivateLinkServiceConnection' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceConnection'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ManualPrivateLinkServiceConnection' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceConnection' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceConnection]'.","Change the type of property 'ManualPrivateLinkServiceConnection' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceConnection'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateLinkServicePropertiesIPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceIPConfiguration]'.","Change the type of property 'PrivateLinkServicePropertiesIPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateLinkServiceIPConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'SecurityRule' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule]'.","Change the type of property 'SecurityRule' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'DefaultSecurityRule' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule]'.","Change the type of property 'DefaultSecurityRule' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ApplicationGatewayIPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IApplicationGatewayIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IApplicationGatewayIPConfiguration]'.","Change the type of property 'ApplicationGatewayIPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IApplicationGatewayIPConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'Delegation' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IDelegation' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IDelegation]'.","Change the type of property 'Delegation' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IDelegation'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'FlowLog' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFlowLog' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFlowLog]'.","Change the type of property 'FlowLog' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IFlowLog'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'IPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPConfiguration]'.","Change the type of property 'IPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPConfiguration'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'IPConfigurationProfile' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPConfigurationProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPConfigurationProfile]'.","Change the type of property 'IPConfigurationProfile' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPConfigurationProfile'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'NetworkInterface' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface]'.","Change the type of property 'NetworkInterface' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.INetworkInterface'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpoint' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpoint' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpoint]'.","Change the type of property 'PrivateEndpoint' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IPrivateEndpoint'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ResourceNavigationLink' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceNavigationLink' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceNavigationLink]'.","Change the type of property 'ResourceNavigationLink' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceNavigationLink'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'Route' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoute' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoute]'.","Change the type of property 'Route' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IRoute'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'DefaultSecurityRule' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule]'.","Change the type of property 'DefaultSecurityRule' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'SecurityRule' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule]'.","Change the type of property 'SecurityRule' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISecurityRule'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ServiceAssociationLink' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceAssociationLink' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceAssociationLink]'.","Change the type of property 'ServiceAssociationLink' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceAssociationLink'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ServiceEndpointPolicy' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceEndpointPolicy' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceEndpointPolicy]'.","Change the type of property 'ServiceEndpointPolicy' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceEndpointPolicy'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ServiceEndpoint' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceEndpointPropertiesFormat' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceEndpointPropertiesFormat]'.","Change the type of property 'ServiceEndpoint' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IServiceEndpointPropertiesFormat'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'NetworkSecurityGroupPropertiesSubnet' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubnet' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubnet]'.","Change the type of property 'NetworkSecurityGroupPropertiesSubnet' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubnet'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'RouteTablePropertiesSubnet' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubnet' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubnet]'.","Change the type of property 'RouteTablePropertiesSubnet' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubnet'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'IPAllocation' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated]'.","Change the type of property 'IPAllocation' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'RouteTablePropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'RouteTablePropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'NetworkSecurityGroupPropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'NetworkSecurityGroupPropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpointNetworkPolicy' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.VirtualNetworkPrivateEndpointNetworkPolicies]' to 'System.String'.","Change the type of property 'PrivateEndpointNetworkPolicy' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.VirtualNetworkPrivateEndpointNetworkPolicies]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateLinkServiceNetworkPolicy' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.VirtualNetworkPrivateLinkServiceNetworkPolicies]' to 'System.String'.","Change the type of property 'PrivateLinkServiceNetworkPolicy' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.VirtualNetworkPrivateLinkServiceNetworkPolicies]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3010","The property 'PropertiesAddressPrefixes' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet' has been removed.","Add the property 'PropertiesAddressPrefixes' back to type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3010","The property 'PropertiesNetworkSecurityGroupPropertiesSubnets' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has been removed.","Add the property 'PropertiesNetworkSecurityGroupPropertiesSubnets' back to type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateLinkServiceExtendedLocationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]' to 'System.String'.","Change the type of property 'PrivateLinkServiceExtendedLocationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ExtendedLocationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]' to 'System.String'.","Change the type of property 'ExtendedLocationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpointExtendedLocationType' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]' to 'System.String'.","Change the type of property 'PrivateEndpointExtendedLocationType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'MigrationPhase' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.NetworkInterfaceMigrationPhase]' to 'System.String'.","Change the type of property 'MigrationPhase' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.NetworkInterfaceMigrationPhase]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'NicType' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.NetworkInterfaceNicType]' to 'System.String'.","Change the type of property 'NicType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.NetworkInterfaceNicType]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateEndpointPropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'PrivateEndpointPropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'PrivateLinkServicePropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'PrivateLinkServicePropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'NetworkSecurityGroupPropertiesProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'NetworkSecurityGroupPropertiesProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'HostedWorkload' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'HostedWorkload' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'VisibilitySubscription' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'VisibilitySubscription' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'DnsSettingDnsServer' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'DnsSettingDnsServer' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'DnsSettingAppliedDnsServer' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'DnsSettingAppliedDnsServer' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'AutoApprovalSubscription' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'AutoApprovalSubscription' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","Get-AzCloudServiceNetworkInterface","0","3000","The type of property 'Fqdn' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Fqdn' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceOSFamily","Get-AzCloudServiceOSFamily","0","3000","The type of property 'Version' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSVersionPropertiesBase' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSVersionPropertiesBase]'.","Change the type of property 'Version' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IOSVersionPropertiesBase'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Type' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtendedLocation' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]' to 'System.String'.","Change the type of property 'Type' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ExtendedLocationTypes]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'ProtectionCoverage' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IDdosSettings' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.DdosSettingsProtectionCoverage]' to 'System.String'.","Change the type of property 'ProtectionCoverage' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.DdosSettingsProtectionCoverage]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Name' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressSku' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.PublicIPAddressSkuName]' to 'System.String'.","Change the type of property 'Name' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.PublicIPAddressSkuName]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Tier' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressSku' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.PublicIPAddressSkuTier]' to 'System.String'.","Change the type of property 'Tier' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.PublicIPAddressSkuTier]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'PrivateIPAllocationMethod' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IIPConfigurationPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPAllocationMethod]' to 'System.String'.","Change the type of property 'PrivateIPAllocationMethod' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPAllocationMethod]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IIPConfigurationPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'IPTag' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressPropertiesFormat' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPTag' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPTag]'.","Change the type of property 'IPTag' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IIPTag'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'PublicIPAddress' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INatGateway' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated]'.","Change the type of property 'PublicIPAddress' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'PublicIPPrefix' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INatGateway' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated]'.","Change the type of property 'PublicIPPrefix' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Subnet' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INatGateway' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated]'.","Change the type of property 'Subnet' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResourceAutoGenerated'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'SkuName' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INatGateway' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.NatGatewaySkuName]' to 'System.String'.","Change the type of property 'SkuName' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.NatGatewaySkuName]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INatGateway' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INatGateway' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'DeleteOption' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.DeleteOptions]' to 'System.String'.","Change the type of property 'DeleteOption' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.DeleteOptions]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'PublicIPAllocationMethod' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPAllocationMethod]' to 'System.String'.","Change the type of property 'PublicIPAllocationMethod' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPAllocationMethod]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'PublicIPAddressVersion' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPVersion]' to 'System.String'.","Change the type of property 'PublicIPAddressVersion' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPVersion]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'MigrationPhase' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddressPropertiesFormat' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.PublicIPAddressMigrationPhase]' to 'System.String'.","Change the type of property 'MigrationPhase' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.PublicIPAddressMigrationPhase]'." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","Get-AzCloudServicePublicIPAddress","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","Get-AzCloudServiceRoleInstance","Get-AzCloudServiceRoleInstance","0","3000","The type of property 'NetworkProfileNetworkInterface' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResource' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResource]'.","Change the type of property 'NetworkProfileNetworkInterface' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ISubResource'." +"Az.CloudService","Get-AzCloudServiceRoleInstance","Get-AzCloudServiceRoleInstance","0","3000","The type of property 'InstanceViewStatuses' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus]'.","Change the type of property 'InstanceViewStatuses' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus'." +"Az.CloudService","Get-AzCloudServiceRoleInstance","Get-AzCloudServiceRoleInstance","0","2020","The cmdlet 'Get-AzCloudServiceRoleInstance' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes' for parameter 'Expand'.","Change the type for parameter 'Expand' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes'." +"Az.CloudService","Get-AzCloudServiceRoleInstanceView","Get-AzCloudServiceRoleInstanceView","0","3000","The type of property 'Statuses' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstanceView' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus]'.","Change the type of property 'Statuses' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IResourceInstanceViewStatus'." +"Az.CloudService","Invoke-AzCloudServiceRebuild","Invoke-AzCloudServiceRebuild","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Invoke-AzCloudServiceRebuild' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Invoke-AzCloudServiceRebuild'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'UpgradeMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]' to 'System.String'.","Change the type of property 'UpgradeMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3010","The property 'ResourceGroupName' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has been removed.","Add the property 'ResourceGroupName' back to type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'Extension' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceExtensionProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IExtension' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IExtension]'.","Change the type of property 'Extension' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.IExtension'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'LoadBalancerConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceNetworkProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerConfiguration]'.","Change the type of property 'LoadBalancerConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerConfiguration'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'SlotType' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceNetworkProfile' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceSlotType]' to 'System.String'.","Change the type of property 'SlotType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceSlotType]'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'Secret' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceOSProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultSecretGroup' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultSecretGroup]'.","Change the type of property 'Secret' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultSecretGroup'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","3000","The type of property 'Role' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceRoleProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfileProperties' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfileProperties]'.","Change the type of property 'Role' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceRoleProfileProperties'." +"Az.CloudService","New-AzCloudService","New-AzCloudService","0","2020","The cmdlet 'New-AzCloudService' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode' for parameter 'UpgradeMode'.","Change the type for parameter 'UpgradeMode' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode'." +"Az.CloudService","New-AzCloudServiceDiagnosticsExtension","New-AzCloudServiceDiagnosticsExtension","0","3000","The type of property 'RolesAppliedTo' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'RolesAppliedTo' back to 'System.String[]'." +"Az.CloudService","New-AzCloudServiceExtensionObject","New-AzCloudServiceExtensionObject","0","3000","The type of property 'RolesAppliedTo' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'RolesAppliedTo' back to 'System.String[]'." +"Az.CloudService","New-AzCloudServiceLoadBalancerConfigurationObject","New-AzCloudServiceLoadBalancerConfigurationObject","0","3000","The type of property 'FrontendIPConfiguration' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.LoadBalancerConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerFrontendIPConfiguration' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerFrontendIPConfiguration]'.","Change the type of property 'FrontendIPConfiguration' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ILoadBalancerFrontendIPConfiguration'." +"Az.CloudService","New-AzCloudServiceLoadBalancerConfigurationObject","New-AzCloudServiceLoadBalancerConfigurationObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzCloudServiceLoadBalancerConfigurationObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzCloudServiceLoadBalancerConfigurationObject'." +"Az.CloudService","New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject","New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject'." +"Az.CloudService","New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject","New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject","0","1050","The parameter set 'DefaultParameterSet' for cmdlet 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject' has been removed.","Add parameter set 'DefaultParameterSet' back to cmdlet 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject'." +"Az.CloudService","New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject","New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject","0","1050","The parameter set 'PrivateIP' for cmdlet 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject' has been removed.","Add parameter set 'PrivateIP' back to cmdlet 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject'." +"Az.CloudService","New-AzCloudServiceRemoteDesktopExtensionObject","New-AzCloudServiceRemoteDesktopExtensionObject","0","3000","The type of property 'RolesAppliedTo' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'RolesAppliedTo' back to 'System.String[]'." +"Az.CloudService","New-AzCloudServiceVaultSecretGroupObject","New-AzCloudServiceVaultSecretGroupObject","0","3000","The type of property 'VaultCertificate' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceVaultSecretGroup' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultCertificate' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultCertificate]'.","Change the type of property 'VaultCertificate' back to 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceVaultCertificate'." +"Az.CloudService","Remove-AzCloudServiceRoleInstance","Remove-AzCloudServiceRoleInstance","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzCloudServiceRoleInstance' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzCloudServiceRoleInstance'." +"Az.CloudService","Restart-AzCloudService","Restart-AzCloudService","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Restart-AzCloudService' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Restart-AzCloudService'." +"Az.CloudService","Switch-AzCloudService","Switch-AzCloudService","0","3000","The type of property 'UpgradeMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudService' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]' to 'System.String'.","Change the type of property 'UpgradeMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]'." +"Az.CloudService","Switch-AzCloudService","Switch-AzCloudService","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudService' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","Update-AzCloudService","Update-AzCloudService","0","3000","The type of property 'UpgradeMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]' to 'System.String'.","Change the type of property 'UpgradeMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]'." +"Az.CloudService","Update-AzCloudService","Update-AzCloudService","0","3010","The property 'ResourceGroupName' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has been removed.","Add the property 'ResourceGroupName' back to type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService'." +"Az.CloudService","Update-AzCloudService","Update-AzCloudService","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." +"Az.CloudService","Update-AzCloudService","Update-AzCloudService","0","3000","The type of property 'UpgradeMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]' to 'System.String'.","Change the type of property 'UpgradeMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]'." +"Az.CloudService","Update-AzCloudService","Update-AzCloudService","0","3010","The property 'ResourceGroupName' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has been removed.","Add the property 'ResourceGroupName' back to type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService'." +"Az.CloudService","Update-AzCloudService","Update-AzCloudService","0","3000","The type of property 'Zone' of type 'Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Zone' back to 'System.String[]'." \ No newline at end of file From 176c5b63f1fac2b688a51e48c1e998740a5c54df Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 27 Aug 2025 12:02:43 +0800 Subject: [PATCH 6/8] update --- .../Properties/AssemblyInfo.cs | 1 - ...oudServiceRemoteDesktopExtensionObject.ps1 | 1 + .../CloudService.Autorest/generate-info.json | 2 +- src/CloudService/CloudService.sln | 28 +++++++++---------- .../CloudService/Az.CloudService.psd1 | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs b/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs index a76bedb0fa31..464810880fba 100644 --- a/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs +++ b/src/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs @@ -24,4 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 index 2d15b791d534..982db8009839 100644 --- a/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 +++ b/src/CloudService/CloudService.Autorest/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 @@ -20,6 +20,7 @@ Create a in-memory object for Remote Desktop Extension #> function New-AzCloudServiceRemoteDesktopExtensionObject { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension')] param( [Parameter(HelpMessage="Name of Remote Desktop Extension.", Mandatory)] diff --git a/src/CloudService/CloudService.Autorest/generate-info.json b/src/CloudService/CloudService.Autorest/generate-info.json index 9fff04c5ae50..99ba3981cbe3 100644 --- a/src/CloudService/CloudService.Autorest/generate-info.json +++ b/src/CloudService/CloudService.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "ab56bbb6-7893-43a1-9897-bb9798dc19e1" + "generate_Id": "c6fab170-0e19-4b4f-8f8e-5e19ec647717" } diff --git a/src/CloudService/CloudService.sln b/src/CloudService/CloudService.sln index 78425c592504..fa479dc0fc89 100644 --- a/src/CloudService/CloudService.sln +++ b/src/CloudService/CloudService.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudService", "CloudServic EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CloudService.Autorest", "CloudService.Autorest", "{8D56B996-E5C3-5DFA-8212-71CB87FB279F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{8D379FFF-366A-4607-B6CD-B0F0EAB93C41}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{7E5430A1-3063-4601-BA9E-4E2FB4C93503}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x64.Build.0 = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.ActiveCfg = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.Build.0 = Release|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x64.ActiveCfg = Debug|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x64.Build.0 = Debug|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x86.ActiveCfg = Debug|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Debug|x86.Build.0 = Debug|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|Any CPU.Build.0 = Release|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x64.ActiveCfg = Release|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x64.Build.0 = Release|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x86.ActiveCfg = Release|Any CPU - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41}.Release|x86.Build.0 = Release|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x64.ActiveCfg = Debug|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x64.Build.0 = Debug|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x86.ActiveCfg = Debug|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x86.Build.0 = Debug|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|Any CPU.Build.0 = Release|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x64.ActiveCfg = Release|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x64.Build.0 = Release|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x86.ActiveCfg = Release|Any CPU + {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {68D2827E-8679-4F16-B8F7-011F2DD8EF47} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {A99ED914-A8AE-49E5-A115-D0D4FD5E1926} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} - {8D379FFF-366A-4607-B6CD-B0F0EAB93C41} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} + {7E5430A1-3063-4601-BA9E-4E2FB4C93503} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} EndGlobalSection EndGlobal diff --git a/src/CloudService/CloudService/Az.CloudService.psd1 b/src/CloudService/CloudService/Az.CloudService.psd1 index 7ea7c0426bb8..8d342083df38 100644 --- a/src/CloudService/CloudService/Az.CloudService.psd1 +++ b/src/CloudService/CloudService/Az.CloudService.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-08-21 +# Generated on: 2025-08-27 # @{ From 3eeb3cfbb3b62b1d5ee0394cc6c81120b015913d Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 27 Aug 2025 18:35:26 +0800 Subject: [PATCH 7/8] Create ExampleIssues.csv --- .../Az.CloudService/ExampleIssues.csv | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.CloudService/ExampleIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.CloudService/ExampleIssues.csv b/tools/StaticAnalysis/Exceptions/Az.CloudService/ExampleIssues.csv new file mode 100644 index 000000000000..b8b9b9cb8eb9 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.CloudService/ExampleIssues.csv @@ -0,0 +1,17 @@ +"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation" +"Az.CloudService","New-AzCloudService","3","6","Invalid_Cmdlet","5000","1","Get-AzKeyVault is not a valid command name.","Get-AzKeyVault -ResourceGroupName ContosOrg -VaultName ContosKeyVault","Check the spell of Get-AzKeyVault." +"Az.CloudService","New-AzCloudService","3","7","Invalid_Cmdlet","5000","1","Get-AzKeyVaultCertificate is not a valid command name.","Get-AzKeyVaultCertificate -VaultName ContosKeyVault -Name ContosCert","Check the spell of Get-AzKeyVaultCertificate." +"Az.CloudService","New-AzCloudServiceVaultSecretGroupObject","1","1","Invalid_Cmdlet","5000","1","Get-AzKeyVault is not a valid command name.","Get-AzKeyVault -VaultName 'ContosoKeyVault'","Check the spell of Get-AzKeyVault." +"Az.CloudService","New-AzCloudServiceVaultSecretGroupObject","1","2","Invalid_Cmdlet","5000","1","Get-AzKeyVaultCertificate is not a valid command name.","Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert'","Check the spell of Get-AzKeyVaultCertificate." +"Az.CloudService","New-AzCloudService","3","6","Invalid_Cmdlet","5000","1","Get-AzKeyVault is not a valid command name.","Get-AzKeyVault -ResourceGroupName ContosOrg -VaultName ContosKeyVault","Check the spell of Get-AzKeyVault." +"Az.CloudService","New-AzCloudService","3","7","Invalid_Cmdlet","5000","1","Get-AzKeyVaultCertificate is not a valid command name.","Get-AzKeyVaultCertificate -VaultName ContosKeyVault -Name ContosCert","Check the spell of Get-AzKeyVaultCertificate." +"Az.CloudService","New-AzCloudServiceVaultSecretGroupObject","1","1","Invalid_Cmdlet","5000","1","Get-AzKeyVault is not a valid command name.","Get-AzKeyVault -VaultName 'ContosoKeyVault'","Check the spell of Get-AzKeyVault." +"Az.CloudService","New-AzCloudServiceVaultSecretGroupObject","1","2","Invalid_Cmdlet","5000","1","Get-AzKeyVaultCertificate is not a valid command name.","Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert'","Check the spell of Get-AzKeyVaultCertificate." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","2","2","Mismatched_Parameter_Value_Type","5111","2","Get-AzCloudServiceNetworkInterface -InputObject $cs is not an expected parameter value type.","-InputObject","Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity. Now the type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService.(Command)." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","2","2","Mismatched_Parameter_Value_Type","5111","2","Get-AzCloudServicePublicIPAddress -InputObject $cs is not an expected parameter value type.","-InputObject","Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity. Now the type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService.(Command)." +"Az.CloudService","Update-AzCloudService","1","2","Unassigned_Variable","5110","2","New-AzCloudServiceRemoteDesktopExtensionObject -Credential $credential is a null-valued parameter value.","-Credential","Assign value for $credential." +"Az.CloudService","Update-AzCloudService","1","2","Unassigned_Variable","5110","2","New-AzCloudServiceRemoteDesktopExtensionObject -Expiration $expiration is a null-valued parameter value.","-Expiration","Assign value for $expiration." +"Az.CloudService","Get-AzCloudServiceNetworkInterface","2","2","Mismatched_Parameter_Value_Type","5111","2","Get-AzCloudServiceNetworkInterface -InputObject $cs is not an expected parameter value type.","-InputObject","Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity. Now the type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService.(Command)." +"Az.CloudService","Get-AzCloudServicePublicIPAddress","2","2","Mismatched_Parameter_Value_Type","5111","2","Get-AzCloudServicePublicIPAddress -InputObject $cs is not an expected parameter value type.","-InputObject","Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity. Now the type is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService.(Command)." +"Az.CloudService","Update-AzCloudService","1","2","Unassigned_Variable","5110","2","New-AzCloudServiceRemoteDesktopExtensionObject -Credential $credential is a null-valued parameter value.","-Credential","Assign value for $credential." +"Az.CloudService","Update-AzCloudService","1","2","Unassigned_Variable","5110","2","New-AzCloudServiceRemoteDesktopExtensionObject -Expiration $expiration is a null-valued parameter value.","-Expiration","Assign value for $expiration." \ No newline at end of file From f503f8c40f83de07da94a9ac8c0cca719a094bbb Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 28 Aug 2025 15:39:58 +0800 Subject: [PATCH 8/8] roll back custom/Serialization --- .../custom/Serialization/CloudService.cs | 23 +++++++++++++++ .../CloudService.Autorest/generate-info.json | 2 +- src/CloudService/CloudService.sln | 28 +++++++++---------- .../CloudService/Az.CloudService.psd1 | 2 +- 4 files changed, 39 insertions(+), 16 deletions(-) create mode 100644 src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs diff --git a/src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs b/src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs new file mode 100644 index 000000000000..c49eea266658 --- /dev/null +++ b/src/CloudService/CloudService.Autorest/custom/Serialization/CloudService.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models +{ + /// + /// Adds the [-ResourceGroupName] property to the ICloudService interface. + /// This property is required by the Get/New/Update-AzCloudService cmdlets for output, + /// but was missing in the generated ICloudService.cs file. + /// + public partial interface ICloudService + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ResourceGroupName", + SerializedName = @"ResourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupName { get; } + } +} \ No newline at end of file diff --git a/src/CloudService/CloudService.Autorest/generate-info.json b/src/CloudService/CloudService.Autorest/generate-info.json index 99ba3981cbe3..653310366fe7 100644 --- a/src/CloudService/CloudService.Autorest/generate-info.json +++ b/src/CloudService/CloudService.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "c6fab170-0e19-4b4f-8f8e-5e19ec647717" + "generate_Id": "eb804711-13c5-45a0-8be7-da0e900b59ae" } diff --git a/src/CloudService/CloudService.sln b/src/CloudService/CloudService.sln index fa479dc0fc89..8c7afa565306 100644 --- a/src/CloudService/CloudService.sln +++ b/src/CloudService/CloudService.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudService", "CloudServic EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CloudService.Autorest", "CloudService.Autorest", "{8D56B996-E5C3-5DFA-8212-71CB87FB279F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{7E5430A1-3063-4601-BA9E-4E2FB4C93503}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "..\..\generated\CloudService\CloudService.Autorest\Az.CloudService.csproj", "{755FEEB2-FEE8-490B-A008-6CE69BA80480}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x64.Build.0 = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.ActiveCfg = Release|Any CPU {66F605AB-247B-47C6-BB0C-614EBFCD6C1E}.Release|x86.Build.0 = Release|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x64.ActiveCfg = Debug|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x64.Build.0 = Debug|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x86.ActiveCfg = Debug|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Debug|x86.Build.0 = Debug|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|Any CPU.Build.0 = Release|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x64.ActiveCfg = Release|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x64.Build.0 = Release|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x86.ActiveCfg = Release|Any CPU - {7E5430A1-3063-4601-BA9E-4E2FB4C93503}.Release|x86.Build.0 = Release|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Debug|Any CPU.Build.0 = Debug|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Debug|x64.ActiveCfg = Debug|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Debug|x64.Build.0 = Debug|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Debug|x86.ActiveCfg = Debug|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Debug|x86.Build.0 = Debug|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Release|Any CPU.ActiveCfg = Release|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Release|Any CPU.Build.0 = Release|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Release|x64.ActiveCfg = Release|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Release|x64.Build.0 = Release|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Release|x86.ActiveCfg = Release|Any CPU + {755FEEB2-FEE8-490B-A008-6CE69BA80480}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {68D2827E-8679-4F16-B8F7-011F2DD8EF47} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {A99ED914-A8AE-49E5-A115-D0D4FD5E1926} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} {2C7C5391-8EEA-495F-AFBE-AA8877C35F8B} = {0487394E-0D5F-4D6D-83A2-26E96E7E2920} - {7E5430A1-3063-4601-BA9E-4E2FB4C93503} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} + {755FEEB2-FEE8-490B-A008-6CE69BA80480} = {8D56B996-E5C3-5DFA-8212-71CB87FB279F} EndGlobalSection EndGlobal diff --git a/src/CloudService/CloudService/Az.CloudService.psd1 b/src/CloudService/CloudService/Az.CloudService.psd1 index 8d342083df38..cc8256506495 100644 --- a/src/CloudService/CloudService/Az.CloudService.psd1 +++ b/src/CloudService/CloudService/Az.CloudService.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-08-27 +# Generated on: 2025-08-28 # @{