Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Key Vault: Datetime with no tzinfo will be considered UTC #28101

Closed
progxaker opened this issue Dec 27, 2023 · 4 comments · Fixed by #28138
Closed

Azure Key Vault: Datetime with no tzinfo will be considered UTC #28101

progxaker opened this issue Dec 27, 2023 · 4 comments · Fixed by #28138
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. KeyVault az keyvault question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@progxaker
Copy link

Describe the bug

The same issue as in #27052 but with az keyvault secret set-attribute and az keyvault key set-attribute.

Related command

az keyvault secret set-attribute --name "secret-name" --vault-name "keyvault-name" --expires "2028-02-20T00:00:00Z"
az keyvault key set-attribute --name "key-name" --vault-name "keyvault-name" --expires "2028-02-20T00:00:00Z"

Errors

Datetime with no tzinfo will be considered UTC.

Issue script & Debug output

msal.application: Broker enabled? False
azure.keyvault.secrets._generated._serialization: Datetime with no tzinfo will be considered UTC.
urllib3.connection: Starting HTTPS connection (1): ...
msal.application: Broker enabled? False
azure.keyvault.keys._generated._serialization: Datetime with no tzinfo will be considered UTC.
urllib3.connection: Starting HTTPS connection (1): ...

Expected behavior

The message Datetime with no tzinfo will be considered UTC message is disappeared.

Environment Summary

azure-cli 2.55.0
core 2.55.0
telemetry 1.1.0

Extensions:
aks-preview 0.5.173
azure-firewall 1.0.0

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directoty '/root/.azure/cliextensions'

Python (Linux) 3.11.5 (main, Nov 29 2023, 03:41:49) [GCC 10.2.1 20210110]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Additional context

No response

@progxaker progxaker added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 27, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 27, 2023

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot KeyVault az keyvault labels Dec 27, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 27, 2023
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 28, 2023
@yonzhan yonzhan added this to the Backlog milestone Dec 28, 2023
@jsntcy
Copy link
Member

jsntcy commented Dec 28, 2023

@evelyn-ys, please help take a look.

@progxaker
Copy link
Author

progxaker commented Jan 5, 2024

Hello. Could you please tell if there are any updates?

@progxaker
Copy link
Author

Thanks for the help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. KeyVault az keyvault question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
4 participants