You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Created a new secret and then set the DateTimeOffset for the Expires and NotBefore properties. Reviewed the data in the Azure portal and saw that the date in the portal does not match the date retrieved from the SDK.
Follow the steps for creating a new Secret("mySecret","myValue")
Set the properites on the new Secret object for Expires and NotBefore
Save the object using the SecretClient.Set method
Get the object using the SecretClient.Get method
Observed: The properties on the retrieved object do not match the results displayed in the Azure portal. The azure portal shows the secret will Expire in the year 51703
Code Snippet
SecretClientclient=newSecretClient(vaultUri:newUri("https://ux-bash-keyvault.vault.azure.net/"),credential:newDefaultAzureCredential());// Create a new secret using the secret clientvarnewSecret=newSecret("mySecret","newSecret");newSecret.Expires=newDateTimeOffset(DateTime.Now.AddDays(50));newSecret.NotBefore=newDateTimeOffset(DateTime.Now.AddDays(49));varnewSecretResponse=client.Set(newSecret);SecretgetNewSecretResponse=client.Get(newSecret.Name);Console.WriteLine("New Secret secret.Value: "+getNewSecretResponse.Name);Console.WriteLine("New Secret secret.Version: "+getNewSecretResponse.Version);Console.WriteLine("New Secret secret.Expires: "+getNewSecretResponse.Expires);Console.WriteLine("New Secret secret.NotBefore: "+getNewSecretResponse.NotBefore);
Expected behavior
Expecting the Date in the Azure portal to match the date returned by the library.
Screenshots
Setup (please complete the following information):
OS: [Windows 10]
IDE : [Visual Studio 2019]
Version of the Library used: Azure.Security.KeyVault.Secrets -Version 4.0.0-preview.2
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
Bug Description Added
Repro Steps Added
Setup information Added
The text was updated successfully, but these errors were encountered:
Describe the bug
Created a new secret and then set the DateTimeOffset for the Expires and NotBefore properties. Reviewed the data in the Azure portal and saw that the date in the portal does not match the date retrieved from the SDK.
Exception or Stack Trace
To Reproduce
Code Snippet
Expected behavior
Expecting the Date in the Azure portal to match the date returned by the library.
Screenshots
Setup (please complete the following information):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: