Skip to content

fix: replace non-ASCII en-dash with ASCII hyphen in Update-AzFunction…#29680

Merged
YanaXu merged 1 commit into
mainfrom
yanxu/fix_dash2
May 25, 2026
Merged

fix: replace non-ASCII en-dash with ASCII hyphen in Update-AzFunction…#29680
YanaXu merged 1 commit into
mainfrom
yanxu/fix_dash2

Conversation

@YanaXu
Copy link
Copy Markdown
Contributor

@YanaXu YanaXu commented May 25, 2026

…App.ps1

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings May 25, 2026 06:59
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@YanaXu YanaXu enabled auto-merge (squash) May 25, 2026 07:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces non-ASCII dash characters (e.g., en-dash/em-dash) with ASCII hyphens across several PowerShell cmdlet implementations and scenario/Pester tests to prevent PowerShell parsing/parameter-binding failures and improve consistency.

Changes:

  • Replaced non-ASCII parameter-prefix dashes in multiple scenario tests (fixes commands that would otherwise fail to run).
  • Replaced non-ASCII punctuation in comments/help text and a user-facing error message.
  • Normalized several file headers/first lines where the non-ASCII characters appeared.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/StackHCI/StackHCI.Autorest/test/StackHCI-Registration.Tests.ps1 Replaces non-ASCII punctuation in a test comment.
src/StackHCI/StackHCI.Autorest/custom/stackhci.ps1 Replaces non-ASCII punctuation in comments.
src/Sql/Sql.Test/ScenarioTests/FailoverGroupTests.ps1 Fixes non-ASCII parameter-prefix dashes in test cmdlet invocations.
src/Sql/Sql.Test/ScenarioTests/ElasticPoolCrudTests.ps1 Fixes non-ASCII parameter-prefix dash in a test cmdlet invocation.
src/SecurityInsights/SecurityInsights.Autorest/test/utils.ps1 Replaces non-ASCII punctuation in a comment.
src/SecurityInsights/SecurityInsights.Autorest/test/Remove-AzSentinelDataConnector.Tests.ps1 Replaces non-ASCII punctuation in a test comment.
src/Resources/Resources.Test/ScenarioTests/DenyAssignmentCrudTests.ps1 Replaces non-ASCII punctuation in comments.
src/RecoveryServices/RecoveryServices.Backup.Test/ScenarioTests/AzureWorkload/ItemTests.ps1 Fixes non-ASCII parameter-prefix dashes in piped cmdlet invocations.
src/Network/Network.Test/ScenarioTests/SecurityPartnerProviderTests.ps1 Fixes non-ASCII parameter-prefix dashes in test cmdlet invocations.
src/Network/Network.Test/ScenarioTests/AzureFirewallTests.ps1 Fixes non-ASCII parameter-prefix dashes in test cmdlet invocations.
src/Network/Network.Test/ScenarioTests/AzureFirewallIpGroupTests.ps1 Fixes non-ASCII parameter-prefix dash in a test cmdlet invocation.
src/KeyVault/KeyVault.Test/Scripts/Common.ps1 Fixes non-ASCII parameter-prefix dashes in filesystem cmdlets used by tests.
src/Functions/Functions.Autorest/test/Sanitize-Recordings.ps1 Replaces non-ASCII punctuation in a comment.
src/Functions/Functions.Autorest/custom/Update-AzFunctionApp.ps1 Replaces non-ASCII punctuation in a user-facing error message.
src/EdgeMarketplace/EdgeMarketplace.Autorest/custom/Request-AzEdgeMarketplaceOfferAccessToken.ps1 Replaces non-ASCII punctuation in comment-based help text.
src/DynatraceObservability/DynatraceObservability.Autorest/test/New-AzDynatraceMonitoredSubscription.Tests.ps1 Replaces non-ASCII punctuation in a test comment.
src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 Replaces non-ASCII character at file start (line impacted also contains path concatenation).
src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Tests.ps1 Replaces non-ASCII punctuation in a test comment.
src/DataProtection/DataProtection.Autorest/custom/Helpers/PolicyHelpers.ps1 Replaces non-ASCII punctuation in a comment.
src/CustomLocation/CustomLocation.Autorest/test/utils.ps1 Fixes non-ASCII parameter-prefix dash in Start-Sleep usage.
src/AppConfiguration/AppConfigurationdata.Autorest/test/utils.ps1 Replaces non-ASCII punctuation in a comment.
src/ApiManagement/ApiManagement.ServiceManagement.Test/ScenarioTests/ApiManagementTests.ps1 Fixes non-ASCII parameter-prefix dashes across New-Object and Az cmdlet invocations in scenario tests.

Comment on lines 2 to +6
.SYNOPSIS
This cmdlet combines New-AzEdgeMarketplaceOfferAccessToken and Get-AzEdgeMarketplaceOfferAccessToken to generate access token and retrieve the final SAS token when the disk is readyenabling clients to download marketplace images to their edge devices.
This cmdlet combines New-AzEdgeMarketplaceOfferAccessToken and Get-AzEdgeMarketplaceOfferAccessToken to generate access token and retrieve the final SAS token when the disk is ready-enabling clients to download marketplace images to their edge devices.

.DESCRIPTION
This cmdlet combines New-AzEdgeMarketplaceOfferAccessToken and Get-AzEdgeMarketplaceOfferAccessToken to generate access token and retrieve the final SAS token when the disk is readyenabling clients to download marketplace images to their edge devices.
This cmdlet combines New-AzEdgeMarketplaceOfferAccessToken and Get-AzEdgeMarketplaceOfferAccessToken to generate access token and retrieve the final SAS token when the disk is ready-enabling clients to download marketplace images to their edge devices.
Comment on lines +1 to 3
."$PSScriptRoot\testDataGenerator.ps1"
."$PSScriptRoot\virtualNetworkClient.ps1"
."$PSScriptRoot\stringExtensions.ps1"
if ($existingFunctionApp.Kind -and $existingFunctionApp.Kind.ToString() -match "azurecontainerapps")
{
$errorMessage = "Update-AzFunctionApp does not support updating Container Appshosted function apps."
$errorMessage = "Update-AzFunctionApp does not support updating Container Apps-hosted function apps."
@Pan-Qi Pan-Qi disabled auto-merge May 25, 2026 07:31
@YanaXu YanaXu enabled auto-merge (squash) May 25, 2026 07:33
@YanaXu YanaXu merged commit 92eb52a into main May 25, 2026
13 checks passed
@YanaXu YanaXu deleted the yanxu/fix_dash2 branch May 25, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants