From f6b60a142153571e32f87323d8b9718b7a9b990f Mon Sep 17 00:00:00 2001 From: Flynn Date: Wed, 22 Jun 2022 16:13:57 +0800 Subject: [PATCH 1/2] format the help markdown files of Az.LogicApp --- src/LogicApp/LogicApp/help/New-AzLogicApp.md | 3 ++- src/LogicApp/LogicApp/help/Test-AzLogicApp.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LogicApp/LogicApp/help/New-AzLogicApp.md b/src/LogicApp/LogicApp/help/New-AzLogicApp.md index cc915bb4d224..246234fcb293 100644 --- a/src/LogicApp/LogicApp/help/New-AzLogicApp.md +++ b/src/LogicApp/LogicApp/help/New-AzLogicApp.md @@ -75,7 +75,8 @@ The logic app includes the definition and parameters specified by file paths. ### Example 2: Create a logic app by using definition and parameter objects ```powershell -New-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp05" -Location "westus" -State "Enabled" -Definition [IO.File]::ReadAllText("d:\Workflows\Definition.json") -Parameters @{name1="value1";name2="value2"} +$Definition = [IO.File]::ReadAllText("d:\Workflows\Definition.json") +New-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp05" -Location "westus" -State "Enabled" -Definition $Definition -Parameters @{name1="value1";name2="value2"} ``` ```output diff --git a/src/LogicApp/LogicApp/help/Test-AzLogicApp.md b/src/LogicApp/LogicApp/help/Test-AzLogicApp.md index 6d0c03234b92..f49568d1012d 100644 --- a/src/LogicApp/LogicApp/help/Test-AzLogicApp.md +++ b/src/LogicApp/LogicApp/help/Test-AzLogicApp.md @@ -47,7 +47,8 @@ The command specifies definition and parameter file paths. ### Example 2: Validate a logic app by using objects ```powershell -Test-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp01" -Location "westus" -State "Enabled" -Definition [IO.File]::ReadAllText("d:\Workflows\Definition.json") -Parameters @{name1="value1";name2="value2"} +$Definition = [IO.File]::ReadAllText("d:\Workflows\Definition.json") +Test-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp01" -Location "westus" -State "Enabled" -Definition $Definition -Parameters @{name1="value1";name2="value2"} ``` This command validates a logic app named LogicApp01 in the specified resource group. From 9f9ea0368f17f841f95b53d51f1e4c3064f28d5c Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Thu, 23 Jun 2022 17:59:42 +0800 Subject: [PATCH 2/2] format the help markdown files of Az.LogicApp --- src/LogicApp/LogicApp/help/New-AzLogicApp.md | 3 +-- src/LogicApp/LogicApp/help/Test-AzLogicApp.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/LogicApp/LogicApp/help/New-AzLogicApp.md b/src/LogicApp/LogicApp/help/New-AzLogicApp.md index 246234fcb293..a97427928523 100644 --- a/src/LogicApp/LogicApp/help/New-AzLogicApp.md +++ b/src/LogicApp/LogicApp/help/New-AzLogicApp.md @@ -75,8 +75,7 @@ The logic app includes the definition and parameters specified by file paths. ### Example 2: Create a logic app by using definition and parameter objects ```powershell -$Definition = [IO.File]::ReadAllText("d:\Workflows\Definition.json") -New-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp05" -Location "westus" -State "Enabled" -Definition $Definition -Parameters @{name1="value1";name2="value2"} +New-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp05" -Location "westus" -State "Enabled" -Definition ([IO.File]::ReadAllText("d:\Workflows\Definition.json")) -Parameters @{name1="value1";name2="value2"} ``` ```output diff --git a/src/LogicApp/LogicApp/help/Test-AzLogicApp.md b/src/LogicApp/LogicApp/help/Test-AzLogicApp.md index f49568d1012d..68ec41d5b147 100644 --- a/src/LogicApp/LogicApp/help/Test-AzLogicApp.md +++ b/src/LogicApp/LogicApp/help/Test-AzLogicApp.md @@ -47,8 +47,7 @@ The command specifies definition and parameter file paths. ### Example 2: Validate a logic app by using objects ```powershell -$Definition = [IO.File]::ReadAllText("d:\Workflows\Definition.json") -Test-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp01" -Location "westus" -State "Enabled" -Definition $Definition -Parameters @{name1="value1";name2="value2"} +Test-AzLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp01" -Location "westus" -State "Enabled" -Definition ([IO.File]::ReadAllText("d:\Workflows\Definition.json")) -Parameters @{name1="value1";name2="value2"} ``` This command validates a logic app named LogicApp01 in the specified resource group.