Skip to content

Commit 8ec95a6

Browse files
committed
Merge branch 'master' of https://github.com/Azure/azure-powershell into wyunchi/automation
2 parents 3bb82d7 + 93beeb8 commit 8ec95a6

File tree

890 files changed

+182652
-138204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

890 files changed

+182652
-138204
lines changed

.ci-config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"patterns": [
21-
"src/*.props"
21+
"src/*.props$"
2222
],
2323
"phases": [
2424
"build:all",
@@ -65,7 +65,7 @@
6565
},
6666
{
6767
"patterns": [
68-
"src/{ModuleName}/**/*.md"
68+
"src/{ModuleName}/**/*.md$"
6969
],
7070
"phases": [
7171
"build:module",
@@ -74,7 +74,7 @@
7474
},
7575
{
7676
"patterns": [
77-
"src/{ModuleName}/**/*.csproj"
77+
"src/{ModuleName}/**/*.csproj$"
7878
],
7979
"phases": [
8080
"build:related-module",

build.proj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@
140140
TaskParameter="Value"
141141
PropertyName="SubTasks" />
142142
</CreateProperty>
143-
<CreateProperty
144-
Value="$(TestCsprojList.Split(';').Length)">
145-
<Output
146-
TaskParameter="Value"
147-
PropertyName="TestCsprojListCount" />
148-
</CreateProperty>
149143
</Target>
150144

151145
<!-- Build all flavors of the Cmdlets -->
@@ -314,10 +308,9 @@
314308
<Target Name="Test" DependsOnTargets="FilterBuild">
315309
<Message Importance="high" Text="Running check in tests..." />
316310
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
317-
318311
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->
319312
<!-- https://github.com/xunit/xunit/issues/1154#issuecomment-405366373 -->
320-
<Exec Command="dotnet test $(RepoArtifacts)Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework $(TestFramework) --logger trx --results-directory &quot;$(TestOutputDirectory)&quot;" Condition="$(TestCsprojListCount) != 0" />
313+
<Exec Command="dotnet test $(RepoArtifacts)Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework $(TestFramework) --logger trx --results-directory &quot;$(TestOutputDirectory)&quot;" Condition="'$(TestCsprojList)' != ''" />
321314
<Message Importance="high" Text="Finish running tests..." />
322315
<OnError ExecuteTargets="TestFailureErrorMessage" />
323316
</Target>

src/Aks/Aks/help/Get-AzAksNodePool.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzAksNodePool
99

1010
## SYNOPSIS
11-
Create note pool in specified cluster.
11+
List node pools in specified cluster.
1212

1313
## SYNTAX
1414

@@ -30,7 +30,7 @@ Get-AzAksNodePool -ClusterObject <PSKubernetesCluster> [-Name <String>]
3030
```
3131

3232
## DESCRIPTION
33-
Create note pool in specified cluster.
33+
List node pools in specified cluster.
3434

3535
## EXAMPLES
3636

src/Automation/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed the issue for starting Python3 runbooks with parameters
2122

2223
## Version 1.5.1
2324
* Fixed te issue that complex object cannot be serialized correctly. [#14431]

src/Automation/Automation/Common/AutomationPSClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ private IDictionary<string, string> ProcessRunbookParameters(string resourceGrou
17001700
Resources.RunbookHasNoPublishedVersion, runbookName));
17011701
}
17021702

1703-
if (runbook != null && runbook.RunbookType == "Python2") {
1703+
if (runbook != null && (runbook.RunbookType == "Python2" || runbook.RunbookType == "Python3")) {
17041704
int i = 1;
17051705

17061706
foreach (var key in parameters.Keys) {

src/BotService/Az.BotService.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 2/26/2021
6+
# Generated on: 2021-03-11
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = './Az.BotService.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.2.0'
15+
ModuleVersion = '0.3.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -45,7 +45,7 @@ PowerShellVersion = '5.1'
4545
DotNetFrameworkVersion = '4.7.2'
4646

4747
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# CLRVersion = ''
48+
# ClrVersion = ''
4949

5050
# Processor architecture (None, X86, Amd64) required by this module
5151
# ProcessorArchitecture = ''
@@ -110,7 +110,7 @@ PrivateData = @{
110110
# IconUri = ''
111111

112112
# ReleaseNotes of this module
113-
ReleaseNotes = '* Fixed the issue that didn''t pack template files into nupkg.'
113+
ReleaseNotes = '* Updated the online links.'
114114

115115
# Prerelease string of this module
116116
# Prerelease = ''

src/BotService/Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
-->
2020
## Upcoming Release
2121

22+
## Version 0.3.0
23+
* Updated the online links.
24+
2225
## Version 0.2.0
2326
* Fixed the issue that didn't pack template files into nupkg.
2427

src/BotService/custom/Export-AzBotServiceApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Returns a BotService specified by the parameters.
1919
.Description
2020
Returns a BotService specified by the parameters.
2121
.Link
22-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/export-azbotserviceapp
22+
https://docs.microsoft.com/powershell/module/az.botservice/export-azbotserviceapp
2323
#>
2424
function Export-AzBotServiceApp {
2525
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]

src/BotService/custom/Initialize-AzBotServicePrepareDeploy.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Returns a BotService specified by the parameters.
1919
.Description
2020
Returns a BotService specified by the parameters.
2121
.Link
22-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
22+
https://docs.microsoft.com/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
2323
#>
2424
function Initialize-AzBotServicePrepareDeploy {
2525
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -119,10 +119,10 @@ function Initialize-AzBotServicePrepareDeploy {
119119
Write-Warning "WARNING: This command should normally be run in the same folder as the package.json for Node.js bots. Package.json and web.config are usually in the same folder and at the root level of the .zip file."
120120
}
121121
if ("JavaScript" -eq $Language) {
122-
$SourceWebConfig = [System.IO.Path]::Combine($PSScriptRoot, '..', 'resources', 'web.config')
122+
$SourceWebConfig = [System.IO.Path]::Combine($PSScriptRoot, 'web.config')
123123
}
124124
else {
125-
$SourceWebConfig = [System.IO.Path]::Combine($PSScriptRoot, '..', 'resources', 'typescript.web.config')
125+
$SourceWebConfig = [System.IO.Path]::Combine($PSScriptRoot, 'typescript.web.config')
126126
}
127127
Copy-Item -Path $SourceWebConfig -Destination $DestWebConfig
128128
}

src/BotService/custom/New-AzBotService.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Returns a BotService specified by the parameters.
1919
.Description
2020
Returns a BotService specified by the parameters.
2121
.Link
22-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/new-azbotservice
22+
https://docs.microsoft.com/powershell/module/az.botservice/new-azbotservice
2323
#>
2424
function New-AzBotService {
2525
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -222,7 +222,7 @@ function New-AzBotService {
222222
$ServerFarmId = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Web/serverfarms/$Name"
223223
$CreateServerFarm = $true
224224
}
225-
$TemplateFile = [System.IO.Path]::Combine($PSScriptRoot, '..', 'resources', 'webappv4.template.json')
225+
$TemplateFile = [System.IO.Path]::Combine($PSScriptRoot, 'webappv4.template.json')
226226
$AppSecret = ConvertFrom-SecureString $ApplicationSecret -AsPlainText
227227
$Parameter = @{
228228
'location' = $Location;

src/BotService/custom/Publish-AzBotServiceApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Returns a BotService specified by the parameters.
1919
.Description
2020
Returns a BotService specified by the parameters.
2121
.Link
22-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/publish-azbotserviceapp
22+
https://docs.microsoft.com/powershell/module/az.botservice/publish-azbotserviceapp
2323
#>
2424
function Publish-AzBotServiceApp {
2525
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]

src/BotService/exports/Export-AzBotServiceApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ d---- 2020/12/15 13:45 youriechobottest
3232
.Outputs
3333
Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot
3434
.Link
35-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/export-azbotserviceapp
35+
https://docs.microsoft.com/powershell/module/az.botservice/export-azbotserviceapp
3636
#>
3737
function Export-AzBotServiceApp {
3838
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]

src/BotService/exports/Get-AzBotService.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ INPUTOBJECT <IBotServiceIdentity>: Identity Parameter
6767
[ResourceName <String>]: The name of the Bot resource.
6868
[SubscriptionId <String>]: Azure Subscription ID.
6969
.Link
70-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/get-azbotservice
70+
https://docs.microsoft.com/powershell/module/az.botservice/get-azbotservice
7171
#>
7272
function Get-AzBotService {
7373
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]

src/BotService/exports/Initialize-AzBotServicePrepareDeploy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PS C:\> Initialize-AzBotServicePrepareDeploy -CodeDir D:\zips\MyEchoBot -ProjFil
2525
.Outputs
2626
Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot
2727
.Link
28-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
28+
https://docs.microsoft.com/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
2929
#>
3030
function Initialize-AzBotServicePrepareDeploy {
3131
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]

src/BotService/exports/New-AzBotService.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Etag Kind Location Name SkuName Sku
3434
.Outputs
3535
Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot
3636
.Link
37-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/new-azbotservice
37+
https://docs.microsoft.com/powershell/module/az.botservice/new-azbotservice
3838
#>
3939
function New-AzBotService {
4040
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]

src/BotService/exports/ProxyCmdletDefinitions.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ INPUTOBJECT <IBotServiceIdentity>: Identity Parameter
6767
[ResourceName <String>]: The name of the Bot resource.
6868
[SubscriptionId <String>]: Azure Subscription ID.
6969
.Link
70-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/get-azbotservice
70+
https://docs.microsoft.com/powershell/module/az.botservice/get-azbotservice
7171
#>
7272
function Get-AzBotService {
7373
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -237,7 +237,7 @@ INPUTOBJECT <IBotServiceIdentity>: Identity Parameter
237237
[ResourceName <String>]: The name of the Bot resource.
238238
[SubscriptionId <String>]: Azure Subscription ID.
239239
.Link
240-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/remove-azbotservice
240+
https://docs.microsoft.com/powershell/module/az.botservice/remove-azbotservice
241241
#>
242242
function Remove-AzBotService {
243243
[OutputType([System.Boolean])]
@@ -414,7 +414,7 @@ INPUTOBJECT <IBotServiceIdentity>: Identity Parameter
414414
[ResourceName <String>]: The name of the Bot resource.
415415
[SubscriptionId <String>]: Azure Subscription ID.
416416
.Link
417-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/update-azbotservice
417+
https://docs.microsoft.com/powershell/module/az.botservice/update-azbotservice
418418
#>
419419
function Update-AzBotService {
420420
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -662,7 +662,7 @@ d---- 2020/12/15 13:45 youriechobottest
662662
.Outputs
663663
Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot
664664
.Link
665-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/export-azbotserviceapp
665+
https://docs.microsoft.com/powershell/module/az.botservice/export-azbotserviceapp
666666
#>
667667
function Export-AzBotServiceApp {
668668
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -806,7 +806,7 @@ PS C:\> Initialize-AzBotServicePrepareDeploy -CodeDir D:\zips\MyEchoBot -ProjFil
806806
.Outputs
807807
Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot
808808
.Link
809-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
809+
https://docs.microsoft.com/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
810810
#>
811811
function Initialize-AzBotServicePrepareDeploy {
812812
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -957,7 +957,7 @@ Etag Kind Location Name SkuName Sku
957957
.Outputs
958958
Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot
959959
.Link
960-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/new-azbotservice
960+
https://docs.microsoft.com/powershell/module/az.botservice/new-azbotservice
961961
#>
962962
function New-AzBotService {
963963
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]
@@ -1156,7 +1156,7 @@ PS C:\> Publish-AzBotServiceApp -ResourceGroupName youriBotTest -CodeDir D:\zips
11561156
11571157
11581158
.Link
1159-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/publish-azbotserviceapp
1159+
https://docs.microsoft.com/powershell/module/az.botservice/publish-azbotserviceapp
11601160
#>
11611161
function Publish-AzBotServiceApp {
11621162
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]

src/BotService/exports/Publish-AzBotServiceApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PS C:\> Publish-AzBotServiceApp -ResourceGroupName youriBotTest -CodeDir D:\zips
2323
2424
2525
.Link
26-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/publish-azbotserviceapp
26+
https://docs.microsoft.com/powershell/module/az.botservice/publish-azbotserviceapp
2727
#>
2828
function Publish-AzBotServiceApp {
2929
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]

src/BotService/exports/Remove-AzBotService.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ INPUTOBJECT <IBotServiceIdentity>: Identity Parameter
4343
[ResourceName <String>]: The name of the Bot resource.
4444
[SubscriptionId <String>]: Azure Subscription ID.
4545
.Link
46-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/remove-azbotservice
46+
https://docs.microsoft.com/powershell/module/az.botservice/remove-azbotservice
4747
#>
4848
function Remove-AzBotService {
4949
[OutputType([System.Boolean])]

src/BotService/exports/Update-AzBotService.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ INPUTOBJECT <IBotServiceIdentity>: Identity Parameter
4949
[ResourceName <String>]: The name of the Bot resource.
5050
[SubscriptionId <String>]: Azure Subscription ID.
5151
.Link
52-
https://docs.microsoft.com/en-us/powershell/module/az.botservice/update-azbotservice
52+
https://docs.microsoft.com/powershell/module/az.botservice/update-azbotservice
5353
#>
5454
function Update-AzBotService {
5555
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])]

src/BotService/generate-info.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
{
2-
"microsoft.azure_classic-openapi-validator": "1.0.14",
3-
"microsoft.azure_openapi-validator": "1.0.4",
4-
"swagger_commit": "88b316702d8dd0b3cdf4a446376fbcd24f41cc3b",
5-
"microsoft.azure_autorest-core": "2.0.4417",
6-
"autorest_modelerfour": "4.12.276",
7-
"autorest": "3.0.6187",
8-
"autorest_csharp-v3": "3.0.0-dev.20200325.2",
9-
"microsoft.azure_autorest.modeler": "2.3.55",
10-
"microsoft.azure_autorest.csharp": "2.3.84",
11-
"node": "v10.16.0",
12-
"autorest_powershell": "3.0.410",
13-
"autorest_remodeler": "2.1.27",
14-
"autorest_core": "3.0.6257"
2+
"autorest_core": "3.0.6375",
3+
"autorest_modelerfour": "4.15.414",
4+
"autorest_powershell": "3.0.423",
5+
"swagger_commit": "abfe5f82e8ac29a05070957bc828874a625079f1",
6+
"node": "v10.16.3",
7+
"autorest": "3.0.6149"
158
}

0 commit comments

Comments
 (0)