Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Split the string

$
0
0

Below is the code I am running:

Get-AzDataFactoryV2Trigger -ResourceGroupName "myrg" -DataFactoryName "myadf"  | Select-Object Runtimestate, Properties.split(".",5)

Values in properties: 

Microsoft.Azure.Management.DataFactory.Models.ScheduleTrigger

I wanted to display only ScheduleTrigger

Error:

A positional parameter cannot be found that accepts argument 'System.Object[]'.

How to fix this? and also please try to simply the code. I don't want it in one line

I guess we can do something like 

$var = get-Az.. params..

 select $_.col, $_.col.split etc...


Regards,
Vaibhav


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>