Skip to content

Commit 106f2f8

Browse files
mahakjain314Mahak JainVeryEarly
authored
Add support for Python 3 Runbook Type (#14226)
* Add support for Python 3 Runbook Type * Update change.log * Updated markdown help files * Update ChangeLog.md Co-authored-by: Mahak Jain <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent 53fdcfe commit 106f2f8

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

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+
* Added Support for Python3 Runbook Type
2122

2223
## Version 1.4.3
2324
* Fixed the issue of processing `PSCustomObject` and `Array`.

src/Automation/Automation/Cmdlet/ImportAzureAutomationRunbook.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class ImportAzureAutomationRunbook : AzureAutomationBaseCmdlet
6767
Constants.RunbookType.GraphicalPowerShellWorkflow,
6868
Constants.RunbookType.Graph,
6969
Constants.RunbookType.Python2,
70+
Constants.RunbookType.Python3,
7071
IgnoreCase = true)]
7172
[ValidateNotNullOrEmpty]
7273
public string Type { get; set; }

src/Automation/Automation/Cmdlet/NewAzureAutomationRunbook.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public class NewAzureAutomationRunbook : AzureAutomationBaseCmdlet
5858
Constants.RunbookType.GraphicalPowerShellWorkflow,
5959
Constants.RunbookType.Graph,
6060
Constants.RunbookType.Python2,
61+
Constants.RunbookType.Python3,
6162
IgnoreCase = true)]
6263
[ValidateNotNullOrEmpty]
6364
public string Type { get; set; }

src/Automation/Automation/Common/Constants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public static class RunbookType
8787
public const string GraphicalPowerShellWorkflow = "GraphicalPowerShellWorkflow";
8888

8989
public const string Python2 = "Python2";
90+
91+
public const string Python3 = "Python3";
9092
}
9193

9294
public static class SupportedFileExtensions

src/Automation/Automation/help/Import-AzAutomationRunbook.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ The command also assigns the tags stored in $Tags.
4343
Imports an Automation runbook. (autogenerated)
4444

4545
<!-- Aladdin Generated Example -->
46+
47+
4648
```powershell
4749
Import-AzAutomationRunbook -AutomationAccountName 'AutomationAccount01' -Name 'Configuration01' -Path .\GraphicalRunbook06.graphrunbook -Published -ResourceGroupName 'ResourceGroup01' -Type PowerShell
4850
```
@@ -231,7 +233,7 @@ It is equivalent to GraphicalPowerShellWorkflow.
231233
Type: System.String
232234
Parameter Sets: (All)
233235
Aliases:
234-
Accepted values: PowerShell, GraphicalPowerShell, PowerShellWorkflow, GraphicalPowerShellWorkflow, Graph, Python2
236+
Accepted values: PowerShell, GraphicalPowerShell, PowerShellWorkflow, GraphicalPowerShellWorkflow, Graph, Python2, Python3
235237

236238
Required: True
237239
Position: Named
@@ -272,7 +274,7 @@ Accept wildcard characters: False
272274
```
273275
274276
### CommonParameters
275-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
277+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
276278
277279
## INPUTS
278280

src/Automation/Automation/help/New-AzAutomationRunbook.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ This command creates a runbook named Runbook02 in the Azure Automation account n
3737
Creates an Automation runbook. (autogenerated)
3838

3939
<!-- Aladdin Generated Example -->
40+
41+
4042
```powershell
4143
New-AzAutomationRunbook -AutomationAccountName 'Contoso17' -Name 'Runbook02' -ResourceGroupName 'ResourceGroup01' -Type PowerShell
4244
```
@@ -180,7 +182,7 @@ It is equivalent to GraphicalPowerShellWorkflow.
180182
Type: System.String
181183
Parameter Sets: (All)
182184
Aliases:
183-
Accepted values: PowerShell, GraphicalPowerShell, PowerShellWorkflow, GraphicalPowerShellWorkflow, Graph, Python2
185+
Accepted values: PowerShell, GraphicalPowerShell, PowerShellWorkflow, GraphicalPowerShellWorkflow, Graph, Python2, Python3
184186

185187
Required: True
186188
Position: Named
@@ -190,7 +192,7 @@ Accept wildcard characters: False
190192
```
191193
192194
### CommonParameters
193-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
195+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
194196
195197
## INPUTS
196198

0 commit comments

Comments
 (0)