Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VmssVMExtension to use SubResource #10745

Merged
merged 5 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5174,7 +5174,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
},
"description": "Parameters supplied to the Create Virtual Machine Extension operation."
},
Expand All @@ -5189,13 +5189,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 @@ -5252,7 +5252,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/VirtualMachineExtensionUpdate"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtensionUpdate"
},
"description": "Parameters supplied to the Update Virtual Machine Extension operation."
},
Expand All @@ -5267,7 +5267,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
}
},
"default": {
Expand Down Expand Up @@ -5403,7 +5403,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtension"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtension"
}
},
"default": {
Expand Down Expand Up @@ -5467,7 +5467,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VirtualMachineExtensionsListResult"
"$ref": "#/definitions/VirtualMachineScaleSetVMExtensionsListResult"
}
},
"default": {
Expand Down Expand Up @@ -7335,6 +7335,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 @@ -7349,6 +7373,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."
sds6 marked this conversation as resolved.
Show resolved Hide resolved
},
"VirtualMachineExtensionsListResult": {
"properties": {
"value": {
Expand All @@ -7361,6 +7409,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