Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Creating a guid object
- $guid = [guid]::NewGuid()
- # Adding a sample row
- Add-AzTableRow -table $table -partitionKey "partition01" -rowKey "item1" -property @{"id"=$guid;"computerName"="COMP01";"osVersion"="Windows 10";"status"="OK"}
- # Getting row based on guid value of Id column using the $guid object
- Get-AzTableRow -table $table -columnName id -guidValue $guid -operator Equal
- # Getting row based on guid value of Id column by casting a guid string into guid type
- Get-AzTableRow -table $table -columnName id -guidValue ([guid]"30cd1759-45b3-4ead-8767-ebeef6c0d206") -operator Equal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement