Azure / Azure/azure-powershell

AzureRmVMRunCommand - Script Options

Open
#4,917 10 comments 6 reactions 2 assignees Assigned to @koralski View on GitHub
act-observability-squad Compute - VM feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Cmdlet(s)
Invoke-AzureRmVMRunCommand

### PowerShell Version
5.1.16299.19

### Module Version
4.4.1

### OS Version
10.0.16299.19

### Description
When using the CommandId "RunPowerShellScript" it would be very useful to be able to provide a number of additional options than only a local script.

1. Script URI - PS Script which is stored in a Azure Storage Account or another publicly accessible location.
2. Script Block - Pass a Script Object into the Cmdlet, similar to how we do this with Start-Job.

### Debug Output
N/A

### Script/Steps for Reproduction
N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.