hashicorp / terraform-provider-azure-classic

Terraform Azure Classic (Service Management) provider
https://www.terraform.io/docs/providers/azure/
Mozilla Public License 2.0
3 stars 11 forks source link

Auto-shutdown Configuration on VM #36

Closed retheshnair closed 6 years ago

retheshnair commented 6 years ago

Hi there,

Terraform Version

0.11.0

Affected Resource(s)

Please list the resources as a list, for example: -VM

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

ARM Configuration Files

{
"apiVersion": "[providers('Microsoft.DevTestLab','labs').apiVersions[0]]",
"type": "microsoft.devtestlab/schedules",
"name": "[concat('shutdown-computevm-',parameters('vmName'),copyIndex(parameters('numerationOfVMs')))]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/',concat(parameters('vmName'),copyIndex(parameters('numerationOfVMs'))))]"
],
"properties": {
"status": "Enabled",
"taskType": "ComputeVmShutdownTask",
"dailyRecurrence": {
"time": "1900"
},
"timeZoneId": "W. Europe Standard Time",
"notificationSettings": {
"status": "Disabled",
"timeInMinutes": 15
},
"targetResourceId": "[resourceId('Microsoft.Compute/virtualMachines',concat(parameters('vmName'),copyIndex(parameters('numerationOfVMs'))))]"
}
}

.

Expected Behavior

Auto-shutdown should be available

Actual Behavior

The feature is not available

retheshnair commented 6 years ago

This is issues to another issues

tombuildsstuff commented 6 years ago

Hi @retheshnair

Thanks for opening this issue :)

Just to let you know, this repository is for the older Azure Service Management Provider ("the old portal") and not the new Azure Resource Manager Provider ("the new portal") - which is what this feature request relates too.

There's a feature request open to add support for DevTestLabs on the AzureRM Provider, which includes support for schedules. Rather than having multiple issues tracking the same thing - I'm going to close this issue in favour of that one so that we can consolidate updates in one place.

Thanks!