title: Azure SPN Password end date creation in Terraform in hours
body: <p>I'm using terraform to create a service principal in Azure and also its password, however, I want to limit the password end in hours and in days. Please, how can I achieve this in terraform. my current code is below</p>
  <pre><code>resource &quot;azuread_service_principal_password&quot; &quot;test&quot; {
    service_principal_id       = azuread_service_principal.test.id
    value                      = &quot;jsjjjja&quot;
    end_date                   = 2021-07-23T12:00:00Z
    }
  </code></pre>
  <p>How do I limit it to the current day and for a number of hours?</p>
  <p>Regards,</p>