Skip to content

Spelling Fixes #27963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Billing/Consumption.Test/ScenarioTests/BudgetTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function Test-BudgetAtResourceGroupLevel
Assert-AreEqual $budgetName $budgetSet1.Name
Assert-AreEqual 1 $budgetSet1.Notification.Count

Write-Debug "Update the budget $budgetName with a second notificaiton $notificationKey when cost reaches a threshold of 150 percent of amount"
Write-Debug "Update the budget $budgetName with a second notification $notificationKey when cost reaches a threshold of 150 percent of amount"
$budgetSet2 = Set-AzConsumptionBudget -Name $budgetName -ResourceGroupName $resourceGroupName -NotificationKey $notificationKey2 -NotificationEnabled -NotificationThreshold 150 -ContactEmail [email protected],[email protected] -ContactRole Owner,Reader,Contributor
Assert-NotNull $budgetSet2
Assert-AreEqual $budgetName $budgetSet2.Name
Expand Down
8 changes: 4 additions & 4 deletions src/Billing/UsageAggregates/TestTheCmdLet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Connect-AzureRmAccount

Set-AzureRmSubscription -SubscriptionId $subscription

$agggregate = get-UsageAggregates -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015"
$aggregate = get-UsageAggregates -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015"

Write-Host $agggregate.NextLink
Write-Host "Result count: " + $agggregate.UsageAggregations.Count
Write-Host $aggregate.NextLink
Write-Host "Result count: " + $aggregate.UsageAggregations.Count

$agggregate.UsageAggregations | ForEach-Object {
$aggregate.UsageAggregations | ForEach-Object {
Write-Host $_.Name
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Name PrincipalId RoleDe

Elevate savings plan order

### Example 2: Elevate savings plan order via identiy
### Example 2: Elevate savings plan order via identity
```powershell
$identity = @{
SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name PrincipalId RoleDe

Elevate savings plan order

### Example 2: Elevate savings plan order via identiy
### Example 2: Elevate savings plan order via identity
```powershell
$identity = @{
SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b"
Expand Down
2 changes: 1 addition & 1 deletion src/Blueprint/Blueprint/Common/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.Blueprint.Common
public class Utils
{
/// <summary>
/// Get definition location. Either a subcscription or a management group.
/// Get definition location. Either a subscription or a management group.
/// </summary>
/// <param name="scope"></param>
/// <returns></returns>
Expand Down
2 changes: 1 addition & 1 deletion src/Blueprint/Blueprint/Models/PSBlueprintAssignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class PSBlueprintAssignment : PSAzureResourceBase
public PSAssignmentProvisioningState ProvisioningState {get; set; }

/// <summary>
/// Create a PSBluprintAssignment object from an Assignment model.
/// Create a PSBlueprintAssignment object from an Assignment model.
/// </summary>
/// <param name="assignment">Assignment object from which to create the PSBlueprintAssignment.</param>
/// <returns>A new PSBlueprintAssignment object.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Invoke-LiveTestScenario -Name "Update bot service" -Description "Test Updating o
Assert-AreEqual "bot" $actual.Kind
}

Invoke-LiveTestScenario -Name "Remove bot servcie" -Description "Test Removing a bot service" -ScenarioScript `
Invoke-LiveTestScenario -Name "Remove bot service" -Description "Test Removing a bot service" -ScenarioScript `
{
param ($rg)

Expand Down
6 changes: 3 additions & 3 deletions src/Cdn/Cdn.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ directive:
- ResponseBasedOriginErrorDetectionParameters
# Both CDN and AFDX
- HealthProbeParameters
# Generate memory object as parameter of the cmelet.
# Generate memory object as parameter of the cmdlet.
- model-cmdlet:
- model-name: ResourceReference
cmdlet-name: New-AzCdnResourceReferenceObject
Expand Down Expand Up @@ -224,7 +224,7 @@ directive:
cmdlet-name: New-AzCdnLoadParametersObject
- model-name: MigrationEndpointMapping
cmdlet-name: New-AzCdnMigrationEndpointMappingObject
# AFDX profile LogScrubbing, need to rename the memory ojects, not sure how to rename a memory object currently.
# AFDX profile LogScrubbing, need to rename the memory objects, not sure how to rename a memory object currently.
- model-name: ProfileLogScrubbing
cmdlet-name: New-AzFrontDoorCdnProfileLogScrubbingObject
- model-name: ProfileScrubbingRules
Expand Down Expand Up @@ -278,7 +278,7 @@ directive:
- where:
verb: Set
remove: true
# Remove some cmdlets' ViaIdentity which are inconvinient to call
# Remove some cmdlets' ViaIdentity which are inconvenient to call
- where:
variant: ^CheckViaIdentity$|^CheckViaIdentityExpanded$
subject: ^NameAvailability$|^EndpointNameAvailability$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
}

# We should raise a complaint if the customer did not enable managed identity when they have BYOC enabled.
# However, if the customer does not have BYOC but has specified a managed identity, we could ignore the validation for BYOC, no need to keep consisence with Portal behavior.
# However, if the customer does not have BYOC but has specified a managed identity, we could ignore the validation for BYOC, no need to keep consistence with Portal behavior.
if (($allPoliciesWithVault.count -gt 0) -and !($PSBoundParameters.ContainsKey('IdentityType')))
{
throw "IdentityType parameter should be provided when the front door has Customer Certificates."
Expand Down Expand Up @@ -269,7 +269,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
}
}

# Validate whether MigratedToId policy already exists in the subsrciption;
# Validate whether MigratedToId policy already exists in the subscription;
foreach ($policy in $wafPolicies) {
$migrateToWafId = $policy.MigratedToId
$migrateToWafArray = $policy.MigratedToId.split("/")
Expand Down Expand Up @@ -301,7 +301,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
# No need to add this parameters here, cx may add this parameter when using this command.
# $PSBoundParameters.Add('ErrorAction', 'Stop')

# Upgrade subcriptionId
# Upgrade subscriptionId
$PSBoundParameters['SubscriptionId'] = $subId
Az.Cdn.internal\Move-AzCdnProfile @PSBoundParameters

Expand All @@ -316,7 +316,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {

# 1. Enable MSI: get "principalId" from RP
$commandArgs = @{ ResourceGroupName = ${ResourceGroupName}; Name = ${ProfileName}; IdentityType = ${IdentityType}; ErrorAction = 'Stop'}
if ($indentityType -ne "systemassigned") {
if ($IdentityType -ne "systemassigned") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not change any code related names.

$commandArgs.Add('IdentityUserAssignedIdentity', ${IdentityUserAssignedIdentity})
}

Expand Down Expand Up @@ -359,7 +359,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
Write-Host("Your have successfully granted managed identity to key vault.")
}
} else {
Write-Debug("IdentityType paramter not provided and no BYOC for the current front door, skip Managed Identity step.")
Write-Debug("IdentityType parameter not provided and no BYOC for the current front door, skip Managed Identity step.")
}

Write-Host("The change need to be committed after this.")
Expand Down Expand Up @@ -502,7 +502,7 @@ function CreateNewWafPolicy {
# Remove the null/empty property
$validatedWafProperty = ValidateMigrationWafPolicyProperty -WafProperty $WafProperty

# New a waf policy, copied from the Migrtae
# New a waf policy, copied from the Migrate
New-AzFrontDoorWafPolicy -ResourceGroupName $ResourceGroupName -Name $Name -Sku $sku @validatedWafProperty | Out-Null
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ function Update-AzFrontDoorCdnProfileSku {
Set-AzContext -Subscription ${SubscriptionId}
}

# Validate the waf policy whether located in the same subscritpion as the profile.
# Validate the waf policy whether located in the same subscription as the profile.
$contextNew = Get-AzContext
if ($contextNew.Subscription.Id -ne $changeToWafPolicySubId)
{
throw "The subscritpion of existing or created Premium WAF policy should be in the same subscription as the profile's."
throw "The subscription of existing or created Premium WAF policy should be in the same subscription as the profile's."
}

# 2. Validate whether the policy already exists in the subsrciption
# 2. Validate whether the policy already exists in the subscription
try {
Get-AzFrontDoorWafPolicy -ResourceGroupName $changeToWafPolicyResourceGroup -Name $changeToWafPolicyName -ErrorAction Stop | Out-Null
} catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ Enable-AzFrontDoorCdnProfileMigration -ProfileName name-migrated -ResourceGroupN

Commit the migrated Azure Front Door(Standard/Premium) profile.

### Example 2: Commit the migrated Azure Front Door(Standard/Premium) profile., when the subscription of the profile is different from the local subscrition
### Example 2: Commit the migrated Azure Front Door(Standard/Premium) profile., when the subscription of the profile is different from the local subscription
```powershell
Enable-AzFrontDoorCdnProfileMigration -ProfileName name-migrated -ResourceGroupName rgName -SubscriptionId testSubId01
```

Commit the migrated Azure Front Door(Standard/Premium) profile, when the subscription of the profile is different from the local subscrition
Commit the migrated Azure Front Door(Standard/Premium) profile, when the subscription of the profile is different from the local subscription

## PARAMETERS

Expand Down
4 changes: 2 additions & 2 deletions src/Cdn/Cdn.Autorest/docs/Get-AzCdnEndpointResourceUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Checks the quota and usage of geo filters and custom domains under the given end

## EXAMPLES

### Example 1: List resource useages of an AzureCDN Endpoint under the AzureCDN profile
### Example 1: List resource usages of an AzureCDN Endpoint under the AzureCDN profile
```powershell
Get-AzCdnEndpointResourceUsage -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001
```
Expand All @@ -40,7 +40,7 @@ CurrentValue Limit ResourceType Unit
1 10 originsPerOriginGroup count
```

List resource useages of an AzureCDN Endpoint under the AzureCDN profile
List resource usages of an AzureCDN Endpoint under the AzureCDN profile

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Checks the quota and actual usage of endpoints under the given Azure Front Door

## EXAMPLES

### Example 1: List resource useages of an AzureFrontDoor endpoint under the profile
### Example 1: List resource usages of an AzureFrontDoor endpoint under the profile
```powershell
Get-AzFrontDoorCdnEndpointResourceUsage -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001
```
Expand All @@ -34,7 +34,7 @@ CurrentValue Limit Unit
1 100 count
```

List resource useages of an AzureFrontDoor endpoint under the profile
List resource usages of an AzureFrontDoor endpoint under the profile

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Checks the quota and actual usage of endpoints under the given Azure Front Door

## EXAMPLES

### Example 1: List resource useages of an AzureFrontDoor origin group under the profile
### Example 1: List resource usages of an AzureFrontDoor origin group under the profile
```powershell
Get-AzFrontDoorCdnOriginGroupResourceUsage -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001
```
Expand All @@ -34,7 +34,7 @@ CurrentValue Limit Unit
1 50 count
```

List resource useages of an AzureFrontDoor origin group under the profile
List resource usages of an AzureFrontDoor origin group under the profile

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Invoke-AzCdnCommitProfileToAFDMigration -ProfileName name-migrated -ResourceGrou
Commit the Migration, the Microsoft CDN (classic) profile will be upgraded AFD.
After migration/upgrade, you won’t be able to view CDN resources.

### Example 2: Commit the migrated Microsoft CDN (classic) profile, when the subscription of the profile is different from the local subscrition
### Example 2: Commit the migrated Microsoft CDN (classic) profile, when the subscription of the profile is different from the local subscription
```powershell
Invoke-AzCdnCommitProfileToAFDMigration -ProfileName name-migrated -ResourceGroupName rgName -SubscriptionId testSubId01
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RequestIPAddress EqualsAny Enabled

Create an in-memory object for ProfileScrubbingRules and the value of matchVariable is RequestIPAddress

### Example 2: Create an in-memory object for ProfileScrubbingRules and disbale the Scrubbing rule
### Example 2: Create an in-memory object for ProfileScrubbingRules and disable the Scrubbing rule
```powershell
New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestUri -State Disabled
```
Expand All @@ -46,7 +46,7 @@ MatchVariable Selector SelectorMatchOperator State
RequestUri EqualsAny Disabled
```

Create an in-memory object for ProfileScrubbingRules and disbale the Scrubbing rule
Create an in-memory object for ProfileScrubbingRules and disable the Scrubbing rule

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ When a classic AFD instance associated with more than one WAF policy and has no
Migrate the classic AFD to Azure Front Door(Standard/Premium) profile..
The change need to be committed after this.

### Example 5: When a classic AFD instance not associated with WAF and has no customer certificate, and the subscription of the classic AFD instance is different from the local subscrition.
### Example 5: When a classic AFD instance not associated with WAF and has no customer certificate, and the subscription of the classic AFD instance is different from the local subscription.
```powershell
Start-AzFrontDoorCdnProfilePrepareMigration -ResourceGroupName rgName -ClassicResourceReferenceId /subscriptions/testSubId01/resourcegroups/rgName/providers/Microsoft.Network/Frontdoors/name -ProfileName name-migrated -SkuName Standard_AzureFrontDoor -SubscriptionId testSubId01
```
Expand All @@ -126,7 +126,7 @@ MigratedProfileResourceId
/subscriptions/testSubId/resourceGroups/rgName/providers/Microsoft.Cdn/profiles/name-migrated
```

When a classic AFD instance not associated with WAF and has no customer certificate, and the subscription of the classic AFD instance is different from the local subscrition.
When a classic AFD instance not associated with WAF and has no customer certificate, and the subscription of the classic AFD instance is different from the local subscription.
Migrate the classic AFD to Azure Front Door(Standard/Premium) profile..
The change need to be committed after this.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ Stop-AzFrontDoorCdnProfileMigration -ProfileName name-migrated -ResourceGroupNam
Abort classic CDN migrate to AFDx.
This will delete all the AFD Standard or Premium configurations

### Example 2: Abort classic CDN migrate to AFDx, when the subscription of the classic CDN is different from the local subscrition
### Example 2: Abort classic CDN migrate to AFDx, when the subscription of the classic CDN is different from the local subscription
```powershell
Stop-AzFrontDoorCdnProfileMigration -ProfileName name-migrated -ResourceGroupName rgName -SubscriptionId testSubId01
```

Abort classic CDN migrate to AFDx.
When the subscription of the classic CDN is different from the local subscrition, You need to set the value of the subscription parameter.
When the subscription of the classic CDN is different from the local subscription, You need to set the value of the subscription parameter.
This will delete all the AFD Standard or Premium configurations.

## PARAMETERS
Expand Down
4 changes: 2 additions & 2 deletions src/Cdn/Cdn.Autorest/docs/Test-AzCdnNameAvailability.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This is needed for resources where name is globally unique, such as a CDN endpoi

## EXAMPLES

### Example 1: Check AzureCDN endpint name availability
### Example 1: Check AzureCDN endpoint name availability
```powershell
Test-AzCdnNameAvailability -Name endptest001 -Type Microsoft.Cdn/Profiles/Endpoints
```
Expand All @@ -54,7 +54,7 @@ Message NameAvailable Reason
Name not available False Name is already in use
```

Check AzureCDN endpint name availability
Check AzureCDN endpoint name availability

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ True Standard_AzureFrontDoor {}

Checks if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile.

### Example 2: Checks if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile, when the subscription of the CDN profile is different from the local subscrition.
### Example 2: Checks if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile, when the subscription of the CDN profile is different from the local subscription.
```powershell
Test-AzFrontDoorCdnProfileMigration -ResourceGroupName testrg -ClassicResourceReferenceId /subscriptions/testSubId01/resourcegroups/testrg/providers/Microsoft.Network/Frontdoors/frontdoorName -SubscriptionId testSubId01
```
Expand All @@ -47,7 +47,7 @@ CanMigrate DefaultSku Error
True Standard_AzureFrontDoor {}
```

Checks if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile, when the subscription of the CDN profile is different from the local subscrition.
Checks if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile, when the subscription of the CDN profile is different from the local subscription.

You need to set the value of the subscription parameter.

Expand Down
Loading