Use this task to run a PowerShell script within an Azure environment. The Azure context is authenticated with the provided Azure Resource Manager service connection.
Syntax
YAML
# Azure PowerShell v1# Run a PowerShell script within an Azure environment.- task:AzurePowerShell@1 inputs:#ConnectedServiceNameSelector: 'ConnectedServiceName' # 'ConnectedServiceName' | 'ConnectedServiceNameARM'. Azure Connection Type. Default: ConnectedServiceName. ConnectedServiceName:# string. Required when ConnectedServiceNameSelector = ConnectedServiceName. Azure Classic Subscription. #ConnectedServiceNameARM: # string. Required when ConnectedServiceNameSelector = ConnectedServiceNameARM. Azure Subscription. ScriptType:'FilePath'# 'FilePath' | 'InlineScript'. Required. Script Type. Default: FilePath.#ScriptPath: # string. Optional. Use when ScriptType = FilePath. Script Path. #Inline: # string. Optional. Use when ScriptType = InlineScript. Inline Script. #ScriptArguments: # string. Script Arguments.
ScriptPath - Script Path string. Optional. Use when ScriptType = FilePath.
The path of the script. This should be a fully qualified path or one relative to the default working directory.
Inline - Inline Script string. Optional. Use when ScriptType = InlineScript. Default value: # You can write your azure powershell scripts inline here. \n# You can also pass predefined and custom variables to this script using arguments.
Specifes the script to execute. The maximum supported inline script length is 500 characters. Use a script from a file if you want to use a longer script.
ScriptArguments - Script Arguments string.
The additional parameters to pass to PowerShell. These can be either ordinal or named parameters.
შემოუერთდით Meetup სერიას, რათა შექმნათ მასშტაბური AI გადაწყვეტილებები რეალურ სამყაროში გამოყენების შემთხვევებზე დაყრდნობით თანამემამულე დეველოპერებთან და ექსპერტებთან.