Hi,
You can find the example here.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Below is my script and I want pass parameter using ARM template while deployment of ARM template .
$disks = Get-Disk | Where partitionstyle -eq 'raw' | sort number
$letters = 'H' | ForEach-Object { [char]$_ }
$labels = "Worknew3"
$PartitionStyles = "GPT"
foreach ($disk in $disks) {
$driveLetter = $letters
$disk |
Initialize-Disk -PartitionStyle $PartitionStyles -PassThru |
New-Partition -UseMaximumSize -DriveLetter $driveLetter |
Format-Volume -FileSystem NTFS -NewFileSystemLabel $labels -Confirm:$false -Force
}
So As you can see I want to pass value for the $letters, $labels and $PartitionStyles .Can some one please give me any example or link for this.
Hi,
You can find the example here.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.