Az Command | AzureRm Command |
---|---|
Get-AzAks | Get-AzureRmAks |
New-AzAks | New-AzureRmAks |
# Create single HttpClient | |
$client = [System.Net.Http.HttpClient]::new() | |
# Perform multiple GETs | |
foreach ($url in $urls) { | |
$clientResult = $client.GetStringAsync($url). | |
GetAwaiter(). | |
GetResult() | |
$clientResult | ConvertFrom-Json | |
} |
{ | |
This script will change prefixes or suffixes on the EditorID field | |
of every selected record. | |
Doesn't modify records that already have the correct prefix/suffix. | |
} | |
unit UserScript; | |
var | |
DoPrepend: boolean; |
function ConvertTo-Base64KMSEncryptedString { | |
[CmdletBinding()] | |
param ( | |
[Parameter( | |
Mandatory = $true, | |
ValueFromPipeline = $true | |
)] | |
[String[]] | |
$String, |
Invoke-WebRequest 'google.com' | Out-MarkDown |
# PowerShell 7 | |
$uri = 'https://microsoft.com' | |
$result = Invoke-WebRequest -SkipHttpErrorCheck -Uri $uri -MaximumRedirection 0 -ErrorAction SilentlyContinue -ErrorVariable $err | |
$location = $result.Headers.Location | |
# PowerShell 6 | |
$uri = 'https://microsoft.com' | |
try { | |
Invoke-WebRequest -Uri $uri -MaximumRedirection 0 -ErrorAction Stop | |
} catch { |
While we want this to be a fun, collaborative, and creative process, we still wish to produce a high-quality book we can all be proud of, and readers will be happy to purchase. Editing large numbers of chapters, each from different authors is a significant effort. We have the following expectations of our authors to ease the editing process and ensure a baseline of quality.
What does the project expect of the authors?
- The authors must follow our style and writing guidelines we publish in the GitHub repository.
- The authors must proofread their chapters at least three (3) times before submitting their final draft.
This document sets forth an understanding of copyright related issues between you, Contributor
and the editors of the Book
, tentatively titled The PowerShell Conference Book Volume 3
.
The Book
is being developed and sold as a charitable, not-for-profit, venture.
Your participation is considered entirely voluntary.
Your contributions to the project, which includes your time, written material, and PowerShell code are to be considered charitable contributions.
The only Contributor
compensation will be one (1) free electronic copy of the Book
from the original publisher.
All royalties and income generated from sales of the Book
will be contributed to charitable cause.
That cause is currently designated to support scholarships as part of the OnRamp program sponsored by The DevOps Collective.
New-Item -ItemType File -Path 'c:\temp\[a].txt' -value 'Test' -Force | |
Invoke-RestMethod -InFile 'c:\temp\`[a`].txt' -Method Post -Uri https://httpbin.org/post -ContentType 'text/plain' | |
<# | |
Result: | |
args : | |
data : Test | |
files : |