[JIRA] (JENKINS-61036) Add withCloudTags() to programatically set tags
Title: Message Title Stefan Scherer created an issue Jenkins / JENKINS-61036 Add withCloudTags() to programatically set tags Issue Type: Improvement Assignee: Azure DevOps Components: azure-vm-agents-plugin Created: 2020-02-10 20:31 Priority: Minor Reporter: Stefan Scherer I've seen JENKINS-55865 and also the advanced setting in the UI to add custom tags. We use a groovy code to roll out our Azure cloud config to several Jenkins masters and want to add tags per cloud. I looked into the samples, but couldn't find a `withCloudTags()` method. From what I understand it should be something similar to `withCloudName()`, but taking an array or a map. Add Comment
[JIRA] (JENKINS-60556) Add MaxVirtualMachinesLimit per VM template
Title: Message Title Stefan Scherer created an issue Jenkins / JENKINS-60556 Add MaxVirtualMachinesLimit per VM template Issue Type: Improvement Assignee: Azure DevOps Components: azure-vm-agents-plugin Created: 2019-12-20 11:37 Priority: Minor Reporter: Stefan Scherer We have an Azure cloud configured with 10-12 different VM templates. I would like to have something I saw in the EC2 agents plugin to specify a limit of VMs per template and not just per cloud. Or is the idea to create multiple clouds with only one VM template in it? This will be my workaround to limit the number of WSL2 agents we start in pull request builds. In the EC2 instance they call it instanceCap. For this plugin it would be helpful to have the `.withMaxVirtualMachinesLimit` work with the AzureVMTemplateBuilder Add Comment
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer commented on JENKINS-59752 Re: Add support for ephemeral OS disk Thanks Bradley Wangia for your PR. And thanks Jie Shen for the new release. I planned to compile it and run some tests, but now it's even simpler to give this feature a try today. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202475.1570808392000.6874.1574747340241%40Atlassian.JIRA.
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer commented on JENKINS-59752 Re: Add support for ephemeral OS disk Bradley Wangia that fork is useful to see how to do it, but for general use it should be extended to all json templates. I'm not currently working on it, so if you have time, feel free to draft a PR. But I'm still interested in that feature, just in my backlog for things to do... Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202475.1570808392000.2195.1573938600205%40Atlassian.JIRA.
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer updated an issue Jenkins / JENKINS-59752 Add support for ephemeral OS disk Change By: Stefan Scherer Recently, Microsoft introduced the concept of [Ephemeral OS disk|https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks] for certain types of VMs. An Ephemeral OS disk is stored on local storage and is therefore faster and free, but it is not persistent. It is therefore only used in situations where the VM is based on an [image|https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource] and every time it is started the OS disk will get “regenerated” from the generalized image and any changes made to the OS disk (C: ) will be lost if the VM moves to another host or is reallocated. [https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks] This would be super helpful for ephemeral Jenkins agents to have the best performance like the temporary disk (D: ) and have no cost for this disk.What I can see it's only a small change in the json. The diffDiskSettings with option Local seems to be the key.Machine sizes must be big enough to carry the disk image (127 GB for Windows from Marketplace) in their cache. Or use one of the smalldisk images (30 GB) and set the diskSizeGB to 100 GB for a Standard_D4s_v3. {code}{"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion": "1.0.0.0","parameters": {"virtualMachines_redacted_name": {"defaultValue": "redacted","type": "String"},"redacted_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/PackerImages/providers/Microsoft.Compute/images/redacted","type": "String"},"disks_redacted_disk1_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.Compute/disks/redacted","type": "String"},"networkInterfaces_redacted41_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.Network/networkInterfaces/redacted","type": "String"}},"variables": {},"resources": [{"type": "Microsoft.Compute/virtualMachines","apiVersion": "2019-03-01","name": "[parameters('virtualMachines_redacted_name')]","location": "westus","properties": {"hardwareProfile": {"vmSize": "Standard_D4s_v3"},"storageProfile": {"imageReference": { "id": "[parameters('redacted_externalid')]"},"osDisk": { "osType": "Windows", "diffDiskSettings": { "option": "Local" }, "name": "[concat(parameters('virtualMachines_redacted_name'), '_disk1_')]",
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer edited a comment on JENKINS-59752 Re: Add support for ephemeral OS disk Found a promising fork [https://github.com/jenkinsci/azure-vm-agents-plugin/compare/dev...rittneje:azure-agent-os-type] that adds ephemeralOSDisk and managedDiskStorageAccountType, but needs some more adjustments for all json templates and probably changes for deprovision() as no disk has to be deleted .I can try to help here.The relevant part is diffDiskSetting = Local and caching = ReadOnly. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202475.1570808392000.7554.1572709140149%40Atlassian.JIRA.
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer commented on JENKINS-59752 Re: Add support for ephemeral OS disk Found a promising fork https://github.com/jenkinsci/azure-vm-agents-plugin/compare/dev...rittneje:azure-agent-os-type that adds ephemeralOSDisk and managedDiskStorageAccountType, but needs some more adjustments for all json templates. I can try to help here. The relevant part is diffDiskSetting = Local and caching = ReadOnly. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202475.1570808392000.7551.1572708960192%40Atlassian.JIRA.
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer updated an issue Jenkins / JENKINS-59752 Add support for ephemeral OS disk Change By: Stefan Scherer Recently, Microsoft introduced the concept of [Ephemeral OS disk|https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks] for certain types of VMs. An Ephemeral OS disk is stored on local storage and is therefore faster and free, but it is not persistent. It is therefore only used in situations where the VM is based on an [image|https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource] and every time it is started the OS disk will get “regenerated” from the generalized image and any changes made to the OS disk (C: ) will be lost if the VM moves to another host or is reallocated. [https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks] This would be super helpful for ephemeral Jenkins agents to have the best performance like the temporary disk (D: ) and have no cost for this disk.What I can see it's only a small change in the json. The diffDiskSettings with option Local seems to be the key.Machine sizes must be big enough to carry the disk image (127 GB for Windows from Marketplace) in their cache.{code}{"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion": "1.0.0.0","parameters": {"virtualMachines_redacted_name": {"defaultValue": "redacted","type": "String"},"redacted_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/PackerImages/providers/Microsoft.Compute/images/redacted","type": "String"},"disks_redacted_disk1_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/ ci-docker-com redacted /providers/Microsoft.Compute/disks/redacted","type": "String"},"networkInterfaces_redacted41_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/ ci-docker-com redacted /providers/Microsoft.Network/networkInterfaces/redacted","type": "String"}},"variables": {},"resources": [{"type": "Microsoft.Compute/virtualMachines","apiVersion": "2019-03-01","name": "[parameters('virtualMachines_redacted_name')]","location": "westus","properties": {"hardwareProfile": {"vmSize": "Standard_D4s_v3"},"storageProfile": {"imageReference": { "id": "[parameters('redacted_externalid')]"},"osDisk": { "osType": "Windows", "diffDiskSettings": { "option": "Local" }, "name": "[concat(parameters('virtualMachines_redacted_name'), '_disk1_')]", "createOption": "FromImage",
[JIRA] (JENKINS-55943) Add possibility to select osDisk SKU
Title: Message Title Stefan Scherer commented on JENKINS-55943 Re: Add possibility to select osDisk SKU I've also created JENKINS-59752 which is about the same topic, having better disk performance for the OS disk. This would be even more interesting for us. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.197352.1549276857000.6057.1570808640190%40Atlassian.JIRA.
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer updated an issue Jenkins / JENKINS-59752 Add support for ephemeral OS disk Change By: Stefan Scherer Recently, Microsoft introduced the concept of [Ephemeral OS disk|https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks] for certain types of VMs. An Ephemeral OS disk is stored on local storage and is therefore faster and free, but it is not persistent. It is therefore only used in situations where the VM is based on an [image|https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource] and every time it is started the OS disk will get “regenerated” from the generalized image and any changes made to the OS disk (C:) will be lost if the VM moves to another host or is reallocated. [https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks] This would be super helpful for ephemeral Jenkins agents to have the best performance like the temporary disk (D:) and have no cost for this disk.What I can see it's only a small change in the json. The diffDiskSettings with option Local seems to be the key.Machine sizes must be big enough to carry the disk image (127 GB for Windows from Marketplace) in their cache.{code}{"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion": "1.0.0.0","parameters": {"virtualMachines_redacted_name": {"defaultValue": "redacted","type": "String"},"redacted_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/PackerImages/providers/Microsoft.Compute/images/redacted","type": "String"},"disks_redacted_disk1_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/ci-docker-com/providers/Microsoft.Compute/disks/redacted","type": "String"},"networkInterfaces_redacted41_externalid": {"defaultValue": "/subscriptions/redacted/resourceGroups/ci-docker-com/providers/Microsoft.Network/networkInterfaces/redacted","type": "String"}},"variables": {},"resources": [{"type": "Microsoft.Compute/virtualMachines","apiVersion": "2019-03-01","name": "[parameters('virtualMachines_redacted_name')]","location": "westus","properties": {"hardwareProfile": {"vmSize": "Standard_D4s_v3"},"storageProfile": {"imageReference": { "id": "[parameters('redacted_externalid')]"},"osDisk": { "osType": "Windows", "diffDiskSettings": { "option": "Local" }, "name": "[concat(parameters('virtualMachines_redacted_name'), '_disk1_')]", "createOption": "FromImage", "caching": "ReadOnly",
[JIRA] (JENKINS-59752) Add support for ephemeral OS disk
Title: Message Title Stefan Scherer created an issue Jenkins / JENKINS-59752 Add support for ephemeral OS disk Issue Type: Improvement Assignee: Azure DevOps Components: azure-vm-agents-plugin Created: 2019-10-11 15:39 Priority: Minor Reporter: Stefan Scherer Recently, Microsoft introduced the concept of Ephemeral OS disk for certain types of VMs. An Ephemeral OS disk is stored on local storage and is therefore faster and free, but it is not persistent. It is therefore only used in situations where the VM is based on an image and every time it is started the OS disk will get “regenerated” from the generalized image and any changes made to the OS disk (C will be lost if the VM moves to another host or is reallocated. https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks This would be super helpful for ephemeral Jenkins agents to have the best performance like the temporary disk (D and have no cost for this disk. What I can see it's only a small change in the json. The diffDiskSettings with option Local seems to be the key. Machine sizes must be big enough to carry the disk image (127 GB for Windows from Marketplace) in their cache. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "virtualMachines_redacted_name": { "defaultValue": "redacted", "type": "String" }, "redacted_externalid": { "defaultValue": "/subscriptions/redacted/resourceGroups/PackerImages/providers/Microsoft.Compute/images/redacted", "type": "String" }, "disks_redacted_disk1_externalid": { "defaultValue":
[JIRA] (JENKINS-55943) Add possibility to select osDisk SKU
Title: Message Title Stefan Scherer commented on JENKINS-55943 Re: Add possibility to select osDisk SKU Thanks, I searched through the codebase and I think this variable "storageAccountType": "Standard_LRS", in https://github.com/jenkinsci/azure-vm-agents-plugin/blob/dev/src/main/resources/customImageTemplateWithManagedDisk.json#L15 doesn't get changed. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.197352.1549276857000.6049.1570807680328%40Atlassian.JIRA.
[JIRA] (JENKINS-55943) Add possibility to select osDisk SKU
Title: Message Title Stefan Scherer commented on JENKINS-55943 Re: Add possibility to select osDisk SKU Any updates? Any help needed? (I don't know the codebase, but I could try if it's similar to eg. osDiskSize) Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.197352.1549276857000.5369.1570785961453%40Atlassian.JIRA.