Skip to content

Commit

Permalink
Update VmssVMExtension to use SubResource (#10745)
Browse files Browse the repository at this point in the history
* change to sub resource.

List to include VmssVm extension

* remove location from example

* add name and type

* make name readonly

* remove location

Co-authored-by: Sachin Doddaiah Shylaja <sadoddai@microsoft.com>
  • Loading branch information
sds6 and Sachin Doddaiah Shylaja authored Oct 28, 2020
1 parent f8440e9 commit c196ef0
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5181,7 +5181,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
},
"description": "Parameters supplied to the Create Virtual Machine Extension operation."
},
Expand All @@ -5196,13 +5196,13 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
}
},
"default": {
Expand Down Expand Up @@ -5259,7 +5259,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/VirtualMachineExtensionUpdate"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtensionUpdate"
},
"description": "Parameters supplied to the Update Virtual Machine Extension operation."
},
Expand All @@ -5274,7 +5274,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
}
},
"default": {
Expand Down Expand Up @@ -5410,7 +5410,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
}
},
"default": {
Expand Down Expand Up @@ -5474,7 +5474,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtensionsListResult"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtensionsListResult"
}
},
"default": {
Expand Down Expand Up @@ -7340,6 +7340,30 @@
],
"description": "Describes a Virtual Machine Extension."
},
"VirtualMachineScaleSetVMExtension": {
"properties": {
"name": {
"readOnly": true,
"type": "string",
"description": "The name of the extension."
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/VirtualMachineExtensionProperties"
}
},
"allOf": [
{
"$ref": "#/definitions/SubResourceReadOnly"
}
],
"description": "Describes a VMSS VM Extension."
},
"VirtualMachineExtensionUpdate": {
"properties": {
"properties": {
Expand All @@ -7354,6 +7378,30 @@
],
"description": "Describes a Virtual Machine Extension."
},
"VirtualMachineScaleSetVMExtensionUpdate": {
"properties": {
"name": {
"readOnly": true,
"type": "string",
"description": "The name of the extension."
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/VirtualMachineExtensionUpdateProperties"
}
},
"allOf": [
{
"$ref": "#/definitions/SubResourceReadOnly"
}
],
"description": "Describes a VMSS VM Extension."
},
"VirtualMachineExtensionsListResult": {
"properties": {
"value": {
Expand All @@ -7366,6 +7414,18 @@
},
"description": "The List Extension operation response"
},
"VirtualMachineScaleSetVMExtensionsListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
},
"description": "The list of VMSS VM extensions"
}
},
"description": "The List VMSS VM Extension operation response"
},
"VirtualMachineSoftwarePatchProperties": {
"properties": {
"patchId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"vmExtensionName": "myVMExtension",
"api-version": "2020-06-01",
"extensionParameters": {
"location": "westus",
"properties": {
"autoUpgradeMinorVersion": true,
"publisher": "extPublisher",
Expand All @@ -23,7 +22,6 @@
"201": {
"body": {
"name": "myVMExtension",
"location": "westus",
"type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions",
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/extensions/myVMExtension",
"properties": {
Expand All @@ -41,7 +39,6 @@
"200": {
"body": {
"name": "myVMExtension",
"location": "westus",
"type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions",
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/extensions/myVMExtension",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
}
},
"name": "myVMExtension",
"location": "westus",
"type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions",
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/extensions/myVMExtension"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}
},
"name": "myVMExtension",
"location": "westus",
"type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions",
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/extensions/myVMExtension"
},
Expand All @@ -38,7 +37,6 @@
}
},
"name": "myVMExtension1",
"location": "westus",
"type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions",
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/extensions/myVMExtension1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"200": {
"body": {
"name": "myVMExtension",
"location": "westus",
"type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions",
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/extensions/myVMExtension",
"properties": {
Expand Down

0 comments on commit c196ef0

Please sign in to comment.