diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 74d5b0ed98f2..5a0c33a47a1b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -34,6 +34,12 @@ "schema": { "$ref": "#/definitions/ProviderOperationResult" } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-examples": { @@ -143,12 +149,23 @@ "$ref": "#/definitions/OperationResult" } }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/OperationResult" + } + }, "default": { "description": "BadRequest", "schema": { "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Operations_Get": { + "$ref": "./examples/Operations_Get.json" + } } } }, @@ -209,7 +226,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Schedule" + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "GlobalSchedules_ListBySubscription": { + "$ref": "./examples/GlobalSchedules_ListBySubscription.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs": { @@ -347,7 +369,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ArtifactSource" + "x-ms-odata": "#/definitions/ArtifactSource", + "x-ms-examples": { + "ArtifactSources_List": { + "$ref": "./examples/ArtifactSources_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates": { @@ -424,7 +451,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ArmTemplate" + "x-ms-odata": "#/definitions/ArmTemplate", + "x-ms-examples": { + "ArmTemplates_List": { + "$ref": "./examples/ArmTemplates_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}": { @@ -485,6 +517,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ArmTemplates_Get": { + "$ref": "./examples/ArmTemplates_Get.json" + } } } }, @@ -562,7 +599,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Artifact" + "x-ms-odata": "#/definitions/Artifact", + "x-ms-examples": { + "Artifacts_List": { + "$ref": "./examples/Artifacts_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}": { @@ -623,6 +665,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Artifacts_Get": { + "$ref": "./examples/Artifacts_Get.json" + } } } }, @@ -687,6 +734,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Artifacts_GenerateArmTemplate": { + "$ref": "./examples/Artifacts_GenerateArmTemplate.json" + } } } }, @@ -741,6 +793,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ArtifactSources_Get": { + "$ref": "./examples/ArtifactSources_Get.json" + } } }, "put": { @@ -802,6 +859,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ArtifactSources_CreateOrUpdate": { + "$ref": "./examples/ArtifactSources_CreateOrUpdate.json" + } } }, "delete": { @@ -848,6 +910,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ArtifactSources_Delete": { + "$ref": "./examples/ArtifactSources_Delete.json" + } } }, "patch": { @@ -903,6 +970,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ArtifactSources_Update": { + "$ref": "./examples/ArtifactSources_Update.json" + } } } }, @@ -957,6 +1029,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Costs_Get": { + "$ref": "./examples/Costs_Get.json" + } } }, "put": { @@ -1018,6 +1095,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Costs_CreateOrUpdate": { + "$ref": "./examples/Costs_CreateOrUpdate.json" + } } } }, @@ -1088,7 +1170,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/CustomImage" + "x-ms-odata": "#/definitions/CustomImage", + "x-ms-examples": { + "CustomImages_List": { + "$ref": "./examples/CustomImages_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}": { @@ -1142,6 +1229,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "CustomImages_Get": { + "$ref": "./examples/CustomImages_Get.json" + } } }, "put": { @@ -1204,6 +1296,11 @@ } } }, + "x-ms-examples": { + "CustomImages_CreateOrUpdate": { + "$ref": "./examples/CustomImages_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -1254,6 +1351,11 @@ } } }, + "x-ms-examples": { + "CustomImages_Delete": { + "$ref": "./examples/CustomImages_Delete.json" + } + }, "x-ms-long-running-operation": true }, "patch": { @@ -1309,6 +1411,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "CustomImages_Update": { + "$ref": "./examples/CustomImages_Update.json" + } } } }, @@ -1379,7 +1486,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Formula" + "x-ms-odata": "#/definitions/Formula", + "x-ms-examples": { + "Formulas_List": { + "$ref": "./examples/Formulas_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}": { @@ -1433,6 +1545,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Formulas_Get": { + "$ref": "./examples/Formulas_Get.json" + } } }, "put": { @@ -1495,6 +1612,11 @@ } } }, + "x-ms-examples": { + "Formulas_CreateOrUpdate": { + "$ref": "./examples/Formulas_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -1541,6 +1663,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Formulas_Delete": { + "$ref": "./examples/Formulas_Delete.json" + } } }, "patch": { @@ -1596,6 +1723,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Formulas_Update": { + "$ref": "./examples/Formulas_Update.json" + } } } }, @@ -1666,7 +1798,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/GalleryImage" + "x-ms-odata": "#/definitions/GalleryImage", + "x-ms-examples": { + "GalleryImages_List": { + "$ref": "./examples/GalleryImages_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels": { @@ -1736,7 +1873,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/NotificationChannel" + "x-ms-odata": "#/definitions/NotificationChannel", + "x-ms-examples": { + "NotificationChannels_List": { + "$ref": "./examples/NotificationChannels_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}": { @@ -1790,6 +1932,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "NotificationChannels_Get": { + "$ref": "./examples/NotificationChannels_Get.json" + } } }, "put": { @@ -1851,6 +1998,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "NotificationChannels_CreateOrUpdate": { + "$ref": "./examples/NotificationChannels_CreateOrUpdate.json" + } } }, "delete": { @@ -1897,6 +2049,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "NotificationChannels_Delete": { + "$ref": "./examples/NotificationChannels_Delete.json" + } } }, "patch": { @@ -1952,6 +2109,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "NotificationChannels_Update": { + "$ref": "./examples/NotificationChannels_Update.json" + } } } }, @@ -2006,6 +2168,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "NotificationChannels_Notify": { + "$ref": "./examples/NotificationChannels_Notify.json" + } } } }, @@ -2063,6 +2230,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "PolicySets_EvaluatePolicies": { + "$ref": "./examples/PolicySets_EvaluatePolicies.json" + } } } }, @@ -2140,7 +2312,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Policy" + "x-ms-odata": "#/definitions/Policy", + "x-ms-examples": { + "Policies_List": { + "$ref": "./examples/Policies_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}": { @@ -2201,6 +2378,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Policies_Get": { + "$ref": "./examples/Policies_Get.json" + } } }, "put": { @@ -2269,6 +2451,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Policies_CreateOrUpdate": { + "$ref": "./examples/Policies_CreateOrUpdate.json" + } } }, "delete": { @@ -2322,6 +2509,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Policies_Delete": { + "$ref": "./examples/Policies_Delete.json" + } } }, "patch": { @@ -2384,6 +2576,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Policies_Update": { + "$ref": "./examples/Policies_Update.json" + } } } }, @@ -2454,7 +2651,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Schedule" + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "Schedules_List": { + "$ref": "./examples/Schedules_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}": { @@ -2508,6 +2710,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Schedules_Get": { + "$ref": "./examples/Schedules_Get.json" + } } }, "put": { @@ -2569,6 +2776,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Schedules_CreateOrUpdate": { + "$ref": "./examples/Schedules_CreateOrUpdate.json" + } } }, "delete": { @@ -2615,6 +2827,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" + } } }, "patch": { @@ -2670,6 +2887,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Schedules_Update": { + "$ref": "./examples/Schedules_Update.json" + } } } }, @@ -2719,6 +2941,11 @@ } } }, + "x-ms-examples": { + "Schedules_Execute": { + "$ref": "./examples/Schedules_Execute.json" + } + }, "x-ms-long-running-operation": true } }, @@ -2770,6 +2997,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Schedules_ListApplicable": { + "$ref": "./examples/Schedules_ListApplicable.json" + } } } }, @@ -2818,6 +3050,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceRunners_Get": { + "$ref": "./examples/ServiceRunners_Get.json" + } } }, "put": { @@ -2879,6 +3116,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceRunners_CreateOrUpdate": { + "$ref": "./examples/ServiceRunners_CreateOrUpdate.json" + } } }, "delete": { @@ -2925,6 +3167,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceRunners_Delete": { + "$ref": "./examples/ServiceRunners_Delete.json" + } } } }, @@ -2995,7 +3242,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/User" + "x-ms-odata": "#/definitions/User", + "x-ms-examples": { + "Users_List": { + "$ref": "./examples/Users_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}": { @@ -3049,6 +3301,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Users_Get": { + "$ref": "./examples/Users_Get.json" + } } }, "put": { @@ -3111,6 +3368,11 @@ } } }, + "x-ms-examples": { + "Users_CreateOrUpdate": { + "$ref": "./examples/Users_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -3161,6 +3423,11 @@ } } }, + "x-ms-examples": { + "Users_Delete": { + "$ref": "./examples/Users_Delete.json" + } + }, "x-ms-long-running-operation": true }, "patch": { @@ -3216,6 +3483,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Users_Update": { + "$ref": "./examples/Users_Update.json" + } } } }, @@ -3293,7 +3565,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Disk" + "x-ms-odata": "#/definitions/Disk", + "x-ms-examples": { + "Disks_List": { + "$ref": "./examples/Disks_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}": { @@ -3354,6 +3631,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Disks_Get": { + "$ref": "./examples/Disks_Get.json" + } } }, "put": { @@ -3423,6 +3705,11 @@ } } }, + "x-ms-examples": { + "Disks_CreateOrUpdate": { + "$ref": "./examples/Disks_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -3480,6 +3767,11 @@ } } }, + "x-ms-examples": { + "Disks_Delete": { + "$ref": "./examples/Disks_Delete.json" + } + }, "x-ms-long-running-operation": true }, "patch": { @@ -3542,6 +3834,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Disks_Update": { + "$ref": "./examples/Disks_Update.json" + } } } }, @@ -3607,6 +3904,11 @@ } } }, + "x-ms-examples": { + "Disks_Attach": { + "$ref": "./examples/Disks_Attach.json" + } + }, "x-ms-long-running-operation": true } }, @@ -3672,6 +3974,11 @@ } } }, + "x-ms-examples": { + "Disks_Detach": { + "$ref": "./examples/Disks_Detach.json" + } + }, "x-ms-long-running-operation": true } }, @@ -3749,7 +4056,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/DtlEnvironment" + "x-ms-odata": "#/definitions/DtlEnvironment", + "x-ms-examples": { + "Environments_List": { + "$ref": "./examples/Environments_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}": { @@ -3810,6 +4122,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Environments_Get": { + "$ref": "./examples/Environments_Get.json" + } } }, "put": { @@ -3879,6 +4196,11 @@ } } }, + "x-ms-examples": { + "Environments_CreateOrUpdate": { + "$ref": "./examples/Environments_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -3936,6 +4258,11 @@ } } }, + "x-ms-examples": { + "Environments_Delete": { + "$ref": "./examples/Environments_Delete.json" + } + }, "x-ms-long-running-operation": true }, "patch": { @@ -3998,6 +4325,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Environments_Update": { + "$ref": "./examples/Environments_Update.json" + } } } }, @@ -4075,7 +4407,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Secret" + "x-ms-odata": "#/definitions/Secret", + "x-ms-examples": { + "Secrets_List": { + "$ref": "./examples/Secrets_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}": { @@ -4136,6 +4473,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Secrets_Get": { + "$ref": "./examples/Secrets_Get.json" + } } }, "put": { @@ -4205,6 +4547,11 @@ } } }, + "x-ms-examples": { + "Secrets_CreateOrUpdate": { + "$ref": "./examples/Secrets_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -4258,6 +4605,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Secrets_Delete": { + "$ref": "./examples/Secrets_Delete.json" + } } }, "patch": { @@ -4320,6 +4672,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Secrets_Update": { + "$ref": "./examples/Secrets_Update.json" + } } } }, @@ -4397,7 +4754,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ServiceFabric" + "x-ms-odata": "#/definitions/ServiceFabric", + "x-ms-examples": { + "ServiceFabrics_List": { + "$ref": "./examples/ServiceFabrics_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}": { @@ -4458,6 +4820,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceFabrics_Get": { + "$ref": "./examples/ServiceFabrics_Get.json" + } } }, "put": { @@ -4527,6 +4894,11 @@ } } }, + "x-ms-examples": { + "ServiceFabrics_CreateOrUpdate": { + "$ref": "./examples/ServiceFabrics_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation": true }, "delete": { @@ -4584,6 +4956,11 @@ } } }, + "x-ms-examples": { + "ServiceFabrics_Delete": { + "$ref": "./examples/ServiceFabrics_Delete.json" + } + }, "x-ms-long-running-operation": true }, "patch": { @@ -4646,6 +5023,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceFabrics_Update": { + "$ref": "./examples/ServiceFabrics_Update.json" + } } } }, @@ -4701,6 +5083,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceFabrics_ListApplicableSchedules": { + "$ref": "./examples/ServiceFabrics_ListApplicableSchedules.json" + } } } }, @@ -4757,6 +5144,11 @@ } } }, + "x-ms-examples": { + "ServiceFabrics_Start": { + "$ref": "./examples/ServiceFabrics_Start.json" + } + }, "x-ms-long-running-operation": true } }, @@ -4813,6 +5205,11 @@ } } }, + "x-ms-examples": { + "ServiceFabrics_Stop": { + "$ref": "./examples/ServiceFabrics_Stop.json" + } + }, "x-ms-long-running-operation": true } }, @@ -4897,7 +5294,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Schedule" + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "ServiceFabricSchedules_List": { + "$ref": "./examples/ServiceFabricSchedules_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}": { @@ -4965,6 +5367,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Get": { + "$ref": "./examples/ServiceFabricSchedules_Get.json" + } } }, "put": { @@ -5040,6 +5447,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceFabricSchedules_CreateOrUpdate": { + "$ref": "./examples/ServiceFabricSchedules_CreateOrUpdate.json" + } } }, "delete": { @@ -5100,6 +5512,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Delete": { + "$ref": "./examples/ServiceFabricSchedules_Delete.json" + } } }, "patch": { @@ -5169,8 +5586,13 @@ "$ref": "#/definitions/CloudError" } } - } - } + }, + "x-ms-examples": { + "ServiceFabricSchedules_Update": { + "$ref": "./examples/ServiceFabricSchedules_Update.json" + } + } + } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute": { "post": { @@ -5232,6 +5654,11 @@ } } }, + "x-ms-examples": { + "ServiceFabricSchedules_Execute": { + "$ref": "./examples/ServiceFabricSchedules_Execute.json" + } + }, "x-ms-long-running-operation": true } }, @@ -5606,6 +6033,11 @@ } } }, + "x-ms-examples": { + "VirtualMachines_AddDataDisk": { + "$ref": "./examples/VirtualMachines_AddDataDisk.json" + } + }, "x-ms-long-running-operation": true } }, @@ -5664,6 +6096,11 @@ } } }, + "x-ms-examples": { + "VirtualMachines_ApplyArtifacts": { + "$ref": "./examples/VirtualMachines_ApplyArtifacts.json" + } + }, "x-ms-long-running-operation": true } }, @@ -5776,6 +6213,11 @@ } } }, + "x-ms-examples": { + "VirtualMachines_DetachDataDisk": { + "$ref": "./examples/VirtualMachines_DetachDataDisk.json" + } + }, "x-ms-long-running-operation": true } }, @@ -5877,6 +6319,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "VirtualMachines_ListApplicableSchedules": { + "$ref": "./examples/VirtualMachines_ListApplicableSchedules.json" + } } } }, @@ -6205,6 +6652,11 @@ } } }, + "x-ms-examples": { + "VirtualMachines_TransferDisks": { + "$ref": "./examples/VirtualMachines_TransferDisks.json" + } + }, "x-ms-long-running-operation": true } }, @@ -6336,7 +6788,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Schedule" + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "VirtualMachineSchedules_List": { + "$ref": "./examples/VirtualMachineSchedules_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}": { @@ -6397,6 +6854,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Get": { + "$ref": "./examples/VirtualMachineSchedules_Get.json" + } } }, "put": { @@ -6465,6 +6927,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "VirtualMachineSchedules_CreateOrUpdate": { + "$ref": "./examples/VirtualMachineSchedules_CreateOrUpdate.json" + } } }, "delete": { @@ -6518,6 +6985,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Delete": { + "$ref": "./examples/VirtualMachineSchedules_Delete.json" + } } }, "patch": { @@ -6580,6 +7052,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "VirtualMachineSchedules_Update": { + "$ref": "./examples/VirtualMachineSchedules_Update.json" + } } } }, @@ -6636,6 +7113,11 @@ } } }, + "x-ms-examples": { + "VirtualMachineSchedules_Execute": { + "$ref": "./examples/VirtualMachineSchedules_Execute.json" + } + }, "x-ms-long-running-operation": true } }, @@ -7319,6 +7801,11 @@ } } }, + "x-ms-examples": { + "Labs_ExportResourceUsage": { + "$ref": "./examples/Labs_ExportResourceUsage.json" + } + }, "x-ms-long-running-operation": true } }, @@ -7425,6 +7912,11 @@ } } }, + "x-ms-examples": { + "Labs_ImportVirtualMachine": { + "$ref": "./examples/Labs_ImportVirtualMachine.json" + } + }, "x-ms-long-running-operation": true } }, @@ -7469,6 +7961,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Labs_ListVhds": { + "$ref": "./examples/Labs_ListVhds.json" + } } } }, @@ -7532,7 +8029,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/Schedule" + "x-ms-odata": "#/definitions/Schedule", + "x-ms-examples": { + "GlobalSchedules_ListByResourceGroup": { + "$ref": "./examples/GlobalSchedules_ListByResourceGroup.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}": { @@ -7579,6 +8081,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "GlobalSchedules_Get": { + "$ref": "./examples/GlobalSchedules_Get.json" + } } }, "put": { @@ -7633,6 +8140,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "GlobalSchedules_CreateOrUpdate": { + "$ref": "./examples/GlobalSchedules_CreateOrUpdate.json" + } } }, "delete": { @@ -7672,6 +8184,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "GlobalSchedules_Delete": { + "$ref": "./examples/GlobalSchedules_Delete.json" + } } }, "patch": { @@ -7720,6 +8237,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "GlobalSchedules_Update": { + "$ref": "./examples/GlobalSchedules_Update.json" + } } } }, @@ -7762,6 +8284,11 @@ } } }, + "x-ms-examples": { + "GlobalSchedules_Execute": { + "$ref": "./examples/GlobalSchedules_Execute.json" + } + }, "x-ms-long-running-operation": true } }, @@ -7813,6 +8340,11 @@ } } }, + "x-ms-examples": { + "GlobalSchedules_Retarget": { + "$ref": "./examples/GlobalSchedules_Retarget.json" + } + }, "x-ms-long-running-operation": true } } @@ -7845,13 +8377,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/ApplicableSchedulePropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "ApplicableScheduleProperties": { "description": "Properties of a schedules applicable to a virtual machine.", @@ -7870,16 +8396,7 @@ "ApplicableSchedulePropertiesFragment": { "description": "Properties of a schedules applicable to a virtual machine.", "type": "object", - "properties": { - "labVmsShutdown": { - "$ref": "#/definitions/ScheduleFragment", - "description": "The auto-shutdown schedule, if one has been set at the lab or lab resource level." - }, - "labVmsStartup": { - "$ref": "#/definitions/ScheduleFragment", - "description": "The auto-startup schedule, if one has been set at the lab or lab resource level." - } - } + "properties": {} }, "ApplyArtifactsRequest": { "description": "Request body for applying artifacts to a virtual machine.", @@ -7961,16 +8478,7 @@ "ArmTemplateParameterPropertiesFragment": { "description": "Properties of an Azure Resource Manager template parameter.", "type": "object", - "properties": { - "name": { - "description": "The name of the template parameter.", - "type": "string" - }, - "value": { - "description": "The value of the template parameter.", - "type": "string" - } - } + "properties": {} }, "ArmTemplateProperties": { "description": "Properties of an Azure Resource Manager template.", @@ -8064,22 +8572,7 @@ "ArtifactDeploymentStatusPropertiesFragment": { "description": "Properties of an artifact deployment.", "type": "object", - "properties": { - "deploymentStatus": { - "description": "The deployment status of the artifact.", - "type": "string" - }, - "artifactsApplied": { - "format": "int32", - "description": "The total count of the artifacts that were successfully applied.", - "type": "integer" - }, - "totalArtifacts": { - "format": "int32", - "description": "The total count of the artifacts that were tentatively applied.", - "type": "integer" - } - } + "properties": {} }, "ArtifactInstallProperties": { "description": "Properties of an artifact.", @@ -8122,40 +8615,7 @@ "ArtifactInstallPropertiesFragment": { "description": "Properties of an artifact.", "type": "object", - "properties": { - "artifactId": { - "description": "The artifact's identifier.", - "type": "string" - }, - "artifactTitle": { - "description": "The artifact's title.", - "type": "string" - }, - "parameters": { - "description": "The parameters of the artifact.", - "type": "array", - "items": { - "$ref": "#/definitions/ArtifactParameterPropertiesFragment" - } - }, - "status": { - "description": "The status of the artifact.", - "type": "string" - }, - "deploymentStatusMessage": { - "description": "The status message from the deployment.", - "type": "string" - }, - "vmExtensionStatusMessage": { - "description": "The status message from the virtual machine extension.", - "type": "string" - }, - "installTime": { - "format": "date-time", - "description": "The time that the artifact starts to install on the virtual machine.", - "type": "string" - } - } + "properties": {} }, "ArtifactList": { "description": "The response of a list operation.", @@ -8191,16 +8651,7 @@ "ArtifactParameterPropertiesFragment": { "description": "Properties of an artifact parameter.", "type": "object", - "properties": { - "name": { - "description": "The name of the artifact parameter.", - "type": "string" - }, - "value": { - "description": "The value of the artifact parameter.", - "type": "string" - } - } + "properties": {} }, "ArtifactProperties": { "description": "Properties of an artifact.", @@ -8276,13 +8727,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/ArtifactSourcePropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "ArtifactSourceList": { "description": "The response of a list operation.", @@ -8317,7 +8762,8 @@ "description": "The artifact source's type.", "enum": [ "VsoGit", - "GitHub" + "GitHub", + "StorageAccount" ], "type": "string", "x-ms-enum": { @@ -8374,56 +8820,7 @@ "ArtifactSourcePropertiesFragment": { "description": "Properties of an artifact source.", "type": "object", - "properties": { - "displayName": { - "description": "The artifact source's display name.", - "type": "string" - }, - "uri": { - "description": "The artifact source's URI.", - "type": "string" - }, - "sourceType": { - "description": "The artifact source's type.", - "enum": [ - "VsoGit", - "GitHub" - ], - "type": "string", - "x-ms-enum": { - "name": "SourceControlType", - "modelAsString": true - } - }, - "folderPath": { - "description": "The folder containing artifacts.", - "type": "string" - }, - "armTemplateFolderPath": { - "description": "The folder containing Azure Resource Manager templates.", - "type": "string" - }, - "branchRef": { - "description": "The artifact source's branch reference.", - "type": "string" - }, - "securityToken": { - "description": "The security token to authenticate to the artifact source.", - "type": "string" - }, - "status": { - "description": "Indicates if the artifact source is enabled (values: Enabled, Disabled).", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } - } - } + "properties": {} }, "AttachDiskProperties": { "description": "Properties of the disk to attach.", @@ -8441,7 +8838,7 @@ "properties": { "diskSizeGiB": { "format": "int32", - "description": "Size of the disk to be attached in GibiBytes.", + "description": "Size of the disk to be attached in Gibibytes.", "type": "integer" }, "diskName": { @@ -8466,30 +8863,7 @@ "AttachNewDataDiskOptionsFragment": { "description": "Properties to attach new disk to the Virtual Machine.", "type": "object", - "properties": { - "diskSizeGiB": { - "format": "int32", - "description": "Size of the disk to be attached in GibiBytes.", - "type": "integer" - }, - "diskName": { - "description": "The name of the disk to be attached.", - "type": "string" - }, - "diskType": { - "description": "The storage type for the disk (i.e. Standard, Premium).", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } - } - } + "properties": {} }, "BulkCreationParameters": { "description": "Parameters for creating multiple virtual machines as a single action.", @@ -8505,13 +8879,7 @@ "BulkCreationParametersFragment": { "description": "Parameters for creating multiple virtual machines as a single action.", "type": "object", - "properties": { - "instanceCount": { - "format": "int32", - "description": "The number of virtual machine instances to create.", - "type": "integer" - } - } + "properties": {} }, "CloudError": { "description": "Error from a REST request.", @@ -8576,40 +8944,22 @@ "ComputeDataDiskFragment": { "description": "A data disks attached to a virtual machine.", "type": "object", + "properties": {} + }, + "ComputeVmInstanceViewStatus": { + "description": "Status information about a virtual machine.", + "type": "object", "properties": { - "name": { - "description": "Gets data disk name.", + "code": { + "description": "Gets the status Code.", "type": "string" }, - "diskUri": { - "description": "When backed by a blob, the URI of underlying blob.", + "displayStatus": { + "description": "Gets the short localizable label for the status.", "type": "string" }, - "managedDiskId": { - "description": "When backed by managed disk, this is the ID of the compute disk resource.", - "type": "string" - }, - "diskSizeGiB": { - "format": "int32", - "description": "Gets data disk size in GiB.", - "type": "integer" - } - } - }, - "ComputeVmInstanceViewStatus": { - "description": "Status information about a virtual machine.", - "type": "object", - "properties": { - "code": { - "description": "Gets the status Code.", - "type": "string" - }, - "displayStatus": { - "description": "Gets the short localizable label for the status.", - "type": "string" - }, - "message": { - "description": "Gets the message associated with the status.", + "message": { + "description": "Gets the message associated with the status.", "type": "string" } } @@ -8617,20 +8967,7 @@ "ComputeVmInstanceViewStatusFragment": { "description": "Status information about a virtual machine.", "type": "object", - "properties": { - "code": { - "description": "Gets the status Code.", - "type": "string" - }, - "displayStatus": { - "description": "Gets the short localizable label for the status.", - "type": "string" - }, - "message": { - "description": "Gets the message associated with the status.", - "type": "string" - } - } + "properties": {} }, "ComputeVmProperties": { "description": "Properties of a virtual machine returned by the Microsoft.Compute API.", @@ -8678,45 +9015,7 @@ "ComputeVmPropertiesFragment": { "description": "Properties of a virtual machine returned by the Microsoft.Compute API.", "type": "object", - "properties": { - "statuses": { - "description": "Gets the statuses of the virtual machine.", - "type": "array", - "items": { - "$ref": "#/definitions/ComputeVmInstanceViewStatusFragment" - } - }, - "osType": { - "description": "Gets the OS type of the virtual machine.", - "type": "string" - }, - "vmSize": { - "description": "Gets the size of the virtual machine.", - "type": "string" - }, - "networkInterfaceId": { - "description": "Gets the network interface ID of the virtual machine.", - "type": "string" - }, - "osDiskId": { - "description": "Gets OS disk blob uri for the virtual machine.", - "type": "string" - }, - "dataDiskIds": { - "description": "Gets data disks blob uri for the virtual machine.", - "type": "array", - "items": { - "type": "string" - } - }, - "dataDisks": { - "description": "Gets all data disks attached to the virtual machine.", - "type": "array", - "items": { - "$ref": "#/definitions/ComputeDataDiskFragment" - } - } - } + "properties": {} }, "CostThresholdProperties": { "description": "Properties of a cost threshold item.", @@ -8787,13 +9086,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/CustomImagePropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "CustomImageList": { "description": "The response of a list operation.", @@ -8906,74 +9199,12 @@ "CustomImagePropertiesCustomFragment": { "description": "Properties for creating a custom image from a VHD.", "type": "object", - "properties": { - "imageName": { - "description": "The image name.", - "type": "string" - }, - "sysPrep": { - "description": "Indicates whether sysprep has been run on the VHD.", - "type": "boolean" - }, - "osType": { - "description": "The OS type of the custom image (i.e. Windows, Linux)", - "enum": [ - "Windows", - "Linux", - "None" - ], - "type": "string", - "x-ms-enum": { - "name": "CustomImageOsType", - "modelAsString": true - } - } - } + "properties": {} }, "CustomImagePropertiesFragment": { "description": "Properties of a custom image.", "type": "object", - "properties": { - "vm": { - "$ref": "#/definitions/CustomImagePropertiesFromVmFragment", - "description": "The virtual machine from which the image is to be created." - }, - "vhd": { - "$ref": "#/definitions/CustomImagePropertiesCustomFragment", - "description": "The VHD from which the image is to be created." - }, - "description": { - "description": "The description of the custom image.", - "type": "string" - }, - "author": { - "description": "The author of the custom image.", - "type": "string" - }, - "managedImageId": { - "description": "The Managed Image Id backing the custom image.", - "type": "string" - }, - "managedSnapshotId": { - "description": "The Managed Snapshot Id backing the custom image.", - "type": "string" - }, - "dataDiskStorageInfo": { - "description": "Storage information about the data disks present in the custom image", - "type": "array", - "items": { - "$ref": "#/definitions/DataDiskStorageTypeInfoFragment" - } - }, - "customImagePlan": { - "$ref": "#/definitions/CustomImagePropertiesFromPlanFragment", - "description": "Storage information about the plan related to this custom image" - }, - "isPlanAuthorized": { - "description": "Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment", - "type": "boolean" - } - } + "properties": {} }, "CustomImagePropertiesFromPlan": { "description": "Properties for plan on a custom image.", @@ -8996,20 +9227,7 @@ "CustomImagePropertiesFromPlanFragment": { "description": "Properties for plan on a custom image.", "type": "object", - "properties": { - "id": { - "description": "The id of the plan, equivalent to name of the plan", - "type": "string" - }, - "publisher": { - "description": "The publisher for the plan from the marketplace image the custom image is derived from", - "type": "string" - }, - "offer": { - "description": "The offer for the plan from the marketplace image the custom image is derived from", - "type": "string" - } - } + "properties": {} }, "CustomImagePropertiesFromVm": { "description": "Properties for creating a custom image from a virtual machine.", @@ -9032,20 +9250,7 @@ "CustomImagePropertiesFromVmFragment": { "description": "Properties for creating a custom image from a virtual machine.", "type": "object", - "properties": { - "sourceVmId": { - "description": "The source vm identifier.", - "type": "string" - }, - "windowsOsInfo": { - "$ref": "#/definitions/WindowsOsInfoFragment", - "description": "The Windows OS information of the VM." - }, - "linuxOsInfo": { - "$ref": "#/definitions/LinuxOsInfoFragment", - "description": "The Linux OS information of the VM." - } - } + "properties": {} }, "DataDiskProperties": { "description": "Request body for adding a new or existing data disk to a virtual machine.", @@ -9077,29 +9282,7 @@ "DataDiskPropertiesFragment": { "description": "Request body for adding a new or existing data disk to a virtual machine.", "type": "object", - "properties": { - "attachNewDataDiskOptions": { - "$ref": "#/definitions/AttachNewDataDiskOptionsFragment", - "description": "Specifies options to attach a new disk to the virtual machine." - }, - "existingLabDiskId": { - "description": "Specifies the existing lab disk id to attach to virtual machine.", - "type": "string" - }, - "hostCaching": { - "description": "Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).", - "enum": [ - "None", - "ReadOnly", - "ReadWrite" - ], - "type": "string", - "x-ms-enum": { - "name": "HostCachingOptions", - "modelAsString": true - } - } - } + "properties": {} }, "DataDiskStorageTypeInfo": { "description": "Storage information about the data disks present in the custom image", @@ -9127,25 +9310,7 @@ "DataDiskStorageTypeInfoFragment": { "description": "Storage information about the data disks present in the custom image", "type": "object", - "properties": { - "lun": { - "description": "Disk Lun", - "type": "string" - }, - "storageType": { - "description": "Disk Storage Type", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } - } - } + "properties": {} }, "DayDetails": { "description": "Properties of a daily schedule.", @@ -9160,12 +9325,7 @@ "DayDetailsFragment": { "description": "Properties of a daily schedule.", "type": "object", - "properties": { - "time": { - "description": "The time of day the schedule will occur.", - "type": "string" - } - } + "properties": {} }, "DetachDataDiskProperties": { "description": "Request body for detaching data disk from a virtual machine.", @@ -9214,13 +9374,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/DiskPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "DiskList": { "description": "The response of a list operation.", @@ -9258,7 +9412,7 @@ }, "diskSizeGiB": { "format": "int32", - "description": "The size of the disk in GibiBytes.", + "description": "The size of the disk in Gibibytes.", "type": "integer" }, "leasedByLabVmId": { @@ -9273,6 +9427,10 @@ "description": "When backed by a blob, the URI of underlying blob.", "type": "string" }, + "storageAccountId": { + "description": "When backed by a blob, the storage account where the blob is.", + "type": "string" + }, "createdDate": { "format": "date-time", "description": "The creation date of the disk.", @@ -9302,58 +9460,19 @@ "DiskPropertiesFragment": { "description": "Properties of a disk.", "type": "object", - "properties": { - "diskType": { - "description": "The storage type for the disk (i.e. Standard, Premium).", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } - }, - "diskSizeGiB": { - "format": "int32", - "description": "The size of the disk in GibiBytes.", - "type": "integer" - }, - "leasedByLabVmId": { - "description": "The resource ID of the VM to which this disk is leased.", - "type": "string" - }, - "diskBlobName": { - "description": "When backed by a blob, the name of the VHD blob without extension.", - "type": "string" - }, - "diskUri": { - "description": "When backed by a blob, the URI of underlying blob.", - "type": "string" - }, - "hostCaching": { - "description": "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).", - "type": "string" - }, - "managedDiskId": { - "description": "When backed by managed disk, this is the ID of the compute disk resource.", - "type": "string" - } - } - }, - "DtlEnvironment": { - "description": "An environment, which is essentially an ARM template deployment.", - "required": [ - "properties" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], + "properties": {} + }, + "DtlEnvironment": { + "description": "An environment, which is essentially an ARM template deployment.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], "properties": { "properties": { "$ref": "#/definitions/EnvironmentProperties", @@ -9370,13 +9489,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/EnvironmentPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "DtlEnvironmentList": { "description": "The response of a list operation.", @@ -9415,19 +9528,7 @@ "EnvironmentDeploymentPropertiesFragment": { "description": "Properties of an environment deployment.", "type": "object", - "properties": { - "armTemplateId": { - "description": "The Azure Resource Manager template's identifier.", - "type": "string" - }, - "parameters": { - "description": "The parameters of the Azure Resource Manager template.", - "type": "array", - "items": { - "$ref": "#/definitions/ArmTemplateParameterPropertiesFragment" - } - } - } + "properties": {} }, "EnvironmentProperties": { "description": "Properties of an environment.", @@ -9466,16 +9567,7 @@ "EnvironmentPropertiesFragment": { "description": "Properties of an environment.", "type": "object", - "properties": { - "deploymentProperties": { - "$ref": "#/definitions/EnvironmentDeploymentPropertiesFragment", - "description": "The deployment properties of the environment." - }, - "armTemplateDisplayName": { - "description": "The display name of the Azure Resource Manager template that produced the environment.", - "type": "string" - } - } + "properties": {} }, "EvaluatePoliciesProperties": { "description": "Properties for evaluating a policy set.", @@ -9546,20 +9638,7 @@ "EventFragment": { "description": "An event to be notified for.", "type": "object", - "properties": { - "eventName": { - "description": "The event type for which this notification is enabled (i.e. AutoShutdown, Cost)", - "enum": [ - "AutoShutdown", - "Cost" - ], - "type": "string", - "x-ms-enum": { - "name": "NotificationChannelEventType", - "modelAsString": true - } - } - } + "properties": {} }, "ExportResourceUsageParameters": { "description": "The parameters of the export operation.", @@ -9593,16 +9672,7 @@ "ExternalSubnetFragment": { "description": "Subnet information as returned by the Microsoft.Network API.", "type": "object", - "properties": { - "id": { - "description": "Gets or sets the identifier.", - "type": "string" - }, - "name": { - "description": "Gets or sets the name.", - "type": "string" - } - } + "properties": {} }, "Formula": { "description": "A formula for creating a VM, specifying an image base and other parameters", @@ -9631,13 +9701,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/FormulaPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "FormulaList": { "description": "The response of a list operation.", @@ -9666,7 +9730,8 @@ }, "author": { "description": "The author of the formula.", - "type": "string" + "type": "string", + "readOnly": true }, "osType": { "description": "The OS type of the formula.", @@ -9701,28 +9766,7 @@ "FormulaPropertiesFragment": { "description": "Properties of a formula.", "type": "object", - "properties": { - "description": { - "description": "The description of the formula.", - "type": "string" - }, - "author": { - "description": "The author of the formula.", - "type": "string" - }, - "osType": { - "description": "The OS type of the formula.", - "type": "string" - }, - "formulaContent": { - "$ref": "#/definitions/LabVirtualMachineCreationParameterFragment", - "description": "The content of the formula." - }, - "vm": { - "$ref": "#/definitions/FormulaPropertiesFromVmFragment", - "description": "Information about a VM from which a formula is to be created." - } - } + "properties": {} }, "FormulaPropertiesFromVm": { "description": "Information about a VM from which a formula is to be created.", @@ -9737,12 +9781,7 @@ "FormulaPropertiesFromVmFragment": { "description": "Information about a VM from which a formula is to be created.", "type": "object", - "properties": { - "labVmId": { - "description": "The identifier of the VM from which a formula is to be created.", - "type": "string" - } - } + "properties": {} }, "GalleryImage": { "description": "A gallery image.", @@ -9849,28 +9888,7 @@ "GalleryImageReferenceFragment": { "description": "The reference information for an Azure Marketplace image.", "type": "object", - "properties": { - "offer": { - "description": "The offer of the gallery image.", - "type": "string" - }, - "publisher": { - "description": "The publisher of the gallery image.", - "type": "string" - }, - "sku": { - "description": "The SKU of the gallery image.", - "type": "string" - }, - "osType": { - "description": "The OS type of the gallery image.", - "type": "string" - }, - "version": { - "description": "The version of the gallery image.", - "type": "string" - } - } + "properties": {} }, "GenerateArmTemplateRequest": { "description": "Parameters for generating an ARM template for deploying artifacts.", @@ -9939,13 +9957,7 @@ "HourDetailsFragment": { "description": "Properties of an hourly schedule.", "type": "object", - "properties": { - "minute": { - "format": "int32", - "description": "Minutes of the hour the schedule will run.", - "type": "integer" - } - } + "properties": {} }, "IdentityProperties": { "description": "Properties of a managed identity", @@ -9953,7 +9965,17 @@ "properties": { "type": { "description": "Managed identity.", - "type": "string" + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedIdentityType", + "modelAsString": true + } }, "principalId": { "description": "The principal id of resource identity.", @@ -10014,30 +10036,7 @@ "InboundNatRuleFragment": { "description": "A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.", "type": "object", - "properties": { - "transportProtocol": { - "description": "The transport protocol for the endpoint.", - "enum": [ - "Tcp", - "Udp" - ], - "type": "string", - "x-ms-enum": { - "name": "TransportProtocol", - "modelAsString": true - } - }, - "frontendPort": { - "format": "int32", - "description": "The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.", - "type": "integer" - }, - "backendPort": { - "format": "int32", - "description": "The port to which the external traffic will be redirected.", - "type": "integer" - } - } + "properties": {} }, "Lab": { "description": "A lab.", @@ -10103,37 +10102,7 @@ "LabAnnouncementPropertiesFragment": { "description": "Properties of a lab's announcement banner", "type": "object", - "properties": { - "title": { - "description": "The plain text title for the lab announcement", - "type": "string" - }, - "markdown": { - "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.", - "type": "string" - }, - "enabled": { - "description": "Is the lab announcement active/enabled at this time?", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } - }, - "expirationDate": { - "format": "date-time", - "description": "The time at which the announcement expires (null for never)", - "type": "string" - }, - "expired": { - "description": "Has this announcement expired?", - "type": "boolean" - } - } + "properties": {} }, "LabCost": { "description": "A cost item.", @@ -10262,13 +10231,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/LabPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "LabList": { "description": "The response of a list operation.", @@ -10423,91 +10386,24 @@ "LabPropertiesFragment": { "description": "Properties of a lab.", "type": "object", + "properties": {} + }, + "LabResourceCostProperties": { + "description": "The properties of a resource cost item.", + "type": "object", "properties": { - "labStorageType": { - "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } + "resourcename": { + "description": "The name of the resource.", + "type": "string" }, - "mandatoryArtifactsResourceIdsLinux": { - "description": "The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.", - "type": "array", - "items": { - "type": "string" - } + "resourceUId": { + "description": "The unique identifier of the resource.", + "type": "string" }, - "mandatoryArtifactsResourceIdsWindows": { - "description": "The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.", - "type": "array", - "items": { - "type": "string" - } - }, - "premiumDataDisks": { - "description": "The setting to enable usage of premium data disks.\r\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\r\nWhen its value is 'Disabled', only creation of standard data disks is allowed.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "PremiumDataDisk", - "modelAsString": true - } - }, - "environmentPermission": { - "description": "The access rights to be granted to the user when provisioning an environment", - "enum": [ - "Reader", - "Contributor" - ], - "type": "string", - "x-ms-enum": { - "name": "EnvironmentPermission", - "modelAsString": true - } - }, - "announcement": { - "$ref": "#/definitions/LabAnnouncementPropertiesFragment", - "description": "The properties of any lab announcement associated with this lab" - }, - "support": { - "$ref": "#/definitions/LabSupportPropertiesFragment", - "description": "The properties of any lab support message associated with this lab" - }, - "extendedProperties": { - "description": "Extended properties of the lab used for experimental features", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "LabResourceCostProperties": { - "description": "The properties of a resource cost item.", - "type": "object", - "properties": { - "resourcename": { - "description": "The name of the resource.", - "type": "string" - }, - "resourceUId": { - "description": "The unique identifier of the resource.", - "type": "string" - }, - "resourceCost": { - "format": "double", - "description": "The cost component of the resource cost item.", - "type": "number" + "resourceCost": { + "format": "double", + "description": "The cost component of the resource cost item.", + "type": "number" }, "resourceType": { "description": "The logical resource type (ex. virtualmachine, storageaccount)", @@ -10560,24 +10456,7 @@ "LabSupportPropertiesFragment": { "description": "Properties of a lab's support banner", "type": "object", - "properties": { - "enabled": { - "description": "Is the lab support banner active/enabled at this time?", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } - }, - "markdown": { - "description": "The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.", - "type": "string" - } - } + "properties": {} }, "LabVhd": { "description": "Properties of a VHD in the lab.", @@ -10654,28 +10533,7 @@ "LabVirtualMachineCreationParameterFragment": { "description": "Properties for creating a virtual machine.", "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/LabVirtualMachineCreationParameterPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - }, - "name": { - "description": "The name of the virtual machine or environment", - "type": "string" - }, - "location": { - "description": "The location of the new virtual machine or environment", - "type": "string" - }, - "tags": { - "description": "The tags of the resource.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } + "properties": {} }, "LabVirtualMachineCreationParameterProperties": { "description": "Properties for virtual machine creation.", @@ -10691,37 +10549,22 @@ }, "ownerObjectId": { "description": "The object identifier of the owner of the virtual machine.", + "default": "dynamicValue", "type": "string" }, "ownerUserPrincipalName": { "description": "The user principal name of the virtual machine owner.", "type": "string" }, - "createdByUserId": { - "description": "The object identifier of the creator of the virtual machine.", - "type": "string" - }, - "createdByUser": { - "description": "The email address of creator of the virtual machine.", - "type": "string" - }, "createdDate": { "format": "date-time", "description": "The creation date of the virtual machine.", "type": "string" }, - "computeId": { - "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", - "type": "string" - }, "customImageId": { "description": "The custom image identifier of the virtual machine.", "type": "string" }, - "osType": { - "description": "The OS type of the virtual machine.", - "type": "string" - }, "size": { "description": "The size of the virtual machine.", "type": "string" @@ -10742,10 +10585,6 @@ "description": "Indicates whether this virtual machine uses an SSH key for authentication.", "type": "boolean" }, - "fqdn": { - "description": "The fully-qualified domain name of the virtual machine.", - "type": "string" - }, "labSubnetName": { "description": "The lab subnet name of the virtual machine.", "type": "string" @@ -10756,6 +10595,7 @@ }, "disallowPublicIpAddress": { "description": "Indicates whether the virtual machine is to be created without a public IP address.", + "default": false, "type": "boolean" }, "artifacts": { @@ -10765,10 +10605,6 @@ "$ref": "#/definitions/ArtifactInstallProperties" } }, - "artifactDeploymentStatus": { - "$ref": "#/definitions/ArtifactDeploymentStatusProperties", - "description": "The artifact deployment status for the virtual machine." - }, "galleryImageReference": { "$ref": "#/definitions/GalleryImageReference", "description": "The Microsoft Azure Marketplace image reference of the virtual machine." @@ -10788,25 +10624,13 @@ }, "allowClaim": { "description": "Indicates whether another user can take ownership of the virtual machine", + "default": false, "type": "boolean" }, "storageType": { "description": "Storage type to use for virtual machine (i.e. Standard, Premium).", "type": "string" }, - "virtualMachineCreationSource": { - "description": "Tells source of creation of lab virtual machine. Output property only.", - "enum": [ - "FromCustomImage", - "FromGalleryImage", - "FromSharedGalleryImage" - ], - "type": "string", - "x-ms-enum": { - "name": "VirtualMachineCreationSource", - "modelAsString": true - } - }, "environmentId": { "description": "The resource ID of the environment that contains this virtual machine, if any.", "type": "string" @@ -10824,27 +10648,52 @@ "items": { "$ref": "#/definitions/ScheduleCreationParameter" } - }, - "lastKnownPowerState": { - "description": "Last known compute power state captured in DTL", - "type": "string" } } }, "LabVirtualMachineCreationParameterPropertiesFragment": { "description": "Properties for virtual machine creation.", "type": "object", + "properties": {} + }, + "LabVirtualMachineFragment": { + "description": "A virtual machine.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "properties": {} + }, + "LabVirtualMachineList": { + "description": "The response of a list operation.", + "type": "object", "properties": { - "bulkCreationParameters": { - "$ref": "#/definitions/BulkCreationParametersFragment", - "description": "The number of virtual machine instances to create." + "value": { + "description": "Results of the list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/LabVirtualMachine" + } }, + "nextLink": { + "description": "Link for next set of results.", + "type": "string" + } + } + }, + "LabVirtualMachineProperties": { + "description": "Properties of a virtual machine.", + "type": "object", + "properties": { "notes": { "description": "The notes of the virtual machine.", "type": "string" }, "ownerObjectId": { "description": "The object identifier of the owner of the virtual machine.", + "default": "dynamicValue", "type": "string" }, "ownerUserPrincipalName": { @@ -10853,11 +10702,13 @@ }, "createdByUserId": { "description": "The object identifier of the creator of the virtual machine.", - "type": "string" + "type": "string", + "readOnly": true }, "createdByUser": { "description": "The email address of creator of the virtual machine.", - "type": "string" + "type": "string", + "readOnly": true }, "createdDate": { "format": "date-time", @@ -10866,7 +10717,8 @@ }, "computeId": { "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", - "type": "string" + "type": "string", + "readOnly": true }, "customImageId": { "description": "The custom image identifier of the virtual machine.", @@ -10874,7 +10726,8 @@ }, "osType": { "description": "The OS type of the virtual machine.", - "type": "string" + "type": "string", + "readOnly": true }, "size": { "description": "The size of the virtual machine.", @@ -10898,7 +10751,8 @@ }, "fqdn": { "description": "The fully-qualified domain name of the virtual machine.", - "type": "string" + "type": "string", + "readOnly": true }, "labSubnetName": { "description": "The lab subnet name of the virtual machine.", @@ -10910,31 +10764,43 @@ }, "disallowPublicIpAddress": { "description": "Indicates whether the virtual machine is to be created without a public IP address.", + "default": false, "type": "boolean" }, "artifacts": { "description": "The artifacts to be installed on the virtual machine.", "type": "array", "items": { - "$ref": "#/definitions/ArtifactInstallPropertiesFragment" + "$ref": "#/definitions/ArtifactInstallProperties" } }, "artifactDeploymentStatus": { - "$ref": "#/definitions/ArtifactDeploymentStatusPropertiesFragment", - "description": "The artifact deployment status for the virtual machine." + "$ref": "#/definitions/ArtifactDeploymentStatusProperties", + "description": "The artifact deployment status for the virtual machine.", + "readOnly": true }, "galleryImageReference": { - "$ref": "#/definitions/GalleryImageReferenceFragment", + "$ref": "#/definitions/GalleryImageReference", "description": "The Microsoft Azure Marketplace image reference of the virtual machine." }, "planId": { "description": "The id of the plan associated with the virtual machine image", "type": "string" }, + "computeVm": { + "$ref": "#/definitions/ComputeVmProperties", + "description": "The compute virtual machine properties.", + "readOnly": true + }, "networkInterface": { - "$ref": "#/definitions/NetworkInterfacePropertiesFragment", + "$ref": "#/definitions/NetworkInterfaceProperties", "description": "The network interface properties." }, + "applicableSchedule": { + "$ref": "#/definitions/ApplicableSchedule", + "description": "The applicable schedule for the virtual machine.", + "readOnly": true + }, "expirationDate": { "format": "date-time", "description": "The expiration date for VM.", @@ -10942,6 +10808,7 @@ }, "allowClaim": { "description": "Indicates whether another user can take ownership of the virtual machine", + "default": false, "type": "boolean" }, "storageType": { @@ -10956,6 +10823,7 @@ "FromSharedGalleryImage" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "VirtualMachineCreationSource", "modelAsString": true @@ -10969,419 +10837,68 @@ "description": "New or existing data disks to attach to the virtual machine after creation", "type": "array", "items": { - "$ref": "#/definitions/DataDiskPropertiesFragment" + "$ref": "#/definitions/DataDiskProperties" } }, "scheduleParameters": { "description": "Virtual Machine schedules to be created", "type": "array", "items": { - "$ref": "#/definitions/ScheduleCreationParameterFragment" + "$ref": "#/definitions/ScheduleCreationParameter" } }, "lastKnownPowerState": { "description": "Last known compute power state captured in DTL", - "type": "string" + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true } } }, - "LabVirtualMachineFragment": { - "description": "A virtual machine.", + "LabVirtualMachinePropertiesFragment": { + "description": "Properties of a virtual machine.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/UpdateResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/LabVirtualMachinePropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, - "LabVirtualMachineList": { - "description": "The response of a list operation.", + "LinuxOsInfo": { + "description": "Information about a Linux OS.", "type": "object", "properties": { - "value": { - "description": "Results of the list operation.", - "type": "array", - "items": { - "$ref": "#/definitions/LabVirtualMachine" + "linuxOsState": { + "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).", + "enum": [ + "NonDeprovisioned", + "DeprovisionRequested", + "DeprovisionApplied" + ], + "type": "string", + "x-ms-enum": { + "name": "LinuxOsState", + "modelAsString": true } - }, - "nextLink": { - "description": "Link for next set of results.", - "type": "string" } } }, - "LabVirtualMachineProperties": { - "description": "Properties of a virtual machine.", + "LinuxOsInfoFragment": { + "description": "Information about a Linux OS.", + "type": "object", + "properties": {} + }, + "NetworkInterfaceProperties": { + "description": "Properties of a network interface.", "type": "object", "properties": { - "notes": { - "description": "The notes of the virtual machine.", - "type": "string" - }, - "ownerObjectId": { - "description": "The object identifier of the owner of the virtual machine.", - "type": "string" - }, - "ownerUserPrincipalName": { - "description": "The user principal name of the virtual machine owner.", - "type": "string" - }, - "createdByUserId": { - "description": "The object identifier of the creator of the virtual machine.", - "type": "string" - }, - "createdByUser": { - "description": "The email address of creator of the virtual machine.", - "type": "string" - }, - "createdDate": { - "format": "date-time", - "description": "The creation date of the virtual machine.", - "type": "string" - }, - "computeId": { - "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", - "type": "string" - }, - "customImageId": { - "description": "The custom image identifier of the virtual machine.", - "type": "string" - }, - "osType": { - "description": "The OS type of the virtual machine.", - "type": "string" - }, - "size": { - "description": "The size of the virtual machine.", - "type": "string" - }, - "userName": { - "description": "The user name of the virtual machine.", - "type": "string" - }, - "password": { - "description": "The password of the virtual machine administrator.", - "type": "string" - }, - "sshKey": { - "description": "The SSH key of the virtual machine administrator.", - "type": "string" - }, - "isAuthenticationWithSshKey": { - "description": "Indicates whether this virtual machine uses an SSH key for authentication.", - "type": "boolean" - }, - "fqdn": { - "description": "The fully-qualified domain name of the virtual machine.", - "type": "string" - }, - "labSubnetName": { - "description": "The lab subnet name of the virtual machine.", - "type": "string" - }, - "labVirtualNetworkId": { - "description": "The lab virtual network identifier of the virtual machine.", - "type": "string" - }, - "disallowPublicIpAddress": { - "description": "Indicates whether the virtual machine is to be created without a public IP address.", - "type": "boolean" - }, - "artifacts": { - "description": "The artifacts to be installed on the virtual machine.", - "type": "array", - "items": { - "$ref": "#/definitions/ArtifactInstallProperties" - } - }, - "artifactDeploymentStatus": { - "$ref": "#/definitions/ArtifactDeploymentStatusProperties", - "description": "The artifact deployment status for the virtual machine." - }, - "galleryImageReference": { - "$ref": "#/definitions/GalleryImageReference", - "description": "The Microsoft Azure Marketplace image reference of the virtual machine." - }, - "planId": { - "description": "The id of the plan associated with the virtual machine image", - "type": "string" - }, - "computeVm": { - "$ref": "#/definitions/ComputeVmProperties", - "description": "The compute virtual machine properties.", - "readOnly": true - }, - "networkInterface": { - "$ref": "#/definitions/NetworkInterfaceProperties", - "description": "The network interface properties." - }, - "applicableSchedule": { - "$ref": "#/definitions/ApplicableSchedule", - "description": "The applicable schedule for the virtual machine.", - "readOnly": true - }, - "expirationDate": { - "format": "date-time", - "description": "The expiration date for VM.", - "type": "string" - }, - "allowClaim": { - "description": "Indicates whether another user can take ownership of the virtual machine", - "type": "boolean" - }, - "storageType": { - "description": "Storage type to use for virtual machine (i.e. Standard, Premium).", - "type": "string" - }, - "virtualMachineCreationSource": { - "description": "Tells source of creation of lab virtual machine. Output property only.", - "enum": [ - "FromCustomImage", - "FromGalleryImage", - "FromSharedGalleryImage" - ], - "type": "string", - "x-ms-enum": { - "name": "VirtualMachineCreationSource", - "modelAsString": true - } - }, - "environmentId": { - "description": "The resource ID of the environment that contains this virtual machine, if any.", - "type": "string" - }, - "dataDiskParameters": { - "description": "New or existing data disks to attach to the virtual machine after creation", - "type": "array", - "items": { - "$ref": "#/definitions/DataDiskProperties" - } - }, - "scheduleParameters": { - "description": "Virtual Machine schedules to be created", - "type": "array", - "items": { - "$ref": "#/definitions/ScheduleCreationParameter" - } - }, - "lastKnownPowerState": { - "description": "Last known compute power state captured in DTL", - "type": "string" - }, - "provisioningState": { - "description": "The provisioning status of the resource.", - "type": "string", - "readOnly": true - }, - "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", - "type": "string", - "readOnly": true - } - } - }, - "LabVirtualMachinePropertiesFragment": { - "description": "Properties of a virtual machine.", - "type": "object", - "properties": { - "notes": { - "description": "The notes of the virtual machine.", - "type": "string" - }, - "ownerObjectId": { - "description": "The object identifier of the owner of the virtual machine.", - "type": "string" - }, - "ownerUserPrincipalName": { - "description": "The user principal name of the virtual machine owner.", - "type": "string" - }, - "createdByUserId": { - "description": "The object identifier of the creator of the virtual machine.", - "type": "string" - }, - "createdByUser": { - "description": "The email address of creator of the virtual machine.", - "type": "string" - }, - "createdDate": { - "format": "date-time", - "description": "The creation date of the virtual machine.", - "type": "string" - }, - "computeId": { - "description": "The resource identifier (Microsoft.Compute) of the virtual machine.", - "type": "string" - }, - "customImageId": { - "description": "The custom image identifier of the virtual machine.", - "type": "string" - }, - "osType": { - "description": "The OS type of the virtual machine.", - "type": "string" - }, - "size": { - "description": "The size of the virtual machine.", - "type": "string" - }, - "userName": { - "description": "The user name of the virtual machine.", - "type": "string" - }, - "password": { - "description": "The password of the virtual machine administrator.", - "type": "string" - }, - "sshKey": { - "description": "The SSH key of the virtual machine administrator.", - "type": "string" - }, - "isAuthenticationWithSshKey": { - "description": "Indicates whether this virtual machine uses an SSH key for authentication.", - "type": "boolean" - }, - "fqdn": { - "description": "The fully-qualified domain name of the virtual machine.", - "type": "string" - }, - "labSubnetName": { - "description": "The lab subnet name of the virtual machine.", - "type": "string" - }, - "labVirtualNetworkId": { - "description": "The lab virtual network identifier of the virtual machine.", - "type": "string" - }, - "disallowPublicIpAddress": { - "description": "Indicates whether the virtual machine is to be created without a public IP address.", - "type": "boolean" - }, - "artifacts": { - "description": "The artifacts to be installed on the virtual machine.", - "type": "array", - "items": { - "$ref": "#/definitions/ArtifactInstallPropertiesFragment" - } - }, - "artifactDeploymentStatus": { - "$ref": "#/definitions/ArtifactDeploymentStatusPropertiesFragment", - "description": "The artifact deployment status for the virtual machine." - }, - "galleryImageReference": { - "$ref": "#/definitions/GalleryImageReferenceFragment", - "description": "The Microsoft Azure Marketplace image reference of the virtual machine." - }, - "planId": { - "description": "The id of the plan associated with the virtual machine image", - "type": "string" - }, - "networkInterface": { - "$ref": "#/definitions/NetworkInterfacePropertiesFragment", - "description": "The network interface properties." - }, - "expirationDate": { - "format": "date-time", - "description": "The expiration date for VM.", - "type": "string" - }, - "allowClaim": { - "description": "Indicates whether another user can take ownership of the virtual machine", - "type": "boolean" - }, - "storageType": { - "description": "Storage type to use for virtual machine (i.e. Standard, Premium).", - "type": "string" - }, - "virtualMachineCreationSource": { - "description": "Tells source of creation of lab virtual machine. Output property only.", - "enum": [ - "FromCustomImage", - "FromGalleryImage", - "FromSharedGalleryImage" - ], - "type": "string", - "x-ms-enum": { - "name": "VirtualMachineCreationSource", - "modelAsString": true - } - }, - "environmentId": { - "description": "The resource ID of the environment that contains this virtual machine, if any.", - "type": "string" - }, - "dataDiskParameters": { - "description": "New or existing data disks to attach to the virtual machine after creation", - "type": "array", - "items": { - "$ref": "#/definitions/DataDiskPropertiesFragment" - } - }, - "scheduleParameters": { - "description": "Virtual Machine schedules to be created", - "type": "array", - "items": { - "$ref": "#/definitions/ScheduleCreationParameterFragment" - } - }, - "lastKnownPowerState": { - "description": "Last known compute power state captured in DTL", - "type": "string" - } - } - }, - "LinuxOsInfo": { - "description": "Information about a Linux OS.", - "type": "object", - "properties": { - "linuxOsState": { - "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).", - "enum": [ - "NonDeprovisioned", - "DeprovisionRequested", - "DeprovisionApplied" - ], - "type": "string", - "x-ms-enum": { - "name": "LinuxOsState", - "modelAsString": true - } - } - } - }, - "LinuxOsInfoFragment": { - "description": "Information about a Linux OS.", - "type": "object", - "properties": { - "linuxOsState": { - "description": "The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).", - "enum": [ - "NonDeprovisioned", - "DeprovisionRequested", - "DeprovisionApplied" - ], - "type": "string", - "x-ms-enum": { - "name": "LinuxOsState", - "modelAsString": true - } - } - } - }, - "NetworkInterfaceProperties": { - "description": "Properties of a network interface.", - "type": "object", - "properties": { - "virtualNetworkId": { - "description": "The resource ID of the virtual network.", + "virtualNetworkId": { + "description": "The resource ID of the virtual network.", "type": "string" }, "subnetId": { @@ -11421,44 +10938,7 @@ "NetworkInterfacePropertiesFragment": { "description": "Properties of a network interface.", "type": "object", - "properties": { - "virtualNetworkId": { - "description": "The resource ID of the virtual network.", - "type": "string" - }, - "subnetId": { - "description": "The resource ID of the sub net.", - "type": "string" - }, - "publicIpAddressId": { - "description": "The resource ID of the public IP address.", - "type": "string" - }, - "publicIpAddress": { - "description": "The public IP address.", - "type": "string" - }, - "privateIpAddress": { - "description": "The private IP address.", - "type": "string" - }, - "dnsName": { - "description": "The DNS name.", - "type": "string" - }, - "rdpAuthority": { - "description": "The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).", - "type": "string" - }, - "sshAuthority": { - "description": "The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.", - "type": "string" - }, - "sharedPublicIpAddressConfiguration": { - "$ref": "#/definitions/SharedPublicIpAddressConfigurationFragment", - "description": "The configuration for sharing a public IP address across multiple virtual machines." - } - } + "properties": {} }, "NotificationChannel": { "description": "A notification.", @@ -11487,13 +10967,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/NotificationChannelPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "NotificationChannelList": { "description": "The response of a list operation.", @@ -11509,107 +10983,16 @@ "nextLink": { "description": "Link for next set of results.", "type": "string" - } - } - }, - "NotificationChannelProperties": { - "description": "Properties of a schedule.", - "type": "object", - "properties": { - "webHookUrl": { - "description": "The webhook URL to send notifications to.", - "type": "string" - }, - "emailRecipient": { - "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", - "type": "string" - }, - "notificationLocale": { - "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", - "type": "string" - }, - "description": { - "description": "Description of notification.", - "type": "string" - }, - "events": { - "description": "The list of event for which this notification is enabled.", - "type": "array", - "items": { - "$ref": "#/definitions/Event" - } - }, - "createdDate": { - "format": "date-time", - "description": "The creation date of the notification channel.", - "type": "string", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning status of the resource.", - "type": "string", - "readOnly": true - }, - "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", - "type": "string", - "readOnly": true - } - } - }, - "NotificationChannelPropertiesFragment": { - "description": "Properties of a schedule.", - "type": "object", - "properties": { - "webHookUrl": { - "description": "The webhook URL to send notifications to.", - "type": "string" - }, - "emailRecipient": { - "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", - "type": "string" - }, - "notificationLocale": { - "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", - "type": "string" - }, - "description": { - "description": "Description of notification.", - "type": "string" - }, - "events": { - "description": "The list of event for which this notification is enabled.", - "type": "array", - "items": { - "$ref": "#/definitions/EventFragment" - } - } - } - }, - "NotificationSettings": { - "description": "Notification settings for a schedule.", - "type": "object", - "properties": { - "status": { - "description": "If notifications are enabled for this schedule (i.e. Enabled, Disabled).", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } - }, - "timeInMinutes": { - "format": "int32", - "description": "Time in minutes before event at which notification will be sent.", - "type": "integer" - }, - "webhookUrl": { - "description": "The webhook URL to which the notification will be sent.", - "type": "string" + } + } + }, + "NotificationChannelProperties": { + "description": "Properties of a schedule.", + "type": "object", + "properties": { + "webHookUrl": { + "description": "The webhook URL to send notifications to.", + "type": "string" }, "emailRecipient": { "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).", @@ -11618,10 +11001,42 @@ "notificationLocale": { "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).", "type": "string" + }, + "description": { + "description": "Description of notification.", + "type": "string" + }, + "events": { + "description": "The list of event for which this notification is enabled.", + "type": "array", + "items": { + "$ref": "#/definitions/Event" + } + }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the notification channel.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true } } }, - "NotificationSettingsFragment": { + "NotificationChannelPropertiesFragment": { + "description": "Properties of a schedule.", + "type": "object", + "properties": {} + }, + "NotificationSettings": { "description": "Notification settings for a schedule.", "type": "object", "properties": { @@ -11656,6 +11071,11 @@ } } }, + "NotificationSettingsFragment": { + "description": "Notification settings for a schedule.", + "type": "object", + "properties": {} + }, "NotifyParameters": { "description": "Properties for generating a Notification.", "type": "object", @@ -11749,13 +11169,18 @@ "ResetContent", "PartialContent", "MultipleChoices", + "Ambiguous", "MovedPermanently", + "Moved", + "Found", "Redirect", "SeeOther", + "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", + "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", @@ -11860,13 +11285,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/PolicyPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "PolicyList": { "description": "The response of a list operation.", @@ -11966,64 +11385,7 @@ "PolicyPropertiesFragment": { "description": "Properties of a Policy.", "type": "object", - "properties": { - "description": { - "description": "The description of the policy.", - "type": "string" - }, - "status": { - "description": "The status of the policy.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyStatus", - "modelAsString": true - } - }, - "factName": { - "description": "The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.", - "enum": [ - "UserOwnedLabVmCount", - "UserOwnedLabPremiumVmCount", - "LabVmCount", - "LabPremiumVmCount", - "LabVmSize", - "GalleryImage", - "UserOwnedLabVmCountInSubnet", - "LabTargetCost", - "EnvironmentTemplate", - "ScheduleEditPermission" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyFactName", - "modelAsString": true - } - }, - "factData": { - "description": "The fact data of the policy.", - "type": "string" - }, - "threshold": { - "description": "The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).", - "type": "string" - }, - "evaluatorType": { - "description": "The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).", - "enum": [ - "AllowedValuesPolicy", - "MaxValuePolicy" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyEvaluatorType", - "modelAsString": true - } - } - } + "properties": {} }, "PolicySetResult": { "description": "Result of a policy set evaluation.", @@ -12082,25 +11444,7 @@ "PortFragment": { "description": "Properties of a network port.", "type": "object", - "properties": { - "transportProtocol": { - "description": "Protocol type of the port.", - "enum": [ - "Tcp", - "Udp" - ], - "type": "string", - "x-ms-enum": { - "name": "TransportProtocol", - "modelAsString": true - } - }, - "backendPort": { - "format": "int32", - "description": "Backend port of the target virtual machine.", - "type": "integer" - } - } + "properties": {} }, "ProviderOperationResult": { "description": "Result of the request to list REST API operations", @@ -12235,28 +11579,7 @@ "ScheduleCreationParameterFragment": { "description": "Properties for creating a schedule.", "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ScheduleCreationParameterPropertiesFragment", - "description": "The properties of the schedule.", - "x-ms-client-flatten": true - }, - "name": { - "description": "The name of the virtual machine or environment", - "type": "string" - }, - "location": { - "description": "The location of the new virtual machine or environment", - "type": "string" - }, - "tags": { - "description": "The tags of the resource.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } + "properties": {} }, "ScheduleCreationParameterProperties": { "description": "Properties for schedule creation.", @@ -12307,48 +11630,7 @@ "ScheduleCreationParameterPropertiesFragment": { "description": "Properties for schedule creation.", "type": "object", - "properties": { - "status": { - "description": "The status of the schedule (i.e. Enabled, Disabled)", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } - }, - "taskType": { - "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).", - "type": "string" - }, - "weeklyRecurrence": { - "$ref": "#/definitions/WeekDetailsFragment", - "description": "If the schedule will occur only some days of the week, specify the weekly recurrence." - }, - "dailyRecurrence": { - "$ref": "#/definitions/DayDetailsFragment", - "description": "If the schedule will occur once each day of the week, specify the daily recurrence." - }, - "hourlyRecurrence": { - "$ref": "#/definitions/HourDetailsFragment", - "description": "If the schedule will occur multiple times a day, specify the hourly recurrence." - }, - "timeZoneId": { - "description": "The time zone ID (e.g. Pacific Standard time).", - "type": "string" - }, - "notificationSettings": { - "$ref": "#/definitions/NotificationSettingsFragment", - "description": "Notification settings." - }, - "targetResourceId": { - "description": "The resource ID to which the schedule belongs", - "type": "string" - } - } + "properties": {} }, "ScheduleFragment": { "description": "A schedule.", @@ -12358,13 +11640,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/SchedulePropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "ScheduleList": { "description": "The response of a list operation.", @@ -12377,75 +11653,13 @@ "$ref": "#/definitions/Schedule" } }, - "nextLink": { - "description": "Link for next set of results.", - "type": "string" - } - } - }, - "ScheduleProperties": { - "description": "Properties of a schedule.", - "type": "object", - "properties": { - "status": { - "description": "The status of the schedule (i.e. Enabled, Disabled)", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnableStatus", - "modelAsString": true - } - }, - "taskType": { - "description": "The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).", - "type": "string" - }, - "weeklyRecurrence": { - "$ref": "#/definitions/WeekDetails", - "description": "If the schedule will occur only some days of the week, specify the weekly recurrence." - }, - "dailyRecurrence": { - "$ref": "#/definitions/DayDetails", - "description": "If the schedule will occur once each day of the week, specify the daily recurrence." - }, - "hourlyRecurrence": { - "$ref": "#/definitions/HourDetails", - "description": "If the schedule will occur multiple times a day, specify the hourly recurrence." - }, - "timeZoneId": { - "description": "The time zone ID (e.g. Pacific Standard time).", - "type": "string" - }, - "notificationSettings": { - "$ref": "#/definitions/NotificationSettings", - "description": "Notification settings." - }, - "createdDate": { - "format": "date-time", - "description": "The creation date of the schedule.", - "type": "string", - "readOnly": true - }, - "targetResourceId": { - "description": "The resource ID to which the schedule belongs", - "type": "string" - }, - "provisioningState": { - "description": "The provisioning status of the resource.", - "type": "string", - "readOnly": true - }, - "uniqueIdentifier": { - "description": "The unique immutable identifier of a resource (Guid).", - "type": "string", - "readOnly": true + "nextLink": { + "description": "Link for next set of results.", + "type": "string" } } }, - "SchedulePropertiesFragment": { + "ScheduleProperties": { "description": "Properties of a schedule.", "type": "object", "properties": { @@ -12466,15 +11680,15 @@ "type": "string" }, "weeklyRecurrence": { - "$ref": "#/definitions/WeekDetailsFragment", + "$ref": "#/definitions/WeekDetails", "description": "If the schedule will occur only some days of the week, specify the weekly recurrence." }, "dailyRecurrence": { - "$ref": "#/definitions/DayDetailsFragment", + "$ref": "#/definitions/DayDetails", "description": "If the schedule will occur once each day of the week, specify the daily recurrence." }, "hourlyRecurrence": { - "$ref": "#/definitions/HourDetailsFragment", + "$ref": "#/definitions/HourDetails", "description": "If the schedule will occur multiple times a day, specify the hourly recurrence." }, "timeZoneId": { @@ -12482,15 +11696,36 @@ "type": "string" }, "notificationSettings": { - "$ref": "#/definitions/NotificationSettingsFragment", + "$ref": "#/definitions/NotificationSettings", "description": "Notification settings." }, + "createdDate": { + "format": "date-time", + "description": "The creation date of the schedule.", + "type": "string", + "readOnly": true + }, "targetResourceId": { "description": "The resource ID to which the schedule belongs", "type": "string" + }, + "provisioningState": { + "description": "The provisioning status of the resource.", + "type": "string", + "readOnly": true + }, + "uniqueIdentifier": { + "description": "The unique immutable identifier of a resource (Guid).", + "type": "string", + "readOnly": true } } }, + "SchedulePropertiesFragment": { + "description": "Properties of a schedule.", + "type": "object", + "properties": {} + }, "Secret": { "description": "A secret.", "required": [ @@ -12518,13 +11753,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/SecretPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "SecretList": { "description": "The response of a list operation.", @@ -12566,12 +11795,7 @@ "SecretPropertiesFragment": { "description": "Properties of a secret.", "type": "object", - "properties": { - "value": { - "description": "The value of the secret for secret creation.", - "type": "string" - } - } + "properties": {} }, "ServiceFabric": { "description": "A Service Fabric.", @@ -12600,13 +11824,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/ServiceFabricPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "ServiceFabricList": { "description": "The response of a list operation.", @@ -12657,16 +11875,7 @@ "ServiceFabricPropertiesFragment": { "description": "Properties of a service fabric.", "type": "object", - "properties": { - "externalServiceFabricId": { - "description": "The backing service fabric resource's id", - "type": "string" - }, - "environmentId": { - "description": "The resource id of the environment under which the service fabric resource is present", - "type": "string" - } - } + "properties": {} }, "ServiceRunner": { "description": "A container for a managed identity to execute DevTest lab services.", @@ -12683,20 +11892,24 @@ } } }, - "SharedPublicIpAddressConfiguration": { - "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", + "ServiceRunnerList": { + "description": "The response of a list operation.", "type": "object", "properties": { - "inboundNatRules": { - "description": "The incoming NAT rules", + "value": { + "description": "Results of the list operation.", "type": "array", "items": { - "$ref": "#/definitions/InboundNatRule" + "$ref": "#/definitions/ServiceRunner" } + }, + "nextLink": { + "description": "Link for next set of results.", + "type": "string" } } }, - "SharedPublicIpAddressConfigurationFragment": { + "SharedPublicIpAddressConfiguration": { "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", "type": "object", "properties": { @@ -12704,11 +11917,16 @@ "description": "The incoming NAT rules", "type": "array", "items": { - "$ref": "#/definitions/InboundNatRuleFragment" + "$ref": "#/definitions/InboundNatRule" } } } }, + "SharedPublicIpAddressConfigurationFragment": { + "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", + "type": "object", + "properties": {} + }, "ShutdownNotificationContent": { "description": "The contents of a shutdown notification. Webhooks can use this type to deserialize the request body when they get notified of an imminent shutdown.", "type": "object", @@ -12797,29 +12015,7 @@ "SubnetFragment": { "description": "Subnet information.", "type": "object", - "properties": { - "resourceId": { - "description": "The resource ID of the subnet.", - "type": "string" - }, - "labSubnetName": { - "description": "The name of the subnet as seen in the lab.", - "type": "string" - }, - "allowPublicIp": { - "description": "The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).", - "enum": [ - "Default", - "Deny", - "Allow" - ], - "type": "string", - "x-ms-enum": { - "name": "UsagePermissionType", - "modelAsString": true - } - } - } + "properties": {} }, "SubnetOverride": { "description": "Property overrides on a subnet of a virtual network.", @@ -12872,50 +12068,7 @@ "SubnetOverrideFragment": { "description": "Property overrides on a subnet of a virtual network.", "type": "object", - "properties": { - "resourceId": { - "description": "The resource ID of the subnet.", - "type": "string" - }, - "labSubnetName": { - "description": "The name given to the subnet within the lab.", - "type": "string" - }, - "useInVmCreationPermission": { - "description": "Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).", - "enum": [ - "Default", - "Deny", - "Allow" - ], - "type": "string", - "x-ms-enum": { - "name": "UsagePermissionType", - "modelAsString": true - } - }, - "usePublicIpAddressPermission": { - "description": "Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).", - "enum": [ - "Default", - "Deny", - "Allow" - ], - "type": "string", - "x-ms-enum": { - "name": "UsagePermissionType", - "modelAsString": true - } - }, - "sharedPublicIpAddressConfiguration": { - "$ref": "#/definitions/SubnetSharedPublicIpAddressConfigurationFragment", - "description": "Properties that virtual machines on this subnet will share." - }, - "virtualNetworkPoolName": { - "description": "The virtual network pool associated with this subnet.", - "type": "string" - } - } + "properties": {} }, "SubnetSharedPublicIpAddressConfiguration": { "description": "Configuration for public IP address sharing.", @@ -12933,15 +12086,7 @@ "SubnetSharedPublicIpAddressConfigurationFragment": { "description": "Configuration for public IP address sharing.", "type": "object", - "properties": { - "allowedPorts": { - "description": "Backend ports that virtual machines on this subnet are allowed to expose", - "type": "array", - "items": { - "$ref": "#/definitions/PortFragment" - } - } - } + "properties": {} }, "TargetCostProperties": { "description": "Properties of a cost target.", @@ -13032,13 +12177,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/UserPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "UserIdentity": { "description": "Identity attributes of a lab user.", @@ -13069,28 +12208,7 @@ "UserIdentityFragment": { "description": "Identity attributes of a lab user.", "type": "object", - "properties": { - "principalName": { - "description": "Set to the principal name / UPN of the client JWT making the request.", - "type": "string" - }, - "principalId": { - "description": "Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", - "type": "string" - }, - "tenantId": { - "description": "Set to the tenant ID of the client JWT making the request.", - "type": "string" - }, - "objectId": { - "description": "Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.", - "type": "string" - }, - "appId": { - "description": "Set to the app Id of the client JWT making the request.", - "type": "string" - } - } + "properties": {} }, "UserList": { "description": "The response of a list operation.", @@ -13142,16 +12260,7 @@ "UserPropertiesFragment": { "description": "Properties of a lab user profile.", "type": "object", - "properties": { - "identity": { - "$ref": "#/definitions/UserIdentityFragment", - "description": "The identity of the user." - }, - "secretStore": { - "$ref": "#/definitions/UserSecretStoreFragment", - "description": "The secret store of the user." - } - } + "properties": {} }, "UserSecretStore": { "description": "Properties of a user's secret store.", @@ -13170,16 +12279,7 @@ "UserSecretStoreFragment": { "description": "Properties of a user's secret store.", "type": "object", - "properties": { - "keyVaultUri": { - "description": "The URI of the user's Key vault.", - "type": "string" - }, - "keyVaultId": { - "description": "The ID of the user's Key vault.", - "type": "string" - } - } + "properties": {} }, "VirtualNetwork": { "description": "A virtual network.", @@ -13205,13 +12305,7 @@ "$ref": "#/definitions/UpdateResource" } ], - "properties": { - "properties": { - "$ref": "#/definitions/VirtualNetworkPropertiesFragment", - "description": "The properties of the resource.", - "x-ms-client-flatten": true - } - } + "properties": {} }, "VirtualNetworkList": { "description": "The response of a list operation.", @@ -13285,30 +12379,7 @@ "VirtualNetworkPropertiesFragment": { "description": "Properties of a virtual network.", "type": "object", - "properties": { - "allowedSubnets": { - "description": "The allowed subnets of the virtual network.", - "type": "array", - "items": { - "$ref": "#/definitions/SubnetFragment" - } - }, - "description": { - "description": "The description of the virtual network.", - "type": "string" - }, - "externalProviderResourceId": { - "description": "The Microsoft.Network resource identifier of the virtual network.", - "type": "string" - }, - "subnetOverrides": { - "description": "The subnet overrides of the virtual network.", - "type": "array", - "items": { - "$ref": "#/definitions/SubnetOverrideFragment" - } - } - } + "properties": {} }, "WeekDetails": { "description": "Properties of a weekly schedule.", @@ -13330,19 +12401,7 @@ "WeekDetailsFragment": { "description": "Properties of a weekly schedule.", "type": "object", - "properties": { - "weekdays": { - "description": "The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).", - "type": "array", - "items": { - "type": "string" - } - }, - "time": { - "description": "The time of the day the schedule will occur.", - "type": "string" - } - } + "properties": {} }, "WindowsOsInfo": { "description": "Information about a Windows OS.", @@ -13366,21 +12425,7 @@ "WindowsOsInfoFragment": { "description": "Information about a Windows OS.", "type": "object", - "properties": { - "windowsOsState": { - "description": "The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).", - "enum": [ - "NonSysprepped", - "SysprepRequested", - "SysprepApplied" - ], - "type": "string", - "x-ms-enum": { - "name": "WindowsOsState", - "modelAsString": true - } - } - } + "properties": {} } }, "parameters": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json new file mode 100644 index 000000000000..256a3a892913 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "artifactSourceName": "{artifactSourceName}", + "name": "{armTemplateName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "Template1", + "publisher": "Microsoft", + "contents": { + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "variables": { + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", + "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" + }, + "resources": [] + }, + "parametersValueFilesInfo": [], + "enabled": true + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", + "location": "{location}", + "tags": { + "MyTag": "MyValue" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json new file mode 100644 index 000000000000..da36a2960411 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "artifactSourceName": "{artifactSourceName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "Template1", + "publisher": "Microsoft", + "contents": { + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "variables": { + "resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]", + "hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]", + "siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]" + }, + "resources": [] + }, + "parametersValueFilesInfo": [], + "enabled": true + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}", + "name": "Template1", + "type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates", + "location": "{location}", + "tags": { + "MyTag": "MyValue" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json new file mode 100644 index 000000000000..7b7f009c9848 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{artifactSourceName}", + "artifactSource": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Created", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json new file mode 100644 index 000000000000..578e1c14237a --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{artifactSourceName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json new file mode 100644 index 000000000000..7462ce9e8a1d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{artifactSourceName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json new file mode 100644 index 000000000000..824805c6ef0e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json new file mode 100644 index 000000000000..52d5dd71bd30 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{artifactSourceName}", + "artifactSource": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "{displayName}", + "uri": "{artifactSourceUri}", + "sourceType": "{VsoGit|GitHub|StorageAccount}", + "folderPath": "{folderPath}", + "armTemplateFolderPath": "{armTemplateFolderPath}", + "branchRef": "{branchRef}", + "securityToken": "{securityToken}", + "status": "{Enabled|Disabled}", + "createdDate": "2020-12-16T16:53:02.4830866-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}", + "name": "{artifactSourceName}", + "type": "Microsoft.DevTestLab/labs/artifactsources", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json new file mode 100644 index 000000000000..46ae7179d783 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "artifactSourceName": "{artifactSourceName}", + "name": "{artifactName}", + "generateArmTemplateRequest": { + "fileUploadOptions": "None", + "location": "{location}", + "virtualMachineName": "{vmName}" + } + }, + "responses": { + "200": { + "body": { + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string" + }, + "extensionName": { + "type": "string" + } + }, + "variables": { + "_commandToExecute": "{commandToExecute}." + }, + "resources": [ + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[parameters('extensionName')]", + "apiVersion": "2015-06-15", + "location": "[parameters('location')]", + "properties": { + "publisher": "Microsoft.Compute", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.9", + "autoUpgradeMinorVersion": "true", + "forceUpdateTag": "15/10/2018 00:00:00 +00:00", + "settings": { + "fileUris": [ + "{MsDtlArtifactFileUris}" + ], + "commandToExecute": "" + }, + "protectedSettings": { + "commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]" + } + } + } + ] + }, + "parameters": { + "extensionName": { + "value": "{vmName}/CustomScriptExtension" + }, + "location": { + "value": "{location}" + } + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json new file mode 100644 index 000000000000..bde3dd481677 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "artifactSourceName": "{artifactSourceName}", + "name": "{artifactName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "title": "Sample Artifact Title", + "description": "Sample artifact description.", + "publisher": "Microsoft", + "filePath": "{artifactsPath}/{artifactName}", + "targetOsType": "Windows", + "parameters": { + "uri": { + "type": "string", + "displayName": "Sample Parameter 1", + "description": "Sample parameter 1 description.", + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/..." + } + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", + "name": "{artifactName}", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", + "location": "{location}", + "tags": { + "MyTag": "MyValue" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json new file mode 100644 index 000000000000..ec9b5d2237cc --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "artifactSourceName": "{artifactSourceName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "title": "Sample Artifact Title", + "description": "Sample artifact description.", + "publisher": "Microsoft", + "filePath": "{artifactsPath}/{artifactName}", + "targetOsType": "Windows", + "parameters": { + "uri": { + "type": "string", + "displayName": "Sample Parameter 1", + "description": "Sample parameter 1 description.", + "defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/..." + } + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}", + "name": "{artifactName}", + "type": "Microsoft.DevTestLab/labs/artifactSources/artifacts", + "location": "{location}", + "tags": { + "MyTag": "MyValue" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json new file mode 100644 index 000000000000..d7433affa979 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json @@ -0,0 +1,199 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "targetCost", + "labCost": { + "properties": { + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 25 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000002", + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "percentageThreshold": { + "thresholdValue": 50 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000003", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 75 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000004", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 100 + } + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000005", + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "percentageThreshold": { + "thresholdValue": 125 + } + } + ], + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00.000Z", + "cycleEndDateTime": "2020-12-31T00:00:00.000Z", + "cycleType": "CalendarMonth", + "status": "Enabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 25.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 50.0 + }, + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 75.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 100.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 125.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + } + ], + "status": "Enabled", + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleType": "CalendarMonth" + }, + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + }, + "201": { + "body": { + "properties": { + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 25.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 50.0 + }, + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 75.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 100.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 125.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + } + ], + "status": "Enabled", + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleType": "CalendarMonth" + }, + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json new file mode 100644 index 000000000000..518660e9963b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "targetCost" + }, + "responses": { + "200": { + "body": { + "properties": { + "targetCost": { + "costThresholds": [ + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 25.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 50.0 + }, + "displayOnChart": "Enabled", + "sendNotificationWhenExceeded": "Enabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 75.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 100.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + }, + { + "thresholdId": "00000000-0000-0000-0000-000000000001", + "percentageThreshold": { + "thresholdValue": 125.0 + }, + "displayOnChart": "Disabled", + "sendNotificationWhenExceeded": "Disabled", + "notificationSent": "0001-01-01T00:00:00.0000000" + } + ], + "status": "Enabled", + "target": 100, + "cycleStartDateTime": "2020-12-01T00:00:00+00:00", + "cycleEndDateTime": "2020-12-31T23:59:59+00:00", + "cycleType": "CalendarMonth" + }, + "currencyCode": "USD", + "startDateTime": "2020-12-01T00:00:00Z", + "endDateTime": "2020-12-31T23:59:59Z", + "createdDate": "2020-12-23T22:43:54.7253204+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json new file mode 100644 index 000000000000..ef0ae2da61e3 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{customImageName}", + "customImage": { + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + }, + "description": "My Custom Image" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "{location}", + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + }, + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "{location}", + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + }, + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json new file mode 100644 index 000000000000..4544a0e9ea5b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{customImageName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json new file mode 100644 index 000000000000..6d7a830fe954 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{customImageName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + } + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json new file mode 100644 index 000000000000..b2ae535593ed --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "{location}", + "properties": { + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}", + "vm": { + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + } + } + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json new file mode 100644 index 000000000000..67aa1c3e83ec --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{customImageName}", + "customImage": { + "tags": { + "tagName1": "tagValue2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/customimages/{customImageName}", + "name": "{customImageName}", + "type": "Microsoft.DevTestLab/labs/customImages", + "location": "{location}", + "properties": { + "vm": { + "linuxOsInfo": { + "linuxOsState": "NonDeprovisioned" + }, + "sourceVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + }, + "description": "My Custom Image", + "author": "{authorName}", + "creationDate": "2021-10-10T09:59:28.7985144+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue2" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json new file mode 100644 index 000000000000..f6ea4ce0ac1c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userId}", + "name": "{diskName}", + "attachDiskProperties": { + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json new file mode 100644 index 000000000000..9d9e3b789b37 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userId}", + "name": "{diskName}", + "disk": { + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "hostCaching": "None", + "provisioningState": "Succeeded", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks" + } + }, + "201": { + "body": { + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "hostCaching": "None", + "provisioningState": "Creating", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/l{labName}/users/{userId}/disks/{diskName}", + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json new file mode 100644 index 000000000000..a5811909aad4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userId}", + "name": "{diskName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json new file mode 100644 index 000000000000..ee642e61810b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userId}", + "name": "{diskName}", + "detachDiskProperties": { + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json new file mode 100644 index 000000000000..83f49c4d0ef5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{diskName}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:27:32.1445632+00:00", + "hostCaching": "None", + "managedDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/{diskName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json new file mode 100644 index 000000000000..7c8d9a77c86e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{diskName}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userId}/disks/{diskName}", + "name": "{diskName}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:27:32.1445632+00:00", + "hostCaching": "None", + "managedDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.compute/disks/{diskName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "9bf098d1-1b64-41a5-aa05-286767074a0b" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json new file mode 100644 index 000000000000..251c0369afe7 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "name": "diskName", + "disk": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{user-id}/disks/{diskName}", + "name": "{disk-name}", + "type": "Microsoft.DevTestLab/labs/users/disks", + "properties": { + "diskType": "Standard", + "diskSizeGiB": 1023, + "leasedByLabVmId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName", + "diskUri": "", + "createdDate": "2021-01-04T20:21:02.0182357+00:00", + "hostCaching": "None", + "provisioningState": "Succeeded", + "uniqueIdentifier": "b7183ac5-1097-4513-b597-4d9d23e0a820" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json new file mode 100644 index 000000000000..e2b8239ceed2 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "name": "{environmentName}", + "dtlEnvironment": { + "properties": { + "deploymentProperties": { + "parameters": [], + "armTemplateId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "{location}", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "{location}", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json new file mode 100644 index 000000000000..9e90092d0426 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "name": "{environmentName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json new file mode 100644 index 000000000000..94797da37d8b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "name": "{environmentName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "{location}", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json new file mode 100644 index 000000000000..0e56ddf279ba --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "{location}", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json new file mode 100644 index 000000000000..33168792b7cc --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "name": "{environmentName}", + "dtlEnvironment": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{uniqueIdentifier}/environments/{environmentName}", + "name": "{environmentName}", + "type": "Microsoft.DevTestLab/labs/users/environments", + "location": "{location}", + "properties": { + "deploymentProperties": { + "armTemplateId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}" + }, + "createdByUser": "user@contoso.com", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json new file mode 100644 index 000000000000..77aec0ba019f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json @@ -0,0 +1,164 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{formulaName}", + "formula": { + "location": "{location}", + "properties": { + "description": "Formula using a Linux base", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "{location}" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "disallowPublicIpAddress": true, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "{location}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "disallowPublicIpAddress": true, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "{location}" + }, + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json new file mode 100644 index 000000000000..949e2690afac --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{formulaName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json new file mode 100644 index 000000000000..7d969c8897d8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{formulaName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "properties": { + "description": "Formula used to create a Linux VM", + "author": "user@contoso.com", + "osType": "Linux", + "creationDate": "2018-12-22T19:13:35.9922091+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "{location}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json new file mode 100644 index 000000000000..d47848c5a7e8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Formula used to create a Linux VM", + "author": "user@contoso.com", + "osType": "Linux", + "creationDate": "2018-12-22T19:13:35.9922091+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "disallowPublicIpAddress": true, + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "{location}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "7a7d20ab-8a50-46fb-8dc6-7c6c1443a01b" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json new file mode 100644 index 000000000000..d2113559a14c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{formulaName}", + "formula": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/formulas/{formulaName}", + "name": "{formulaName}", + "type": "Microsoft.DevTestLab/labs/formulas", + "properties": { + "description": "Formula using a Linux base", + "author": "username@contoso.com", + "creationDate": "2018-12-22T21:25:42.9254696+00:00", + "formulaContent": { + "properties": { + "notes": "Ubuntu Server 20.10", + "size": "Standard_B1ms", + "userName": "user", + "isAuthenticationWithSshKey": false, + "labSubnetName": "Dtl{labName}Subnet", + "labVirtualNetworkId": "/virtualnetworks/dtl{labName}", + "disallowPublicIpAddress": true, + "artifacts": [ + { + "artifactId": "/artifactsources/{artifactSourceName}/artifacts/linux-install-nodejs", + "parameters": [] + } + ], + "galleryImageReference": { + "offer": "0001-com-ubuntu-server-groovy", + "publisher": "canonical", + "sku": "20_10", + "osType": "Linux", + "version": "latest" + }, + "networkInterface": { + "sharedPublicIpAddressConfiguration": { + "inboundNatRules": [ + { + "transportProtocol": "Tcp", + "backendPort": 22 + } + ] + } + }, + "allowClaim": false, + "storageType": "Standard" + }, + "location": "{location}" + }, + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json new file mode 100644 index 000000000000..d0f1ddf9f2f1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "author": "Canonical", + "createdDate": "2020-12-14T23:43:43.7643542+00:00", + "description": "Ubuntu Server is the world's most popular Linux for cloud environments. Updates and patches for Ubuntu Server 20.04 LTS will be available until April 2025. Ubuntu Server is the perfect virtual machine (VM) platform for all workloads from web applications to NoSQL databases and Hadoop. For more information see Ubuntu on Azure and using Juju to deploy your workloads.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Canonical and that the legal terms of Canonical apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Canonical.

", + "imageReference": { + "offer": "0001-com-ubuntu-server-focal", + "publisher": "canonical", + "sku": "20_04-lts", + "osType": "Linux", + "version": "latest" + }, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/canonical.0001-com-ubuntu-server-focal20_04-lts-ARM.1.0.22/Icons/Small.png", + "enabled": true + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/ubuntu server 20.04 lts", + "name": "Ubuntu Server 20.04 LTS", + "type": "Microsoft.DevTestLab/labs/galleryImages", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + { + "properties": { + "author": "Microsoft", + "createdDate": "2020-12-14T21:33:33.2464999+00:00", + "description": "

This software is provided by Microsoft. Use of this software in Microsoft Azure is not permitted except under a volume licensing agreement with Microsoft. By clicking Create, I acknowledge that I or the company I work for is licensed to use this software under a volume licensing agreement with Microsoft and that the right to use it will be subject to that agreement.

Legal Terms

By clicking the Create button, I acknowledge that I am getting this software from Microsoft and that the legal terms of Microsoft apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Microsoft.

", + "imageReference": { + "offer": "Windows-10", + "publisher": "MicrosoftWindowsDesktop", + "sku": "20h2-ent", + "osType": "Windows", + "version": "latest" + }, + "icon": "https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoftwindowsdesktop.windows-1020h2-ent.1.0.238/Icons/Small.png", + "enabled": true + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/galleryimages/windows 10 enterprise, version 20h2", + "name": "Windows 10 Enterprise, Version 20H2", + "type": "Microsoft.DevTestLab/labs/galleryImages", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..639b08e47064 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart", + "schedule": { + "properties": { + "status": "Enabled", + "timeZoneId": "Hawaiian Standard Time", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "time": "0700", + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{id}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{id}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json new file mode 100644 index 000000000000..511e24bfa6a4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json new file mode 100644 index 000000000000..9e5b8fce4caf --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json new file mode 100644 index 000000000000..2a1fef560483 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{id}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json new file mode 100644 index 000000000000..b717ff966019 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "{location}", + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json new file mode 100644 index 000000000000..ff294dcc4c3f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json new file mode 100644 index 000000000000..ec3aeab43737 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{scheduleName}", + "retargetScheduleProperties": { + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{currentLab}", + "currentResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{targetLab}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json new file mode 100644 index 000000000000..f31c11fcda3e --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "labvmautostart", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "time": "0700" + }, + "timeZoneId": "Hawaiian Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 0 + }, + "createdDate": "2020-12-29T22:54:54.9335182+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/labvmautostart", + "name": "LabVmAutoStart", + "type": "microsoft.devtestlab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json index 5a656e392f58..97163b3995e6 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json @@ -1,9 +1,9 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", "monitor": "true" }, "responses": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json index 9ade4318f1ef..fc38fe83e18b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json @@ -1,17 +1,16 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", "labVirtualMachineCreationParameter": { "properties": { - "osType": "Linux", "size": "Standard_A2_v2", - "userName": "{user-name}", - "password": "{user-password}", + "userName": "{userName}", + "password": "{userPassword}", "labSubnetName": "{virtualnetwork-subnet-name}", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", @@ -23,10 +22,10 @@ "allowClaim": true, "storageType": "Standard" }, - "name": "{virtualmachine-name}", - "location": "{azure-location}", + "name": "{vmName}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json index ecbe5b1869ea..54e2c9c17dbd 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json @@ -1,16 +1,16 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", "lab": { "properties": { "labStorageType": "{Standard|Premium}" }, - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, @@ -35,14 +35,14 @@ "markdown": "" }, "provisioningState": "Creating", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}", - "name": "{devtestlab-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "name": "{labName}", "type": "Microsoft.DevTestLab/labs", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, @@ -66,14 +66,14 @@ "markdown": "" }, "provisioningState": "Creating", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}", - "name": "{devtestlab-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "name": "{labName}", "type": "Microsoft.DevTestLab/labs", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json index 6b4b5a2a48f4..8e02f5d2a666 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json @@ -1,9 +1,9 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json new file mode 100644 index 000000000000..4ccd32dab878 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", + "exportResourceUsageParameters": { + "blobStorageAbsoluteSasUri": "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw", + "usageStartDate": "2020-12-01T00:00:00Z" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json index 3d551cf1ec38..566933707217 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json @@ -1,9 +1,9 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", "generateUploadUriParameter": { "blobName": "{blob-name}" } @@ -11,7 +11,7 @@ "responses": { "200": { "body": { - "uploadUri": "https://{storage-name}.blob.core.windows.net/uploads/{blob-name}?sv=2017-04-17&sr=b&sig={signature}&st=2018-10-02T01:55:24Z&se=2018-10-03T02:10:23Z&sp=rcw" + "uploadUri": "https://{storageName}.blob.core.windows.net/uploads/{blobName}?sv=2017-04-17&sr=b&sig={signature}&st=2018-10-02T01:55:24Z&se=2018-10-03T02:10:23Z&sp=rcw" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json index aaf45a74d206..a0a415d4d74b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json @@ -1,19 +1,19 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}" }, "responses": { "200": { "body": { "properties": { - "defaultStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageaccount-name}", - "defaultPremiumStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageaccount-name}", - "artifactsStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageaccount-name}", - "premiumDataDiskStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageaccount-name}", - "vaultName": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/{keyvault-name}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], @@ -31,14 +31,14 @@ "markdown": "" }, "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}", - "name": "{devtestlab-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "name": "{labName}", "type": "Microsoft.DevTestLab/labs", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json new file mode 100644 index 000000000000..f1b5413013c5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", + "importLabVirtualMachineRequest": { + "sourceVirtualMachineResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{otherResourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "destinationVirtualMachineName": "{vmName}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json index 201144a42007..df7a0c1352dc 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json @@ -1,8 +1,8 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName" }, "responses": { "200": { @@ -10,7 +10,7 @@ "value": [ { "properties": { - "vaultName": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/{keyvault-name}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], @@ -28,14 +28,14 @@ "markdown": "" }, "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}", - "name": "{devtestlab-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "name": "{labName}", "type": "Microsoft.DevTestLab/labs", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } ] diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json index 1f9c291b85d5..c381a81ac1f0 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}" }, "responses": { "200": { @@ -9,11 +9,11 @@ "value": [ { "properties": { - "defaultStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-1}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-1}", - "defaultPremiumStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-1}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-1}", - "artifactsStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-1}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-1}", - "premiumDataDiskStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-1}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-1}", - "vaultName": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-1}/providers/Microsoft.KeyVault/vaults/{keyvault-name-1}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/{storageAccountName}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", "labStorageType": "Premium", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], @@ -31,21 +31,23 @@ "markdown": "" }, "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/{resourcegroup-name-1}/providers/microsoft.devtestlab/labs/{lab-name-1}", - "name": "{lab-name-1}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName1}", + "name": "{labName1}", "type": "Microsoft.DevTestLab/labs", "location": "westcentralus", - "tags": {} + "tags": { + "tagName1": "tagValue1" + } }, { "properties": { - "defaultStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-2}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-2}", - "defaultPremiumStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-2}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-2}", - "artifactsStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-2}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-2}", - "premiumDataDiskStorageAccount": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-2}/providers/Microsoft.Storage/storageAccounts/{storageaccount-name-2}", - "vaultName": "/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name-2}/providers/Microsoft.KeyVault/vaults/{keyvault-name-2}", + "defaultStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "defaultPremiumStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "artifactsStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "premiumDataDiskStorageAccount": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.Storage/storageAccounts/{storageAccountName2}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName2}/providers/Microsoft.KeyVault/vaults/{keyVaultName2}", "labStorageType": "Premium", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], @@ -63,13 +65,15 @@ "markdown": "" }, "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/{resourcegroup-name-2}/providers/microsoft.devtestlab/labs/{lab-name-2}", - "name": "{lab-name-2}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName2}/providers/microsoft.devtestlab/labs/{labName2}", + "name": "{labName2}", "type": "Microsoft.DevTestLab/labs", "location": "japaneast", - "tags": {} + "tags": { + "tagName1": "tagValue1" + } } ] } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json new file mode 100644 index 000000000000..0c51db641f2c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "https://{labStorageAccountName}.blob.core.windows.net/vhds/vhd1" + }, + { + "id": "https://{labStorageAccountName}.blob.core.windows.net/vhds/vhd2" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json index 25dad45fc1f3..ad69884d157f 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json @@ -1,20 +1,16 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "{devtestlab-name}", "api-version": "2018-09-15", - "lab": { - "properties": { - "labStorageType": "Premium" - } - } + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "name": "{labName}", + "lab": {} }, "responses": { "200": { "body": { "properties": { - "vaultName": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/{keyvault-name}", + "vaultName": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/{keyVaultName}", "labStorageType": "Standard", "mandatoryArtifactsResourceIdsLinux": [], "mandatoryArtifactsResourceIdsWindows": [], @@ -32,14 +28,14 @@ "markdown": "" }, "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}", - "name": "{devtestlab-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "name": "{labName}", "type": "Microsoft.DevTestLab/labs", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json new file mode 100644 index 000000000000..918867c894fa --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{notificationChannelName}", + "notificationChannel": { + "properties": { + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json new file mode 100644 index 000000000000..c6016c7324a8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{notificationChannelName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json new file mode 100644 index 000000000000..e59ca23b17f8 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{notificationChannelName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json new file mode 100644 index 000000000000..7723abf785f1 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:12:10.6566371+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "name": "autoshutdown", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + { + "properties": { + "webHookUrl": "{webhookUrl}", + "notificationLocale": "en", + "description": "Integration configured for cost", + "events": [ + { + "eventName": "Cost" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "name": "costThreshold", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json new file mode 100644 index 000000000000..fc9c74f6928d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{notificationChannelName}", + "notifyParameters": { + "eventName": "AutoShutdown", + "jsonPayload": "{\"eventType\":\"AutoShutdown\",\"subscriptionId\":\"{subscriptionId}\",\"resourceGroupName\":\"resourceGroupName\",\"labName\":\"{labName}\"}" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json new file mode 100644 index 000000000000..2135cb607801 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{notificationChannelName}", + "notificationChannel": {} + }, + "responses": { + "200": { + "body": { + "properties": { + "webHookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "en", + "description": "Integration configured for auto-shutdown", + "events": [ + { + "eventName": "AutoShutdown" + } + ], + "createdDate": "2021-01-05T02:14:05.2392034+00:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/notificationChannels/{notificationChannelName}", + "name": "{notificationChannelName}", + "type": "Microsoft.DevTestLab/labs/notificationChannels", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json new file mode 100644 index 000000000000..2b31221157f0 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "locationName": "{locationName}", + "name": "{operationName}" + }, + "responses": { + "200": { + "body": { + "status": "Running", + "statusCode": "OK" + } + }, + "202": { + "body": { + "status": "Running", + "statusCode": "Accepted" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json new file mode 100644 index 000000000000..97926527b254 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "policySetName": "{policySetName}", + "name": "{policyName}", + "policy": { + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + }, + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policies", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json new file mode 100644 index 000000000000..896696109998 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "policySetName": "{policySetName}", + "name": "{policyName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json new file mode 100644 index 000000000000..f07a9fe077d3 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "policySetName": "{policySetName}", + "name": "{policyName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json new file mode 100644 index 000000000000..e419f2c69e08 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "policySetName": "{policySetName}", + "name": "{policyName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policySets/policies", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json new file mode 100644 index 000000000000..aa1a9957a355 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "policySetName": "{policySetName}", + "name": "{policyName}", + "policy": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{policyName}", + "name": "{labName}", + "type": "Microsoft.DevTestLab/labs/policies", + "location": "{location}", + "properties": { + "description": "{policyDescription}", + "status": "{policyStatus}", + "factName": "{policyFactName}", + "factData": "{policyFactData}", + "threshold": "{policyThreshold}", + "evaluatorType": "{policyEvaluatorType}", + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json new file mode 100644 index 000000000000..551545c15666 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{policySetName}", + "evaluatePoliciesRequest": { + "policies": [ + { + "factName": "LabVmCount", + "valueOffset": "1" + } + ] + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "hasError": true, + "policyViolations": [ + { + "code": "MaxValuePolicy", + "message": "You cannot exceed the limit (1) of virtual machines that can be created in this lab." + } + ] + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json new file mode 100644 index 000000000000..3da352bda297 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{scheduleName}", + "schedule": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json new file mode 100644 index 000000000000..c42f7b046183 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json new file mode 100644 index 000000000000..af0f56a08717 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json new file mode 100644 index 000000000000..da04dd288866 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{scheduleName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json new file mode 100644 index 000000000000..330e80fe2c19 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json new file mode 100644 index 000000000000..df90a36c097b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{scheduleName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json new file mode 100644 index 000000000000..407f17837a6b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{scheduleName}", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json new file mode 100644 index 000000000000..c4165ca23f8f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{secretName}", + "secret": { + "properties": { + "value": "{secret}" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + }, + "201": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json new file mode 100644 index 000000000000..c90cc62c868c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{secretName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json new file mode 100644 index 000000000000..ad0c8c5355eb --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{secretName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json new file mode 100644 index 000000000000..aa23320df573 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret1", + "name": "secret1", + "type": "Microsoft.DevTestLab/labs/users/secrets" + }, + { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/secret2", + "name": "secret2", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json new file mode 100644 index 000000000000..9f938c6220a4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{secretName}", + "secret": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "uniqueIdentifier": "00000000-0000-0000-0000-000000000000" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/secrets/{secretName}", + "name": "{secretName}", + "type": "Microsoft.DevTestLab/labs/users/secrets" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..fe45fc60d4ab --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}", + "schedule": { + "location": "{location}", + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "time": "19:00" + }, + "dailyRecurrence": { + "time": "19:00" + }, + "hourlyRecurrence": { + "minute": 0 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhoolUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json new file mode 100644 index 000000000000..22616b091427 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json new file mode 100644 index 000000000000..4e1cb328d509 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json new file mode 100644 index 000000000000..a3ae785deb4d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json new file mode 100644 index 000000000000..1e925dce6c48 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "Enabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json new file mode 100644 index 000000000000..906353aa75b6 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "@me", + "serviceFabricName": "{serviceFrabicName}", + "name": "{scheduleName}", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Disabled", + "taskType": "Unknown", + "weeklyRecurrence": { + "weekdays": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "time": "1900" + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Disabled", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-09-15T00:00:00.0000000-00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json new file mode 100644 index 000000000000..14c2b35de6ca --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json @@ -0,0 +1,234 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}", + "serviceFabric": { + "properties": { + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "{location}", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}", + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "{location}", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}", + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json new file mode 100644 index 000000000000..7a231b99a145 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json new file mode 100644 index 000000000000..6138b1eb11b9 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "{location}", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}", + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json new file mode 100644 index 000000000000..404314057355 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json @@ -0,0 +1,121 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "{location}", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}", + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json new file mode 100644 index 000000000000..29a071f07508 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json new file mode 100644 index 000000000000..d22512cdb394 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json new file mode 100644 index 000000000000..d22512cdb394 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json new file mode 100644 index 000000000000..7a0c1acc8c84 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "userName": "{userName}", + "name": "{serviceFabricName}", + "serviceFabric": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}", + "name": "{serviceFabricName}", + "type": "Microsoft.DevTestLab/labs/users/serviceFabrics", + "location": "{location}", + "properties": { + "applicableSchedule": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}", + "location": "{location}", + "name": "{scheduleName}", + "properties": { + "labVmsShutdown": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "labVmsStartup": { + "properties": { + "status": "{Enabled|Disabled}", + "taskType": "{myLabVmTaskType}", + "weeklyRecurrence": { + "weekdays": [ + "Monday", + "Wednesday", + "Friday" + ], + "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}" + }, + "dailyRecurrence": { + "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "{Enabled|Disabled}", + "timeInMinutes": 15, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}", + "provisioningState": "Creating", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}", + "name": "{scheduleName}", + "type": "Microsoft.DevTestLab/labs/schedules", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "type": "{scheduleType}", + "tags": { + "tagName1": "tagValue1" + } + }, + "environmentId": "{environmentId}", + "externalServiceFabricId": "{serviceFabricId}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json new file mode 100644 index 000000000000..78627a8a2d6f --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{servicerunnerName}", + "serviceRunner": { + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + }, + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + } + } + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "201": { + "body": { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json new file mode 100644 index 000000000000..6c34c7502026 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{servicerunnerName}" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json new file mode 100644 index 000000000000..ef2d8ea9dea4 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{servicerunnerName}" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "{identityType}", + "principalId": "{identityPrincipalId}", + "tenantId": "{identityTenantId}", + "clientSecretUrl": "{identityClientSecretUrl}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/serviceRunners/{serviceRunnerName}", + "name": "{serviceRunnerName}", + "type": "Microsoft.DevTestLab/labs/serviceRunners", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json new file mode 100644 index 000000000000..5be0d8a50a24 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{userName}", + "user": { + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + }, + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + }, + "201": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json new file mode 100644 index 000000000000..a39cade57f8b --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{userName}" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json new file mode 100644 index 000000000000..15a41b03c614 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{userName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json new file mode 100644 index 000000000000..61d9fb05ba79 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "{keyVaultUri}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json new file mode 100644 index 000000000000..82c8198f3612 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{devtestlabName}", + "name": "{userName}", + "user": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "identity": { + "principalName": "{principalName}", + "principalId": "{principalId}", + "tenantId": "{tenantId}", + "objectId": "{objectId}", + "appId": "{appId}" + }, + "secretStore": { + "keyVaultUri": "users/{userName}", + "keyVaultId": "{keyVaultId}" + }, + "createdDate": "2018-10-01T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "uniqueIdentifier": "{uniqueIdentifier}" + } + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}", + "name": "{userName}", + "type": "Microsoft.DevTestLab/labs/users", + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json new file mode 100644 index 000000000000..163dddcb27e0 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "virtualMachineName": "{vmName}", + "name": "LabVmsShutdown", + "schedule": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + }, + "location": "{location}", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Created", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + }, + "location": "{location}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + }, + "201": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Created", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + }, + "location": "{location}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json new file mode 100644 index 000000000000..58cfb84c7381 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "virtualMachineName": "{vmName}", + "name": "LabVmsShutdown" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json new file mode 100644 index 000000000000..46133bc16dce --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "virtualMachineName": "{vmName}", + "name": "LabVmsShutdown" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json new file mode 100644 index 000000000000..c53d38dd8e88 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "virtualMachineName": "{vmName}", + "name": "LabVmsShutdown" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + }, + "location": "{location}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json new file mode 100644 index 000000000000..7e303deffc3c --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "virtualMachineName": "{vmName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/labName}/virtualMachines/{vmName}" + }, + "location": "{location}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + ] + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json new file mode 100644 index 000000000000..4c7537fb0a50 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "virtualMachineName": "{vmName}", + "name": "LabVmsShutdown", + "schedule": { + "tags": { + "tagName1": "tagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "createdDate": "2020-12-31T18:40:48.1739018-07:00", + "provisioningState": "Succeeded", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}" + }, + "location": "{location}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualMachines/{vmName}/schedules/mySchedule", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "name": "LabVmsShutdown", + "tags": { + "tagName1": "tagValue1" + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json new file mode 100644 index 000000000000..e67ed77d20bf --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualMachineName}", + "dataDiskProperties": { + "attachNewDataDiskOptions": { + "diskSizeGiB": 127, + "diskName": "{diskName}", + "diskType": "{diskType}" + } + }, + "hostCaching": "none|readOnly|readWrite" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json new file mode 100644 index 000000000000..5ce835a61093 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", + "applyArtifactsRequest": { + "artifacts": [ + { + "artifactId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/public repo/artifacts/windows-restart" + } + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json index 3f7db707c177..0cef32cf7ca9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json index 41b4a14008be..9c695f3613de 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json @@ -1,18 +1,17 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", "labVirtualMachine": { "properties": { - "osType": "Linux", "size": "Standard_A2_v2", - "userName": "{user-name}", - "password": "{user-password}", - "labSubnetName": "{virtualnetwork-name}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "userName": "{userName}", + "password": "{userPassword}", + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "galleryImageReference": { "offer": "UbuntuServer", @@ -24,9 +23,9 @@ "allowClaim": true, "storageType": "Standard" }, - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, @@ -40,9 +39,9 @@ "createdByUser": "", "createdDate": "2018-10-01T16:53:02.4830866-07:00", "size": "Standard_A2_v2", - "userName": "{user-name}", - "labSubnetName": "{virtualnetwork-name}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "userName": "{userName}", + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "artifactDeploymentStatus": { "artifactsApplied": 0, @@ -61,14 +60,14 @@ "virtualMachineCreationSource": "FromGalleryImage", "dataDiskParameters": [], "provisioningState": "Creating", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualmachines/{virtualmachine-name}", - "name": "{virtualmachine-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "name": "{vmName}", "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, @@ -81,9 +80,9 @@ "createdByUser": "", "createdDate": "2018-10-01T16:53:02.4830866-07:00", "size": "Standard_A2_v2", - "userName": "{user-name}", - "labSubnetName": "{virtualnetwork-name}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "userName": "{userName}", + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "artifactDeploymentStatus": { "artifactsApplied": 0, @@ -102,14 +101,14 @@ "virtualMachineCreationSource": "FromGalleryImage", "dataDiskParameters": [], "provisioningState": "Creating", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualmachines/{virtualmachine-name}", - "name": "{virtualmachine-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "name": "{vmName}", "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json index a1aafb6bfe79..4cee5f86bb5c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json new file mode 100644 index 000000000000..60059a0f391d --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualMachineName}", + "detachDataDiskProperties": { + "existingLabDiskId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{virtualMachineName}" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json index ce5f014925e0..fc67f9ece136 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}" }, "responses": { "200": { @@ -15,12 +15,12 @@ "createdByUserId": "", "createdByUser": "", "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "computeId": "/subscriptions/{subscription-id}/resourceGroups/{devtestlab-name}-{virtualmachine-name}-{random-suffix}/providers/Microsoft.Compute/virtualMachines/{virtualmachine-name}", + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", "osType": "Linux", "size": "Standard_A2_v2", - "userName": "{user-name}", - "labSubnetName": "{virtualnetwork-name}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "userName": "{userName}", + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "artifactDeploymentStatus": { "artifactsApplied": 0, @@ -39,14 +39,14 @@ "virtualMachineCreationSource": "FromGalleryImage", "dataDiskParameters": [], "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualmachines/{virtualmachine-name}", - "name": "{virtualmachine-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "name": "{vmName}", "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json index b4fe6f3af367..0f96308651c7 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json @@ -1,15 +1,15 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}" }, "responses": { "200": { "body": { - "contents": "full address:s:10.0.0.4\r\nprompt for credentials:i:1\r\nusername:s:{virtualmachine-name}\\{user-name}\r\n" + "contents": "full address:s:10.0.0.4\r\nprompt for credentials:i:1\r\nusername:s:{vmName}\\{userName}\r\n" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json index 7ec3d8f0e280..b287ca5a0a0b 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json @@ -1,9 +1,9 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" }, "responses": { "200": { @@ -16,12 +16,12 @@ "createdByUserId": "", "createdByUser": "", "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "computeId": "/subscriptions/{subscription-id}/resourceGroups/{devtestlab-name}-{virtualmachine-name}-{random-suffix}/providers/Microsoft.Compute/virtualMachines/{virtualmachine-name}", + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", "osType": "Linux", "size": "Standard_A2_v2", - "userName": "{user-name}", - "labSubnetName": "{virtualnetwork-name}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "userName": "{userName}", + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "artifactDeploymentStatus": { "artifactsApplied": 0, @@ -40,14 +40,14 @@ "virtualMachineCreationSource": "FromGalleryImage", "dataDiskParameters": [], "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualmachines/{virtualmachine-name}", - "name": "{virtualmachine-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "name": "{vmName}", "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } ] diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json new file mode 100644 index 000000000000..dc5587c5e036 --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}" + }, + "responses": { + "200": { + "body": { + "properties": { + "labVmsShutdown": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsShutdownTask", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1700" + }, + "dailyRecurrence": { + "time": "1900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2020-12-29T21:48:14.1369355+00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", + "provisioningState": "Succeeded", + "uniqueIdentifier": "4acf0408-1c10-49cb-96b7-28ce655c8320" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoShutdownSchedule", + "name": "LabVmsShutdown", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "location": "{location}" + }, + "labVmsStartup": { + "properties": { + "status": "Enabled", + "taskType": "LabVmsStartupTask", + "weeklyRecurrence": { + "weekdays": [ + "Friday", + "Saturday", + "Sunday" + ], + "time": "1000" + }, + "dailyRecurrence": { + "time": "0900" + }, + "hourlyRecurrence": { + "minute": 30 + }, + "timeZoneId": "Pacific Standard Time", + "notificationSettings": { + "status": "Enabled", + "timeInMinutes": 30, + "webhookUrl": "{webhookUrl}", + "emailRecipient": "{email}", + "notificationLocale": "EN" + }, + "createdDate": "2020-12-29T21:46:37.0473976+00:00", + "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{vmName}", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/myAutoStartSchedule", + "name": "LabVmAutoStart", + "type": "Microsoft.DevTestLab/labs/virtualMachines/schedules", + "location": "{location}" + } + } + } + } + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json index a8bfaf2ad517..c89c47c9a98c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", "monitor": "true" }, "responses": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json index 754ec9a5df56..d3df73279f50 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", "monitor": "true", "resizeLabVirtualMachineProperties": { "size": "Standard_A4_v2" diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json index a8bfaf2ad517..c89c47c9a98c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", "monitor": "true" }, "responses": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json index a8bfaf2ad517..c89c47c9a98c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", "monitor": "true" }, "responses": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json index 3f7db707c177..0cef32cf7ca9 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json new file mode 100644 index 000000000000..7ab22eeeb7fa --- /dev/null +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualmachineName}" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json index a8bfaf2ad517..c89c47c9a98c 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", "monitor": "true" }, "responses": { diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json index 95044b8fe14d..fdf8f531b30a 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json @@ -1,15 +1,11 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualmachine-name}", "api-version": "2018-09-15", - "labVirtualMachine": { - "properties": { - "notes": "Updated notes" - } - } + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{vmName}", + "labVirtualMachine": {} }, "responses": { "200": { @@ -20,12 +16,12 @@ "createdByUserId": "", "createdByUser": "", "createdDate": "2018-10-01T16:53:02.4830866-07:00", - "computeId": "/subscriptions/{subscription-id}/resourceGroups/{devtestlab-name}-{virtualmachine-name}-{random-suffix}/providers/Microsoft.Compute/virtualMachines/{virtualmachine-name}", + "computeId": "/subscriptions/{subscriptionId}/resourceGroups/{labName}-{vmName}-{randomSuffix}/providers/Microsoft.Compute/virtualMachines/{vmName}", "osType": "Linux", "size": "Standard_A2_v2", - "userName": "{user-name}", - "labSubnetName": "{virtualnetwork-name}Subnet", - "labVirtualNetworkId": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", + "userName": "{userName}", + "labSubnetName": "{virtualNetworkName}Subnet", + "labVirtualNetworkId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", "disallowPublicIpAddress": true, "artifactDeploymentStatus": { "artifactsApplied": 0, @@ -44,14 +40,14 @@ "virtualMachineCreationSource": "FromGalleryImage", "dataDiskParameters": [], "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualmachines/{virtualmachine-name}", - "name": "{virtualmachine-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}", + "name": "{vmName}", "type": "Microsoft.DevTestLab/labs/virtualMachines", - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json index 955e99998a32..8430de043975 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json @@ -1,14 +1,14 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualnetwork-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualNetworkName}", "virtualNetwork": { - "location": "{azure-location}", + "location": "{location}", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, @@ -18,13 +18,13 @@ "properties": { "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Creating", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", - "name": "{virtualnetwork-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "name": "{virtualNetworkName}", "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }, @@ -33,13 +33,13 @@ "properties": { "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Creating", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", - "name": "{virtualnetwork-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "name": "{virtualNetworkName}", "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json index 81e4b24e8741..34e8dea51a36 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualnetwork-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualNetworkName}" }, "responses": { "200": {}, diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json index 7bb69f3e991b..b32f9e475555 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json @@ -1,10 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualnetwork-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualNetworkName}" }, "responses": { "200": { @@ -12,16 +12,16 @@ "properties": { "allowedSubnets": [ { - "resourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}/subnets/{virtualnetwork-name}Subnet", - "labSubnetName": "{virtualnetwork-name}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "labSubnetName": "{virtualNetworkName}Subnet", "allowPublicIp": "Allow" } ], - "externalProviderResourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}", + "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", "subnetOverrides": [ { - "resourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}/subnets/{virtualnetwork-name}Subnet", - "labSubnetName": "{virtualnetwork-name}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "labSubnetName": "{virtualNetworkName}Subnet", "useInVmCreationPermission": "Allow", "usePublicIpAddressPermission": "Allow", "sharedPublicIpAddressConfiguration": { @@ -40,13 +40,13 @@ ], "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", - "name": "{virtualnetwork-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "name": "{virtualNetworkName}", "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json index 19766581ea17..f4ef4126dea3 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json @@ -1,9 +1,9 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "api-version": "2018-09-15" + "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}" }, "responses": { "200": { @@ -13,16 +13,16 @@ "properties": { "allowedSubnets": [ { - "resourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}/subnets/{virtualnetwork-name}Subnet", - "labSubnetName": "{virtualnetwork-name}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "labSubnetName": "{virtualNetworkName}Subnet", "allowPublicIp": "Allow" } ], - "externalProviderResourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}", + "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", "subnetOverrides": [ { - "resourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}/subnets/{virtualnetwork-name}Subnet", - "labSubnetName": "{virtualnetwork-name}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "labSubnetName": "{virtualNetworkName}Subnet", "useInVmCreationPermission": "Allow", "usePublicIpAddressPermission": "Allow", "sharedPublicIpAddressConfiguration": { @@ -41,13 +41,13 @@ ], "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", - "name": "{virtualnetwork-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "name": "{virtualNetworkName}", "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } ] diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json index a151c1d18e16..90c3b01a3f51 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json @@ -1,31 +1,13 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "labName": "{devtestlab-name}", - "name": "{virtualnetwork-name}", "api-version": "2018-09-15", + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "resourceGroupName", + "labName": "{labName}", + "name": "{virtualNetworkName}", "virtualNetwork": { - "properties": { - "subnetOverrides": [ - { - "resourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}/subnets/{virtualnetwork-name}Subnet", - "useInVmCreationPermission": "Allow", - "usePublicIpAddressPermission": "Deny", - "sharedPublicIpAddressConfiguration": { - "allowedPorts": [ - { - "transportProtocol": "Tcp", - "backendPort": 3389 - }, - { - "transportProtocol": "Tcp", - "backendPort": 22 - } - ] - } - } - ] + "tags": { + "tagName1": "tagValue1" } } }, @@ -33,11 +15,11 @@ "200": { "body": { "properties": { - "externalProviderResourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}", + "externalProviderResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", "subnetOverrides": [ { - "resourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{virtualnetwork-name}/subnets/{virtualnetwork-name}Subnet", - "labSubnetName": "{virtualnetwork-name}Subnet", + "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet", + "labSubnetName": "{virtualNetworkName}Subnet", "useInVmCreationPermission": "Allow", "usePublicIpAddressPermission": "Allow", "sharedPublicIpAddressConfiguration": { @@ -56,13 +38,13 @@ ], "createdDate": "2018-10-01T13:01:44.6005134-07:00", "provisioningState": "Succeeded", - "uniqueIdentifier": "{unique-identifier}" + "uniqueIdentifier": "{uniqueIdentifier}" }, - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/{devtestlab-name}/virtualnetworks/{virtualnetwork-name}", - "name": "{virtualnetwork-name}", + "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualnetworks/{virtualNetworkName}", + "name": "{virtualNetworkName}", "type": "Microsoft.DevTestLab/labs/virtualNetworks", "tags": { - "MyTag": "MyValue" + "tagName1": "tagValue1" } } }