title: Check if table exists in azure storage powershell
body: <p>i have this powershell using which I want to create new table in azure storage account.</p>
  
  <pre><code>Param(
   [string]$rgName,
   [string] $tableName
   )
   $storcontext= New-AzureStorageContext -ConnectionString '$(MyConnectionString)'
  
  if(!(Get-AzureStorageTable -Name $tableName -Context $storcontext ))
   {
     New-AzureStorageTable -Name $tableName -Context $storcontext
   }
  </code></pre>
  
  <p>New-AzureStorageTable command works perfect.however i tried adding a check to see if table already exists . but on Get command, powershell throws me saying table does not exist.</p>
  
  <p>What I want to do is check if table exist, if not , then create it.</p>
  
  <p>Is there another way of doing this?</p>