azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Microsoft.RecoveryServices/vaults/backupPolicies powershell timezone issue in Azure Portal

Open jontreynes opened this issue 8 years ago • 3 comments

Description

Script/Steps for Reproduction

I am trying to create a new policy via powershell based off an existing policy already in a recovery vault.
When I do so, I use New-AzureRmRecoveryServicesBackupProtectionPolicy.
This command successfully creates a new policy. However, when creating the policy it does not copy the timezone.
To be more explicit, here is a run through. As a result of this run through, you will see that the time zone is not copied.
This policy "PCI" was created through the portal

Module Version

Script     4.1.8      AzureRM.RecoveryServices            {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryServicesVaultSettingsFile, New-Azur...
Script     4.4.1      AzureRM.RecoveryServices.Backup     {Backup-AzureRmRecoveryServicesBackupItem, Disable-AzureRmRecoveryServicesBackupProtection, Disable-AzureRmRecoveryServicesBackupRPM...
Script     0.2.10     AzureRM.RecoveryServices.SiteRec... {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-AzureRmRecoveryServicesAsrAlertSetting, Get-AzureRmRecoveryServicesAsrEvent, Get-A...

Environment Data


Name                           Value
----                           -----
PSVersion                      5.1.17134.228
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.228
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Debug Output

no bugs of interest as this may be strictly a portal issue

image image image image It appears that the new policy is UTC. The issue must be the frontend portal updating the timezone type as it is in the actual object image

jontreynes avatar Nov 05 '18 18:11 jontreynes

@dragonfly91 Can you take a look at this issue?

maddieclayton avatar Nov 06 '18 22:11 maddieclayton

A fix has been initiated : https://github.com/Azure/azure-powershell/pull/7788

siddharth7 avatar Nov 09 '18 09:11 siddharth7

fix is given for this issue. Closing it.

pvrk avatar May 27 '19 18:05 pvrk