Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # Creating a guid object
  2. $guid = [guid]::NewGuid()
  3.  
  4. # Adding a sample row
  5. Add-AzTableRow -table $table -partitionKey "partition01" -rowKey "item1" -property @{"id"=$guid;"computerName"="COMP01";"osVersion"="Windows 10";"status"="OK"}
  6.  
  7. # Getting row based on guid value of Id column using the $guid object
  8. Get-AzTableRow -table $table -columnName id -guidValue $guid -operator Equal
  9.  
  10. # Getting row based on guid value of Id column by casting a guid string into guid type
  11. 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