From a5d4c13105c7b6efbc31a3b6029b3cbe36e88e9c Mon Sep 17 00:00:00 2001 From: "evan1126@" Date: Wed, 16 Feb 2022 14:46:15 +0800 Subject: [PATCH 1/2] Split Az.Functions Examples in generation --- src/Functions/docs/Get-AzFunctionApp.md | 20 +++++++++--- .../Get-AzFunctionAppAvailableLocation.md | 12 +++++-- src/Functions/docs/Get-AzFunctionAppPlan.md | 16 +++++++--- .../docs/Get-AzFunctionAppSetting.md | 2 +- src/Functions/docs/New-AzFunctionApp.md | 6 ++-- src/Functions/docs/New-AzFunctionAppPlan.md | 2 +- src/Functions/docs/Remove-AzFunctionApp.md | 4 +-- .../docs/Remove-AzFunctionAppPlan.md | 4 +-- .../docs/Remove-AzFunctionAppSetting.md | 2 +- src/Functions/docs/Restart-AzFunctionApp.md | 4 +-- src/Functions/docs/Start-AzFunctionApp.md | 4 +-- src/Functions/docs/Stop-AzFunctionApp.md | 4 +-- src/Functions/docs/Update-AzFunctionApp.md | 8 ++--- .../docs/Update-AzFunctionAppPlan.md | 2 +- .../docs/Update-AzFunctionAppSetting.md | 2 +- src/Functions/examples/Get-AzFunctionApp.md | 20 +++++++++--- .../Get-AzFunctionAppAvailableLocation.md | 12 +++++-- .../examples/Get-AzFunctionAppPlan.md | 16 +++++++--- .../examples/Get-AzFunctionAppSetting.md | 2 +- src/Functions/examples/New-AzFunctionApp.md | 31 +++++++++---------- .../examples/New-AzFunctionAppPlan.md | 15 +++++---- .../examples/Remove-AzFunctionApp.md | 4 +-- .../examples/Remove-AzFunctionAppPlan.md | 4 +-- .../examples/Remove-AzFunctionAppSetting.md | 2 +- .../examples/Restart-AzFunctionApp.md | 4 +-- src/Functions/examples/Start-AzFunctionApp.md | 4 +-- src/Functions/examples/Stop-AzFunctionApp.md | 4 +-- .../examples/Update-AzFunctionApp.md | 8 ++--- .../examples/Update-AzFunctionAppPlan.md | 11 +++---- .../examples/Update-AzFunctionAppSetting.md | 2 +- 30 files changed, 138 insertions(+), 93 deletions(-) diff --git a/src/Functions/docs/Get-AzFunctionApp.md b/src/Functions/docs/Get-AzFunctionApp.md index 19c2ea448305..07be282e5e54 100644 --- a/src/Functions/docs/Get-AzFunctionApp.md +++ b/src/Functions/docs/Get-AzFunctionApp.md @@ -42,8 +42,10 @@ Gets function apps in a subscription. ### Example 1: Get all function apps. ```powershell -PS C:\> Get-AzFunctionApp +Get-AzFunctionApp +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -54,8 +56,10 @@ Functions1-Windows-Java Running Windows Java West Europe Premium1-WE Func ### Example 2: Get function apps by name. ```powershell -PS C:\> Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet +Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -65,8 +69,10 @@ Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Funct ### Example 3: Get function apps by resource group name. ```powershell -PS C:\> Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win +Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -76,8 +82,10 @@ Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Funct ### Example 4: Get function apps for the given subscriptions. ```powershell -PS C:\> Get-AzFunctionApp -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8b +Get-AzFunctionApp -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8b +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -87,8 +95,10 @@ Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Funct ### Example 5: Get function apps by location. ```powershell -PS C:\> Get-AzFunctionApp -Location "Central US" +Get-AzFunctionApp -Location "Central US" +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b diff --git a/src/Functions/docs/Get-AzFunctionAppAvailableLocation.md b/src/Functions/docs/Get-AzFunctionAppAvailableLocation.md index 5e2614bbd28f..c90a06795afb 100644 --- a/src/Functions/docs/Get-AzFunctionAppAvailableLocation.md +++ b/src/Functions/docs/Get-AzFunctionAppAvailableLocation.md @@ -24,8 +24,10 @@ Gets the location where a function app for the given os and plan type is availab ### Example 1: Get the locations where Premium is available for Windows. If no parameters are specified, PlanType is set to 'Premium' and OSType is set to 'Windows'. ```powershell -PS C:\> Get-AzFunctionAppAvailableLocation +Get-AzFunctionAppAvailableLocation +``` +```output Name ---- Central US @@ -64,8 +66,10 @@ This command gets the locations where Premium is available for Windows. ### Example 2: Get the locations where Premium is available for Linux. ```powershell -PS C:\> Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux +Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux +``` +```output Name ---- Central US @@ -99,8 +103,10 @@ This command gets the locations where Premium is available for Linux. ### Example 3: Get the locations where Consumption is available for Windows. ```powershell -PS C:\> Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows +Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows +``` +```output Name ---- Central US diff --git a/src/Functions/docs/Get-AzFunctionAppPlan.md b/src/Functions/docs/Get-AzFunctionAppPlan.md index c9da1599ef16..ad926fae6ce3 100644 --- a/src/Functions/docs/Get-AzFunctionAppPlan.md +++ b/src/Functions/docs/Get-AzFunctionAppPlan.md @@ -42,8 +42,10 @@ Get function apps plans in a subscription. ### Example 1: Get all function app plans. ```powershell -PS C:\> Get-AzFunctionAppPlan +Get-AzFunctionAppPlan +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Linux-Premium Linux ElasticPremium EP1 West Europe Func99-West-Europe-Linux-Premium fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -59,8 +61,10 @@ This command gets all function app plans. ### Example 2: Get function app plans by resource group name. ```powershell -PS C:\> Get-AzFunctionAppPlan -ResourceGroupName "West Europe" +Get-AzFunctionAppPlan -ResourceGroupName "West Europe" +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Linux-Premium Linux ElasticPremium EP1 West Europe Func99-West-Europe-Linux-Premium fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -72,8 +76,10 @@ This command gets function app plans by resource group name. ### Example 3: Get function app plans for the given subscriptions. ```powershell -PS C:\> Get-AzFunctionAppPlan -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8z +Get-AzFunctionAppPlan -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8z +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Windows-Premium Windows ElasticPremium EP1 West Europe Func99-West-Europe-Win-Premium fe16564a-d943-4bf8-8c28-cf01708c3f8z @@ -83,8 +89,10 @@ This command gets function app plans for the given subscriptions. ### Example 4: Get function app plans by location. ```powershell -PS C:\> Get-AzFunctionAppPlan -Location "Central US" +Get-AzFunctionAppPlan -Location "Central US" +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Windows-Premium Windows ElasticPremium EP1 Central US Func99-West-Europe-Win-Premium 3r16564a-d943-4bf8-8c28-cf01708c3f8b diff --git a/src/Functions/docs/Get-AzFunctionAppSetting.md b/src/Functions/docs/Get-AzFunctionAppSetting.md index 9ee0ee700970..41ef71d959ec 100644 --- a/src/Functions/docs/Get-AzFunctionAppSetting.md +++ b/src/Functions/docs/Get-AzFunctionAppSetting.md @@ -31,7 +31,7 @@ Gets app settings for a function app. ### Example 1: Get the app settings of a function app. ```powershell -PS C:\> Get-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName +Get-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName ``` This command gets the app settings of a function app. diff --git a/src/Functions/docs/New-AzFunctionApp.md b/src/Functions/docs/New-AzFunctionApp.md index fb449c819aaa..a5016a23f038 100644 --- a/src/Functions/docs/New-AzFunctionApp.md +++ b/src/Functions/docs/New-AzFunctionApp.md @@ -48,7 +48,7 @@ Creates a function app. ### Example 1: Create a consumption PowerShell function app in Central US. ```powershell -PS C:\> New-AzFunctionApp -Name MyUniqueFunctionAppName ` +New-AzFunctionApp -Name MyUniqueFunctionAppName ` -ResourceGroupName MyResourceGroupName ` -Location centralUS ` -StorageAccount MyStorageAccountName ` @@ -59,7 +59,7 @@ This command creates a consumption PowerShell function app in Central US. ### Example 2: Create a PowerShell function app which will be hosted in a service plan. ```powershell -PS C:\> New-AzFunctionApp -Name MyUniqueFunctionAppName ` +New-AzFunctionApp -Name MyUniqueFunctionAppName ` -ResourceGroupName MyResourceGroupName ` -PlanName MyPlanName ` -StorageAccount MyStorageAccountName ` @@ -70,7 +70,7 @@ This command creates a PowerShell function app which will be hosted in a service ### Example 3: Create a function app using a using a private ACR image. ```powershell -PS C:\> New-AzFunctionApp -Name MyUniqueFunctionAppName ` +New-AzFunctionApp -Name MyUniqueFunctionAppName ` -ResourceGroupName MyResourceGroupName ` -PlanName MyPlanName ` -StorageAccount MyStorageAccountName ` diff --git a/src/Functions/docs/New-AzFunctionAppPlan.md b/src/Functions/docs/New-AzFunctionAppPlan.md index bc93d07b7320..66a8bc594286 100644 --- a/src/Functions/docs/New-AzFunctionAppPlan.md +++ b/src/Functions/docs/New-AzFunctionAppPlan.md @@ -25,7 +25,7 @@ Creates a function app service plan. ### Example 1: Create a Windows premium app plan in West Europe with burst out capability up to 10 instances. ```powershell -PS C:\> New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` +New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` -Name MyPremiumPlan ` -Location WestEurope ` -MinimumWorkerCount 1 ` diff --git a/src/Functions/docs/Remove-AzFunctionApp.md b/src/Functions/docs/Remove-AzFunctionApp.md index 6c5e2b75e60a..3b7a35ff8b0d 100644 --- a/src/Functions/docs/Remove-AzFunctionApp.md +++ b/src/Functions/docs/Remove-AzFunctionApp.md @@ -31,14 +31,14 @@ Deletes a function app. ### Example 1: Get a function app by name and delete it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionApp -Force +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionApp -Force ``` This command gets a function app by name and delete it. ### Example 2: Delete a function app by name. ```powershell -PS C:\> Remove-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Remove-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command deletes a function app by name. diff --git a/src/Functions/docs/Remove-AzFunctionAppPlan.md b/src/Functions/docs/Remove-AzFunctionAppPlan.md index 3b825b38640e..42e9c5d5615d 100644 --- a/src/Functions/docs/Remove-AzFunctionAppPlan.md +++ b/src/Functions/docs/Remove-AzFunctionAppPlan.md @@ -31,14 +31,14 @@ Deletes a function app plan. ### Example 1: Get a function app plan by name and delete it. ```powershell -PS C:\> Get-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionAppPlan -Force +Get-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionAppPlan -Force ``` This command gets a function app plan by name and deletes it. ### Example 2: Delete a function app plan by name. ```powershell -PS C:\> Remove-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Remove-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command deletes a function app plan by name. diff --git a/src/Functions/docs/Remove-AzFunctionAppSetting.md b/src/Functions/docs/Remove-AzFunctionAppSetting.md index a584413e49e6..a3f125b053cc 100644 --- a/src/Functions/docs/Remove-AzFunctionAppSetting.md +++ b/src/Functions/docs/Remove-AzFunctionAppSetting.md @@ -31,7 +31,7 @@ Removes app settings from a function app. ### Example 1: Remove app settings in a function app. ```powershell -PS C:\> Remove-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSettingName "MyAppSetting1", "MyAppSetting2" +Remove-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSettingName "MyAppSetting1", "MyAppSetting2" ``` This command removes app settings in a function app. diff --git a/src/Functions/docs/Restart-AzFunctionApp.md b/src/Functions/docs/Restart-AzFunctionApp.md index 388d2b170749..4c2666251af4 100644 --- a/src/Functions/docs/Restart-AzFunctionApp.md +++ b/src/Functions/docs/Restart-AzFunctionApp.md @@ -31,14 +31,14 @@ Restarts a function app. ### Example 1: Get a function app by name and restart it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Restart-AzFunctionApp -Force +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Restart-AzFunctionApp -Force ``` This command gets a function app by name and restarts it. ### Example 2: Restart a function app by name. ```powershell -PS C:\> Restart-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Restart-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command restarts a function app by name. diff --git a/src/Functions/docs/Start-AzFunctionApp.md b/src/Functions/docs/Start-AzFunctionApp.md index ae29d61080d2..165e75842741 100644 --- a/src/Functions/docs/Start-AzFunctionApp.md +++ b/src/Functions/docs/Start-AzFunctionApp.md @@ -31,14 +31,14 @@ Starts a function app. ### Example 1: Get a function app by name and start it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Start-AzFunctionApp +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Start-AzFunctionApp ``` This command gets a function app by name and starts it. ### Example 2: Start a function app by name. ```powershell -PS C:\> Start-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName +Start-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName ``` This command starts a function app by name. diff --git a/src/Functions/docs/Stop-AzFunctionApp.md b/src/Functions/docs/Stop-AzFunctionApp.md index 2d3ae36e7bfb..fa2dcb14aa8f 100644 --- a/src/Functions/docs/Stop-AzFunctionApp.md +++ b/src/Functions/docs/Stop-AzFunctionApp.md @@ -31,14 +31,14 @@ Stops a function app. ### Example 1: Get a function app by name and stop it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Stop-AzFunctionApp -Force +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Stop-AzFunctionApp -Force ``` This command gets a function app by name and stops it. ### Example 2: Stop a function app by name. ```powershell -PS C:\> Stop-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Stop-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command stops a function app by name. diff --git a/src/Functions/docs/Update-AzFunctionApp.md b/src/Functions/docs/Update-AzFunctionApp.md index 8ffe69903832..f71d0f314485 100644 --- a/src/Functions/docs/Update-AzFunctionApp.md +++ b/src/Functions/docs/Update-AzFunctionApp.md @@ -35,28 +35,28 @@ Updates a function app. ### Example 1: Update function app hosting plan. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -PlanName NewPlanName -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -PlanName NewPlanName -Force ``` This command updates function app hosting plan. ### Example 2: Set a SystemAssigned managed identity for a function app. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType SystemAssigned -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType SystemAssigned -Force ``` This command sets a SystemAssigned managed identity for a function app. ### Example 3: Update function app Application Insights. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -ApplicationInsightsName ApplicationInsightsProjectName -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -ApplicationInsightsName ApplicationInsightsProjectName -Force ``` This command updates function app Application Insights. ### Example 3: Remove managed identity from a function app. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType None -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType None -Force ``` This command removes a managed identity from a function app. diff --git a/src/Functions/docs/Update-AzFunctionAppPlan.md b/src/Functions/docs/Update-AzFunctionAppPlan.md index c9822845ab45..7d3cc0851c25 100644 --- a/src/Functions/docs/Update-AzFunctionAppPlan.md +++ b/src/Functions/docs/Update-AzFunctionAppPlan.md @@ -33,7 +33,7 @@ Updates a function app service plan. ### Example 1: Update an app service plan to EP2 sku with twenty maximum workers. ```powershell -PS C:\> Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` +Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` -Name MyPremiumPlan ` -MaximumWorkerCount 20 ` -Sku EP2 ` diff --git a/src/Functions/docs/Update-AzFunctionAppSetting.md b/src/Functions/docs/Update-AzFunctionAppSetting.md index 9c64ba4e3684..63828ddbe1e9 100644 --- a/src/Functions/docs/Update-AzFunctionAppSetting.md +++ b/src/Functions/docs/Update-AzFunctionAppSetting.md @@ -31,7 +31,7 @@ Adds or updates app settings in a function app. ### Example 1: Add a new app setting in a function app. ```powershell -PS C:\> Update-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSetting @{"Name1" = "Value1"} +Update-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSetting @{"Name1" = "Value1"} ``` This command adds a new app setting in a function app. diff --git a/src/Functions/examples/Get-AzFunctionApp.md b/src/Functions/examples/Get-AzFunctionApp.md index c0bba78173c4..1f94d5e59bc2 100644 --- a/src/Functions/examples/Get-AzFunctionApp.md +++ b/src/Functions/examples/Get-AzFunctionApp.md @@ -1,8 +1,10 @@ ### Example 1: Get all function apps. ```powershell -PS C:\> Get-AzFunctionApp +Get-AzFunctionApp +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -12,8 +14,10 @@ Functions1-Windows-Java Running Windows Java West Europe Premium1-WE Func ### Example 2: Get function apps by name. ```powershell -PS C:\> Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet +Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -22,8 +26,10 @@ Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Funct ### Example 3: Get function apps by resource group name. ```powershell -PS C:\> Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win +Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -32,8 +38,10 @@ Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Funct ### Example 4: Get function apps for the given subscriptions. ```powershell -PS C:\> Get-AzFunctionApp -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8b +Get-AzFunctionApp -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8b +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -42,8 +50,10 @@ Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Funct ### Example 5: Get function apps by location. ```powershell -PS C:\> Get-AzFunctionApp -Location "Central US" +Get-AzFunctionApp -Location "Central US" +``` +```output Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId ---- ------ ------ ------- -------- -------------- ----------------- -------------- Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win fe16564a-d943-4bf8-8c28-cf01708c3f8b diff --git a/src/Functions/examples/Get-AzFunctionAppAvailableLocation.md b/src/Functions/examples/Get-AzFunctionAppAvailableLocation.md index 4ec8821ec672..dc9a87911a89 100644 --- a/src/Functions/examples/Get-AzFunctionAppAvailableLocation.md +++ b/src/Functions/examples/Get-AzFunctionAppAvailableLocation.md @@ -1,8 +1,10 @@ ### Example 1: Get the locations where Premium is available for Windows. If no parameters are specified, PlanType is set to 'Premium' and OSType is set to 'Windows'. ```powershell -PS C:\> Get-AzFunctionAppAvailableLocation +Get-AzFunctionAppAvailableLocation +``` +```output Name ---- Central US @@ -42,8 +44,10 @@ This command gets the locations where Premium is available for Windows. ### Example 2: Get the locations where Premium is available for Linux. ```powershell -PS C:\> Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux +Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux +``` +```output Name ---- Central US @@ -78,8 +82,10 @@ This command gets the locations where Premium is available for Linux. ### Example 3: Get the locations where Consumption is available for Windows. ```powershell -PS C:\> Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows +Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows +``` +```output Name ---- Central US diff --git a/src/Functions/examples/Get-AzFunctionAppPlan.md b/src/Functions/examples/Get-AzFunctionAppPlan.md index a75faf6279c9..3e436b3ec171 100644 --- a/src/Functions/examples/Get-AzFunctionAppPlan.md +++ b/src/Functions/examples/Get-AzFunctionAppPlan.md @@ -1,8 +1,10 @@ ### Example 1: Get all function app plans. ```powershell -PS C:\> Get-AzFunctionAppPlan +Get-AzFunctionAppPlan +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Linux-Premium Linux ElasticPremium EP1 West Europe Func99-West-Europe-Linux-Premium fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -18,8 +20,10 @@ This command gets all function app plans. ### Example 2: Get function app plans by resource group name. ```powershell -PS C:\> Get-AzFunctionAppPlan -ResourceGroupName "West Europe" +Get-AzFunctionAppPlan -ResourceGroupName "West Europe" +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Linux-Premium Linux ElasticPremium EP1 West Europe Func99-West-Europe-Linux-Premium fe16564a-d943-4bf8-8c28-cf01708c3f8b @@ -31,8 +35,10 @@ This command gets function app plans by resource group name. ### Example 3: Get function app plans for the given subscriptions. ```powershell -PS C:\> Get-AzFunctionAppPlan -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8z +Get-AzFunctionAppPlan -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8z +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Windows-Premium Windows ElasticPremium EP1 West Europe Func99-West-Europe-Win-Premium fe16564a-d943-4bf8-8c28-cf01708c3f8z @@ -42,8 +48,10 @@ This command gets function app plans for the given subscriptions. ### Example 4: Get function app plans by location. ```powershell -PS C:\> Get-AzFunctionAppPlan -Location "Central US" +Get-AzFunctionAppPlan -Location "Central US" +``` +```output Name WorkerType SkuTier SkuName Location ResourceGroupName SubscriptionId ---- ---------- ------- ------- -------- ----------------- -------------- Func99-West-Europe-Windows-Premium Windows ElasticPremium EP1 Central US Func99-West-Europe-Win-Premium 3r16564a-d943-4bf8-8c28-cf01708c3f8b diff --git a/src/Functions/examples/Get-AzFunctionAppSetting.md b/src/Functions/examples/Get-AzFunctionAppSetting.md index faf84e7fbdad..47d4f6d6e989 100644 --- a/src/Functions/examples/Get-AzFunctionAppSetting.md +++ b/src/Functions/examples/Get-AzFunctionAppSetting.md @@ -1,7 +1,7 @@ ### Example 1: Get the app settings of a function app. ```powershell -PS C:\> Get-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName +Get-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName ``` This command gets the app settings of a function app. \ No newline at end of file diff --git a/src/Functions/examples/New-AzFunctionApp.md b/src/Functions/examples/New-AzFunctionApp.md index 97ff5389e761..6711c56c3f92 100644 --- a/src/Functions/examples/New-AzFunctionApp.md +++ b/src/Functions/examples/New-AzFunctionApp.md @@ -1,11 +1,11 @@ ### Example 1: Create a consumption PowerShell function app in Central US. ```powershell -PS C:\> New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -Location centralUS ` - -StorageAccount MyStorageAccountName ` - -Runtime PowerShell +New-AzFunctionApp -Name MyUniqueFunctionAppName ` + -ResourceGroupName MyResourceGroupName ` + -Location centralUS ` + -StorageAccount MyStorageAccountName ` + -Runtime PowerShell ``` This command creates a consumption PowerShell function app in Central US. @@ -14,11 +14,11 @@ This command creates a consumption PowerShell function app in Central US. ```powershell -PS C:\> New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccount MyStorageAccountName ` - -Runtime PowerShell +New-AzFunctionApp -Name MyUniqueFunctionAppName ` + -ResourceGroupName MyResourceGroupName ` + -PlanName MyPlanName ` + -StorageAccount MyStorageAccountName ` + -Runtime PowerShell ``` This command creates a PowerShell function app which will be hosted in a service plan. @@ -28,12 +28,11 @@ This command creates a PowerShell function app which will be hosted in a service Note that the service plan and storage account must exist before this operation. ```powershell -PS C:\> New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccount MyStorageAccountName ` - -DockerImageName myacr.azurecr.io/myimage:tag - +New-AzFunctionApp -Name MyUniqueFunctionAppName ` + -ResourceGroupName MyResourceGroupName ` + -PlanName MyPlanName ` + -StorageAccount MyStorageAccountName ` + -DockerImageName myacr.azurecr.io/myimage:tag ``` This command creates a function app using a using a private ACR image. diff --git a/src/Functions/examples/New-AzFunctionAppPlan.md b/src/Functions/examples/New-AzFunctionAppPlan.md index f05263b78b46..fe5dcae6398c 100644 --- a/src/Functions/examples/New-AzFunctionAppPlan.md +++ b/src/Functions/examples/New-AzFunctionAppPlan.md @@ -1,14 +1,13 @@ ### Example 1: Create a Windows premium app plan in West Europe with burst out capability up to 10 instances. ```powershell -PS C:\> New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -Location WestEurope ` - -MinimumWorkerCount 1 ` - -MaximumWorkerCount 10 ` - -Sku EP1 ` - -WorkerType Windows - +New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` + -Name MyPremiumPlan ` + -Location WestEurope ` + -MinimumWorkerCount 1 ` + -MaximumWorkerCount 10 ` + -Sku EP1 ` + -WorkerType Windows ``` This command creates a Windows premium app plan in West Europe with burst out capability up to 10 instances. \ No newline at end of file diff --git a/src/Functions/examples/Remove-AzFunctionApp.md b/src/Functions/examples/Remove-AzFunctionApp.md index 55ebbfe46672..c300c0db0c1a 100644 --- a/src/Functions/examples/Remove-AzFunctionApp.md +++ b/src/Functions/examples/Remove-AzFunctionApp.md @@ -1,7 +1,7 @@ ### Example 1: Get a function app by name and delete it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionApp -Force +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionApp -Force ``` This command gets a function app by name and delete it. @@ -9,7 +9,7 @@ This command gets a function app by name and delete it. ### Example 2: Delete a function app by name. ```powershell -PS C:\> Remove-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Remove-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command deletes a function app by name. diff --git a/src/Functions/examples/Remove-AzFunctionAppPlan.md b/src/Functions/examples/Remove-AzFunctionAppPlan.md index a0b4ad8b9d58..53cf9788d672 100644 --- a/src/Functions/examples/Remove-AzFunctionAppPlan.md +++ b/src/Functions/examples/Remove-AzFunctionAppPlan.md @@ -1,7 +1,7 @@ ### Example 1: Get a function app plan by name and delete it. ```powershell -PS C:\> Get-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionAppPlan -Force +Get-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionAppPlan -Force ``` This command gets a function app plan by name and deletes it. @@ -9,7 +9,7 @@ This command gets a function app plan by name and deletes it. ### Example 2: Delete a function app plan by name. ```powershell -PS C:\> Remove-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Remove-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command deletes a function app plan by name. diff --git a/src/Functions/examples/Remove-AzFunctionAppSetting.md b/src/Functions/examples/Remove-AzFunctionAppSetting.md index 09638279cfd1..345d4078cf24 100644 --- a/src/Functions/examples/Remove-AzFunctionAppSetting.md +++ b/src/Functions/examples/Remove-AzFunctionAppSetting.md @@ -1,7 +1,7 @@ ### Example 1: Remove app settings in a function app. ```powershell -PS C:\> Remove-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSettingName "MyAppSetting1", "MyAppSetting2" +Remove-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSettingName "MyAppSetting1", "MyAppSetting2" ``` This command removes app settings in a function app. \ No newline at end of file diff --git a/src/Functions/examples/Restart-AzFunctionApp.md b/src/Functions/examples/Restart-AzFunctionApp.md index f9e70aa5818d..69fc65b4f157 100644 --- a/src/Functions/examples/Restart-AzFunctionApp.md +++ b/src/Functions/examples/Restart-AzFunctionApp.md @@ -1,7 +1,7 @@ ### Example 1: Get a function app by name and restart it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Restart-AzFunctionApp -Force +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Restart-AzFunctionApp -Force ``` This command gets a function app by name and restarts it. @@ -9,7 +9,7 @@ This command gets a function app by name and restarts it. ### Example 2: Restart a function app by name. ```powershell -PS C:\> Restart-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Restart-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command restarts a function app by name. \ No newline at end of file diff --git a/src/Functions/examples/Start-AzFunctionApp.md b/src/Functions/examples/Start-AzFunctionApp.md index d8124eb1b416..6f0774fc7013 100644 --- a/src/Functions/examples/Start-AzFunctionApp.md +++ b/src/Functions/examples/Start-AzFunctionApp.md @@ -1,13 +1,13 @@ ### Example 1: Get a function app by name and start it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Start-AzFunctionApp +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Start-AzFunctionApp ``` This command gets a function app by name and starts it. ### Example 2: Start a function app by name. ```powershell -PS C:\> Start-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName +Start-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName ``` This command starts a function app by name. \ No newline at end of file diff --git a/src/Functions/examples/Stop-AzFunctionApp.md b/src/Functions/examples/Stop-AzFunctionApp.md index fcbdd469c82b..b5e874f8f4d0 100644 --- a/src/Functions/examples/Stop-AzFunctionApp.md +++ b/src/Functions/examples/Stop-AzFunctionApp.md @@ -1,7 +1,7 @@ ### Example 1: Get a function app by name and stop it. ```powershell -PS C:\> Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Stop-AzFunctionApp -Force +Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Stop-AzFunctionApp -Force ``` This command gets a function app by name and stops it. @@ -9,7 +9,7 @@ This command gets a function app by name and stops it. ### Example 2: Stop a function app by name. ```powershell -PS C:\> Stop-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force +Stop-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force ``` This command stops a function app by name. \ No newline at end of file diff --git a/src/Functions/examples/Update-AzFunctionApp.md b/src/Functions/examples/Update-AzFunctionApp.md index 2c3bcee95abe..ca5c0a83b035 100644 --- a/src/Functions/examples/Update-AzFunctionApp.md +++ b/src/Functions/examples/Update-AzFunctionApp.md @@ -1,20 +1,20 @@ ### Example 1: Update function app hosting plan. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -PlanName NewPlanName -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -PlanName NewPlanName -Force ``` This command updates function app hosting plan. ### Example 2: Set a SystemAssigned managed identity for a function app. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType SystemAssigned -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType SystemAssigned -Force ``` This command sets a SystemAssigned managed identity for a function app. ### Example 3: Update function app Application Insights. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -ApplicationInsightsName ApplicationInsightsProjectName -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -ApplicationInsightsName ApplicationInsightsProjectName -Force ``` This command updates function app Application Insights. ### Example 3: Remove managed identity from a function app. ```powershell -PS C:\> Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType None -Force +Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType None -Force ``` This command removes a managed identity from a function app. \ No newline at end of file diff --git a/src/Functions/examples/Update-AzFunctionAppPlan.md b/src/Functions/examples/Update-AzFunctionAppPlan.md index 927086ead275..d5a501494aee 100644 --- a/src/Functions/examples/Update-AzFunctionAppPlan.md +++ b/src/Functions/examples/Update-AzFunctionAppPlan.md @@ -1,12 +1,11 @@ ### Example 1: Update an app service plan to EP2 sku with twenty maximum workers. ```powershell -PS C:\> Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -MaximumWorkerCount 20 ` - -Sku EP2 ` - -Force - +Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` + -Name MyPremiumPlan ` + -MaximumWorkerCount 20 ` + -Sku EP2 ` + -Force ``` This command updates an app service plan to EP2 sku with twenty maximum workers. \ No newline at end of file diff --git a/src/Functions/examples/Update-AzFunctionAppSetting.md b/src/Functions/examples/Update-AzFunctionAppSetting.md index 50f3680f37ab..b2cdd888167c 100644 --- a/src/Functions/examples/Update-AzFunctionAppSetting.md +++ b/src/Functions/examples/Update-AzFunctionAppSetting.md @@ -1,7 +1,7 @@ ### Example 1: Add a new app setting in a function app. ```powershell -PS C:\> Update-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSetting @{"Name1" = "Value1"} +Update-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSetting @{"Name1" = "Value1"} ``` This command adds a new app setting in a function app. From 815e8ec5895eb2e5796b134d58bbae289a422a64 Mon Sep 17 00:00:00 2001 From: "evan1126@" Date: Wed, 16 Feb 2022 14:49:49 +0800 Subject: [PATCH 2/2] Split Az.Functions Examples in generation --- src/Functions/docs/New-AzFunctionApp.md | 25 +++++++++---------- src/Functions/docs/New-AzFunctionAppPlan.md | 13 +++++----- .../docs/Update-AzFunctionAppPlan.md | 9 +++---- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/src/Functions/docs/New-AzFunctionApp.md b/src/Functions/docs/New-AzFunctionApp.md index a5016a23f038..25083f9f6273 100644 --- a/src/Functions/docs/New-AzFunctionApp.md +++ b/src/Functions/docs/New-AzFunctionApp.md @@ -49,10 +49,10 @@ Creates a function app. ### Example 1: Create a consumption PowerShell function app in Central US. ```powershell New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -Location centralUS ` - -StorageAccount MyStorageAccountName ` - -Runtime PowerShell + -ResourceGroupName MyResourceGroupName ` + -Location centralUS ` + -StorageAccount MyStorageAccountName ` + -Runtime PowerShell ``` This command creates a consumption PowerShell function app in Central US. @@ -60,10 +60,10 @@ This command creates a consumption PowerShell function app in Central US. ### Example 2: Create a PowerShell function app which will be hosted in a service plan. ```powershell New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccount MyStorageAccountName ` - -Runtime PowerShell + -ResourceGroupName MyResourceGroupName ` + -PlanName MyPlanName ` + -StorageAccount MyStorageAccountName ` + -Runtime PowerShell ``` This command creates a PowerShell function app which will be hosted in a service plan. @@ -71,11 +71,10 @@ This command creates a PowerShell function app which will be hosted in a service ### Example 3: Create a function app using a using a private ACR image. ```powershell New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccount MyStorageAccountName ` - -DockerImageName myacr.azurecr.io/myimage:tag - + -ResourceGroupName MyResourceGroupName ` + -PlanName MyPlanName ` + -StorageAccount MyStorageAccountName ` + -DockerImageName myacr.azurecr.io/myimage:tag ``` This command creates a function app using a using a private ACR image. diff --git a/src/Functions/docs/New-AzFunctionAppPlan.md b/src/Functions/docs/New-AzFunctionAppPlan.md index 66a8bc594286..e56c84f0bd6a 100644 --- a/src/Functions/docs/New-AzFunctionAppPlan.md +++ b/src/Functions/docs/New-AzFunctionAppPlan.md @@ -26,13 +26,12 @@ Creates a function app service plan. ### Example 1: Create a Windows premium app plan in West Europe with burst out capability up to 10 instances. ```powershell New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -Location WestEurope ` - -MinimumWorkerCount 1 ` - -MaximumWorkerCount 10 ` - -Sku EP1 ` - -WorkerType Windows - + -Name MyPremiumPlan ` + -Location WestEurope ` + -MinimumWorkerCount 1 ` + -MaximumWorkerCount 10 ` + -Sku EP1 ` + -WorkerType Windows ``` This command creates a Windows premium app plan in West Europe with burst out capability up to 10 instances. diff --git a/src/Functions/docs/Update-AzFunctionAppPlan.md b/src/Functions/docs/Update-AzFunctionAppPlan.md index 7d3cc0851c25..7703ece65d89 100644 --- a/src/Functions/docs/Update-AzFunctionAppPlan.md +++ b/src/Functions/docs/Update-AzFunctionAppPlan.md @@ -34,11 +34,10 @@ Updates a function app service plan. ### Example 1: Update an app service plan to EP2 sku with twenty maximum workers. ```powershell Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -MaximumWorkerCount 20 ` - -Sku EP2 ` - -Force - + -Name MyPremiumPlan ` + -MaximumWorkerCount 20 ` + -Sku EP2 ` + -Force ``` This command updates an app service plan to EP2 sku with twenty maximum workers.