From abc32bebd5baf658100178974453b6c261850615 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:48:28 +0000 Subject: [PATCH 1/2] Move Compute to main --- src/Compute/Compute.Autorest/Az.Compute.psm1 | 2 +- src/Compute/Compute.Autorest/custom/README.md | 2 +- .../Set-AzVMRunCommand_ScriptLocalPath.ps1 | 45 +++++++++++++++++- ...Set-AzVmssVMRunCommand_ScriptLocalPath.ps1 | 46 ++++++++++++++++++- src/Compute/Compute.Autorest/docs/README.md | 2 +- .../Compute.Autorest/exports/README.md | 2 +- .../Compute.Autorest/generate-info.json | 8 ++-- src/Compute/Compute.Autorest/how-to.md | 2 +- .../Compute.Autorest/internal/README.md | 2 +- src/Compute/Compute/Az.Compute.psd1 | 6 +-- .../Compute/help/Get-AzGalleryApplication.md | 4 +- .../help/Get-AzGalleryApplicationVersion.md | 4 +- .../help/Remove-AzGalleryApplication.md | 4 +- .../Remove-AzGalleryApplicationVersion.md | 4 +- .../Compute/help/Remove-AzVMRunCommand.md | 4 +- .../Compute/help/Remove-AzVmssVMRunCommand.md | 4 +- .../Compute/help/Set-AzVmssSecurityProfile.md | 7 ++- .../help/Update-AzGalleryApplication.md | 4 +- .../Update-AzGalleryApplicationVersion.md | 4 +- 19 files changed, 120 insertions(+), 36 deletions(-) diff --git a/src/Compute/Compute.Autorest/Az.Compute.psm1 b/src/Compute/Compute.Autorest/Az.Compute.psm1 index 051b2c02cb57..67dc918911e9 100644 --- a/src/Compute/Compute.Autorest/Az.Compute.psm1 +++ b/src/Compute/Compute.Autorest/Az.Compute.psm1 @@ -33,7 +33,7 @@ } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } diff --git a/src/Compute/Compute.Autorest/custom/README.md b/src/Compute/Compute.Autorest/custom/README.md index 6979482c7799..1d30d30494cc 100644 --- a/src/Compute/Compute.Autorest/custom/README.md +++ b/src/Compute/Compute.Autorest/custom/README.md @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.Compute.DescriptionAttribute` - - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. - `Microsoft.Azure.PowerShell.Cmdlets.Compute.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Compute`. - `Microsoft.Azure.PowerShell.Cmdlets.Compute.InternalExportAttribute` diff --git a/src/Compute/Compute.Autorest/custom/Set-AzVMRunCommand_ScriptLocalPath.ps1 b/src/Compute/Compute.Autorest/custom/Set-AzVMRunCommand_ScriptLocalPath.ps1 index 3acaed5cbddb..30b4e8ebea80 100644 --- a/src/Compute/Compute.Autorest/custom/Set-AzVMRunCommand_ScriptLocalPath.ps1 +++ b/src/Compute/Compute.Autorest/custom/Set-AzVMRunCommand_ScriptLocalPath.ps1 @@ -180,7 +180,50 @@ function Set-AzVMRunCommand_ScriptLocalPath { if ($PSBoundParameters.ContainsKey("ScriptLocalPath")) { # Read Local File and add - $script = (Get-Content -Path $ScriptLocalPath) -join ";" + $script = "" + if ((Get-ChildItem $scriptLocalPath | Select-Object Extension).Extension -eq ".sh"){ + foreach ($line in Get-Content -Path $scriptLocalPath){ + $words = $line.trim().split() + $commentFound = $false + foreach ($word in $words){ + if ($word[0] -eq "#" -and $commentFound -eq $false){ + $commentFound = $true + $script += "``" + $word + " " + } + else{ + $script += $word + " " + } + } + $script = $script.trim() + #close + if ($commentFound){ + $script += "``" + } + $script += ";" + } + } + else{ + foreach ($line in Get-Content -Path $scriptLocalPath){ + $words = $line.trim().split() + $commentFound = $false + foreach ($word in $words){ + if ($word[0] -eq "#" -and $commentFound -eq $false){ + $commentFound = $true + $script += "<" + $word + " " + } + else{ + $script += $word + " " + } + } + $script = $script.trim() + #close + if ($commentFound){ + $script += "#>" + } + $script += ";" + } + } + $PSBoundParameters.Add("SourceScript", $script) # If necessary, remove the -ParameterA parameter from the dictionary of bound parameters $null = $PSBoundParameters.Remove("ScriptLocalPath") diff --git a/src/Compute/Compute.Autorest/custom/Set-AzVmssVMRunCommand_ScriptLocalPath.ps1 b/src/Compute/Compute.Autorest/custom/Set-AzVmssVMRunCommand_ScriptLocalPath.ps1 index 1777ae997bbf..26035344ba21 100644 --- a/src/Compute/Compute.Autorest/custom/Set-AzVmssVMRunCommand_ScriptLocalPath.ps1 +++ b/src/Compute/Compute.Autorest/custom/Set-AzVmssVMRunCommand_ScriptLocalPath.ps1 @@ -185,8 +185,50 @@ function Set-AzVmssVMRunCommand_ScriptLocalPath { process { if ($PSBoundParameters.ContainsKey("ScriptLocalPath")) { - # Read Local File and add - $script = (Get-Content -Path $ScriptLocalPath) -join ";" + # Read Local File and add + $script = "" + if ((Get-ChildItem $scriptLocalPath | Select-Object Extension).Extension -eq ".sh"){ + foreach ($line in Get-Content -Path $scriptLocalPath){ + $words = $line.trim().split() + $commentFound = $false + foreach ($word in $words){ + if ($word[0] -eq "#" -and $commentFound -eq $false){ + $commentFound = $true + $script += "``" + $word + " " + } + else{ + $script += $word + " " + } + } + $script = $script.trim() + #close + if ($commentFound){ + $script += "``" + } + $script += ";" + } + } + else{ + foreach ($line in Get-Content -Path $scriptLocalPath){ + $words = $line.trim().split() + $commentFound = $false + foreach ($word in $words){ + if ($word[0] -eq "#" -and $commentFound -eq $false){ + $commentFound = $true + $script += "<" + $word + " " + } + else{ + $script += $word + " " + } + } + $script = $script.trim() + #close + if ($commentFound){ + $script += "#>" + } + $script += ";" + } + } $PSBoundParameters.Add("SourceScript", $script) # If necessary, remove the -ParameterA parameter from the dictionary of bound parameters $null = $PSBoundParameters.Remove("ScriptLocalPath") diff --git a/src/Compute/Compute.Autorest/docs/README.md b/src/Compute/Compute.Autorest/docs/README.md index 7eba82a643bf..6a2aa34d6f94 100644 --- a/src/Compute/Compute.Autorest/docs/README.md +++ b/src/Compute/Compute.Autorest/docs/README.md @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.Compute` mo - Packaged: yes ## Details -The process of documentation generation loads `Az.Compute` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.Compute` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/Compute/Compute.Autorest/exports/README.md b/src/Compute/Compute.Autorest/exports/README.md index 8e8766e439c4..70952d3c9947 100644 --- a/src/Compute/Compute.Autorest/exports/README.md +++ b/src/Compute/Compute.Autorest/exports/README.md @@ -1,5 +1,5 @@ # Exports -This directory contains the cmdlets *exported by* `Az.Compute`. No other cmdlets in this repository are directly exported. What that means is the `Az.Compute` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains the cmdlets *exported by* `Az.Compute`. No other cmdlets in this repository are directly exported. What that means is the `Az.Compute` module will run [Export-ModuleMember](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no diff --git a/src/Compute/Compute.Autorest/generate-info.json b/src/Compute/Compute.Autorest/generate-info.json index f0adeb59123d..f5232e36333d 100644 --- a/src/Compute/Compute.Autorest/generate-info.json +++ b/src/Compute/Compute.Autorest/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_core": "3.9.3", - "swagger_commit": "c583b05741fadfdca116be3b9ccb1c4be8a73258", + "autorest_modelerfour": "4.15.414", "autorest_powershell": "3.0.498", + "autorest_core": "3.9.4", "autorest": "`-- (empty)", - "node": "v14.15.5", - "autorest_modelerfour": "4.15.414" + "swagger_commit": "18e83e24c36eed85a240103b476de0220ace7f84", + "node": "v14.15.5" } diff --git a/src/Compute/Compute.Autorest/how-to.md b/src/Compute/Compute.Autorest/how-to.md index 865fb53fe262..7b0ea7d480d4 100644 --- a/src/Compute/Compute.Autorest/how-to.md +++ b/src/Compute/Compute.Autorest/how-to.md @@ -14,7 +14,7 @@ To generate documentation, the process is now integrated into the `build-module. To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. ## Packing `Az.Compute` -To pack `Az.Compute` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +To pack `Az.Compute` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details There are multiple scripts created for performing different actions for developing `Az.Compute`. diff --git a/src/Compute/Compute.Autorest/internal/README.md b/src/Compute/Compute.Autorest/internal/README.md index b2cc5ed24e15..941a199792a0 100644 --- a/src/Compute/Compute.Autorest/internal/README.md +++ b/src/Compute/Compute.Autorest/internal/README.md @@ -8,7 +8,7 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that - Packaged: yes ## Details -The `Az.Compute.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.Compute`. Instead, this sub-module is imported by the `..\custom\Az.Compute.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.Compute.internal\Get-Example` would call an internal cmdlet named `Get-Example`. +The `Az.Compute.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.Compute`. Instead, this sub-module is imported by the `..\custom\Az.Compute.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.Compute.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.Compute`. diff --git a/src/Compute/Compute/Az.Compute.psd1 b/src/Compute/Compute/Az.Compute.psd1 index 7ba92b5fdc13..e389f3352116 100644 --- a/src/Compute/Compute/Az.Compute.psd1 +++ b/src/Compute/Compute/Az.Compute.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/6/2023 +# Generated on: 1/30/2023 # @{ @@ -220,7 +220,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Compute','IAAS','VM','VirtualMachine' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Compute', 'IAAS', 'VM', 'VirtualMachine' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -248,7 +248,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Compute/Compute/help/Get-AzGalleryApplication.md b/src/Compute/Compute/help/Get-AzGalleryApplication.md index 8918d350630b..d391f3bcee46 100644 --- a/src/Compute/Compute/help/Get-AzGalleryApplication.md +++ b/src/Compute/Compute/help/Get-AzGalleryApplication.md @@ -165,9 +165,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Get-AzGalleryApplicationVersion.md b/src/Compute/Compute/help/Get-AzGalleryApplicationVersion.md index 4a2358ba9a7a..0d382162f0e5 100644 --- a/src/Compute/Compute/help/Get-AzGalleryApplicationVersion.md +++ b/src/Compute/Compute/help/Get-AzGalleryApplicationVersion.md @@ -197,9 +197,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Remove-AzGalleryApplication.md b/src/Compute/Compute/help/Remove-AzGalleryApplication.md index c2f522262081..57883ab92430 100644 --- a/src/Compute/Compute/help/Remove-AzGalleryApplication.md +++ b/src/Compute/Compute/help/Remove-AzGalleryApplication.md @@ -230,9 +230,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Remove-AzGalleryApplicationVersion.md b/src/Compute/Compute/help/Remove-AzGalleryApplicationVersion.md index f91f2b10d0ad..b16a19dced9c 100644 --- a/src/Compute/Compute/help/Remove-AzGalleryApplicationVersion.md +++ b/src/Compute/Compute/help/Remove-AzGalleryApplicationVersion.md @@ -245,9 +245,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Remove-AzVMRunCommand.md b/src/Compute/Compute/help/Remove-AzVMRunCommand.md index 9b430a57dca5..02f1b31bea56 100644 --- a/src/Compute/Compute/help/Remove-AzVMRunCommand.md +++ b/src/Compute/Compute/help/Remove-AzVMRunCommand.md @@ -230,9 +230,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Remove-AzVmssVMRunCommand.md b/src/Compute/Compute/help/Remove-AzVmssVMRunCommand.md index 4bc1e009e41e..bf03a6b0e2a3 100644 --- a/src/Compute/Compute/help/Remove-AzVmssVMRunCommand.md +++ b/src/Compute/Compute/help/Remove-AzVmssVMRunCommand.md @@ -245,9 +245,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Set-AzVmssSecurityProfile.md b/src/Compute/Compute/help/Set-AzVmssSecurityProfile.md index c49934296938..94ca3056c0fe 100644 --- a/src/Compute/Compute/help/Set-AzVmssSecurityProfile.md +++ b/src/Compute/Compute/help/Set-AzVmssSecurityProfile.md @@ -34,7 +34,7 @@ The second command sets the SecurityType enum to "TrustedLaunch". ### Example 2: Create a Confidential Vmss resource with encryption type VMGuestStateOnly. ```powershell - # Common Variables +# Common Variables $rgname = $loc = "northeurope" New-AzResourceGroup -Name $rgname -Location $loc -Force @@ -92,7 +92,7 @@ The second command sets the SecurityType enum to "TrustedLaunch". ### Example 3: Create a Confidential Vmss resource with encryption type DiskWithVMGuestState and Image reference Disk Encryption set to EncryptedWithPmk. ```powershell - # Common variables +# Common variables $rgname = $loc = "northeurope" New-AzResourceGroup -ResourceGroupName $rgName -Location $loc -Force @@ -226,7 +226,7 @@ The second command sets the SecurityType enum to "TrustedLaunch". ### Example 4: Create a Confidential Vmss resource with encryption type DiskWithVMGuestState and Image reference Disk Encryption set to EncryptedWithCmk. ```powershell - # Common Variables +# Common Variables $rgname = ; $loc = "northeurope"; @@ -387,7 +387,6 @@ The second command sets the SecurityType enum to "TrustedLaunch". # Verify the Gallery Version encyrption at $galVersion.PublishingProfile.TargetRegions.Encryption.OSDiskImage.SecurityProfile.ConfidentialVMEncryptionType $cvmEncryptionType; ``` - ## PARAMETERS ### -DefaultProfile diff --git a/src/Compute/Compute/help/Update-AzGalleryApplication.md b/src/Compute/Compute/help/Update-AzGalleryApplication.md index a0a39b12721d..ae6383c3ab6b 100644 --- a/src/Compute/Compute/help/Update-AzGalleryApplication.md +++ b/src/Compute/Compute/help/Update-AzGalleryApplication.md @@ -248,9 +248,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. diff --git a/src/Compute/Compute/help/Update-AzGalleryApplicationVersion.md b/src/Compute/Compute/help/Update-AzGalleryApplicationVersion.md index 6bdf15d2bfe2..ac1ab7b4f891 100644 --- a/src/Compute/Compute/help/Update-AzGalleryApplicationVersion.md +++ b/src/Compute/Compute/help/Update-AzGalleryApplicationVersion.md @@ -359,9 +359,9 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - `[CommandId ]`: The command id. - `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryImageName ]`: The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. - - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: `..` + - `[GalleryImageVersionName ]`: The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .. - `[GalleryName ]`: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. - `[Id ]`: Resource identity path - `[InstanceId ]`: The instance ID of the virtual machine. From 6c8d2f3737c9448567b085eb2e9dbc1416a277b8 Mon Sep 17 00:00:00 2001 From: Yeming Liu <11371776+isra-fel@users.noreply.github.com> Date: Tue, 31 Jan 2023 13:18:45 +0800 Subject: [PATCH 2/2] Update ChangeLog.md --- src/Compute/Compute/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index 8e05524b2bfc..03df6b1a7718 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -25,6 +25,7 @@ * Filled in missing parameter descriptions across multiple parameters and improved some existing parameter descriptions. * Updated Compute PS to use the new .Net SDK version 59.0.0. This includes an approved breaking change for a non-functional feature. - The type of the property `Source` of type `Microsoft.Azure.Management.Compute.Models.GalleryDataDiskImage`, `Microsoft.Azure.Management.Compute.Models.GalleryOSDiskImage`, and `Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile` has changed from `Microsoft.Azure.Management.Compute.Models.GalleryArtifactVersionSource` to `Microsoft.Azure.Management.Compute.Models.GalleryDiskImageSource`. +* Updated Set-AzVMRunCommand and Set-AzVmssRunCommand ScriptLocalPath parameter set to work with Linux and with files that have comments. ## Version 5.3.0 * Removed the image `Win2008R2SP1` from the list of available images and documentation. This image is no longer available on the backend so the client tools need to sync to that change.