title: How to set infinite shared access signature policy in azure?
body: <p>I am trying to set a shared access policy so that the user has infinite SharedAccessExpiryTime. I will track their access policies so that they can be revoked if needed.</p>
  
  <p>From <a href="https://stackoverflow.com/questions/10135133/how-do-you-setup-shared-access-signature-with-more-than-1-year-expiration-at-azu">this thread</a>, the answer states there is a mechanism for setting an infinite expiration time. I did some searching and was not able to find this, how can this be done? </p>
  
  <p>Currently, I simulate infinite by providing some large values for expiration time:</p>
  
  <pre><code>         SharedAccessTablePolicy policy = new SharedAccessTablePolicy()
          {
              SharedAccessExpiryTime = DateTime.UtcNow.AddYears(500),
  
              Permissions = SharedAccessTablePermissions.Add
              | SharedAccessTablePermissions.Delete
              | SharedAccessTablePermissions.Update
              | SharedAccessTablePermissions.Query
          };
  </code></pre>