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

[Feature]: Add timeCreated to VM, VMSS #19478

Closed
fitzgeraldsteele opened this issue Sep 13, 2022 · 3 comments
Closed

[Feature]: Add timeCreated to VM, VMSS #19478

fitzgeraldsteele opened this issue Sep 13, 2022 · 3 comments
Assignees
Labels
Compute feature-request This issue requires a new behavior in the product in order be resolved. Service Attention This issue is responsible by Azure service team.

Comments

@fitzgeraldsteele
Copy link

Description of the new feature

CRP added timeCreated parameter to VM, VMSS resources. Want these to be visible / sortable in powershell

Proposed implementation details (optional)

        # Creating a new vmss
        $VmSku = "Standard_E2s_v3"
        $domainNameLabel = "d1"+ $rgname;
        $vmssname = "MyVmss"
        $username = "admin01"
        $password = Get-PasswordForVM | ConvertTo-SecureString -AsPlainText -Force
        $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
        New-AzVmss -Name $vmssname -ResourceGroup $rgname -Credential $cred -HostGroupId $hostGroup.Id -Zone $zone -VmSize $VmSku -DomainNameLabel $domainNameLabel
        $vmss = Get-AzVmss -ResourceGroupName $rgname -Name $vmssname;
        **Assert-NotNull $vmss.TimeCreated;**


        # Creating a VM using Simple parameterset
        $securePassword = Get-PasswordForVM | ConvertTo-SecureString -AsPlainText -Force;  
        $user = "admin01";
        $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);

        # Create VM using Default Parameter set
        $domainNameLabel = "d2" + $rgname;
        $vmname = "vmnam";
        New-AzVM -ResourceGroupName $rgname -Name $vmname -Credential $cred -DomainNameLabel $domainNameLabel;
        $vm = Get-AzVm -ResourceGroupName $rgname -Name $vmname;
        Assert-NotNull $vm.TimeCreated;
@fitzgeraldsteele fitzgeraldsteele added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Sep 13, 2022
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Sep 13, 2022
@dingmeng-xue dingmeng-xue added Compute Service Attention This issue is responsible by Azure service team. labels Sep 14, 2022
@ghost
Copy link

ghost commented Sep 14, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @Vaibhav-Agar, @amjads1.

Issue Details

Description of the new feature

CRP added timeCreated parameter to VM, VMSS resources. Want these to be visible / sortable in powershell

Proposed implementation details (optional)

        # Creating a new vmss
        $VmSku = "Standard_E2s_v3"
        $domainNameLabel = "d1"+ $rgname;
        $vmssname = "MyVmss"
        $username = "admin01"
        $password = Get-PasswordForVM | ConvertTo-SecureString -AsPlainText -Force
        $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
        New-AzVmss -Name $vmssname -ResourceGroup $rgname -Credential $cred -HostGroupId $hostGroup.Id -Zone $zone -VmSize $VmSku -DomainNameLabel $domainNameLabel
        $vmss = Get-AzVmss -ResourceGroupName $rgname -Name $vmssname;
        **Assert-NotNull $vmss.TimeCreated;**


        # Creating a VM using Simple parameterset
        $securePassword = Get-PasswordForVM | ConvertTo-SecureString -AsPlainText -Force;  
        $user = "admin01";
        $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);

        # Create VM using Default Parameter set
        $domainNameLabel = "d2" + $rgname;
        $vmname = "vmnam";
        New-AzVM -ResourceGroupName $rgname -Name $vmname -Credential $cred -DomainNameLabel $domainNameLabel;
        $vm = Get-AzVm -ResourceGroupName $rgname -Name $vmname;
        Assert-NotNull $vm.TimeCreated;
Author: fitzgeraldsteele
Assignees: -
Labels:

Compute, feature-request, Service Attention

Milestone: -

@jaylabell
Copy link

Hi @adam, based on the review do you mind closing this issue with a brief update?

@Sandido
Copy link
Member

Sandido commented Sep 15, 2022

This issue was fixed here: #19477
Fix will be released in October.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute feature-request This issue requires a new behavior in the product in order be resolved. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants