Skip to content
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
2 changes: 1 addition & 1 deletion Commands/stack-hci/extension/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Create extension for HCI cluster.

- Create arc extension
```bash
stack-hci extension create --arc-setting-name "default" --cluster-name "myCluster" --type "MicrosoftMonitoringAgent" --protected-settings "{workspaceKey:xx}" --publisher "Microsoft.Compute" --settings "{workspaceId:xx}" --type-handler-version "1.10" --name "MicrosoftMonitoringAgent" --resource-group "test-rg"
stack-hci extension create --arc-setting-name "default" --cluster-name "myCluster" --type "MicrosoftMonitoringAgent" --protected-settings '{"workspaceId": "xx", "port": "6516"}' --publisher "Microsoft.Compute" --settings '{"workspaceKey": "xx"}' --type-handler-version "1.10" --name "MicrosoftMonitoringAgent" --resource-group "test-rg"
```
2 changes: 1 addition & 1 deletion Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -102410,7 +102410,7 @@
"examples": [
{
"commands": [
"stack-hci extension create --arc-setting-name \"default\" --cluster-name \"myCluster\" --type \"MicrosoftMonitoringAgent\" --protected-settings \"{workspaceKey:xx}\" --publisher \"Microsoft.Compute\" --settings \"{workspaceId:xx}\" --type-handler-version \"1.10\" --name \"MicrosoftMonitoringAgent\" --resource-group \"test-rg\""
"stack-hci extension create --arc-setting-name \"default\" --cluster-name \"myCluster\" --type \"MicrosoftMonitoringAgent\" --protected-settings '{\"workspaceId\": \"xx\", \"port\": \"6516\"}' --publisher \"Microsoft.Compute\" --settings '{\"workspaceKey\": \"xx\"}' --type-handler-version \"1.10\" --name \"MicrosoftMonitoringAgent\" --resource-group \"test-rg\""
],
"name": "Create arc extension"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/arcsettings/{}/extensions", "version": "2023-03-01", "swagger": "mgmt-plane/azurestackhci/ResourceProviders/Microsoft.AzureStackHCI/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXp1cmVTdGFja0hDSS9jbHVzdGVycy97Y2x1c3Rlck5hbWV9L2FyY1NldHRpbmdzL3thcmNTZXR0aW5nTmFtZX0vZXh0ZW5zaW9ucw==/V/MjAyMy0wMy0wMQ=="}], "commandGroups": [{"name": "stack-hci extension", "commands": [{"name": "list", "version": "2023-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/arcsettings/{}/extensions", "version": "2023-03-01", "swagger": "mgmt-plane/azurestackhci/ResourceProviders/Microsoft.AzureStackHCI/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXp1cmVTdGFja0hDSS9jbHVzdGVycy97Y2x1c3Rlck5hbWV9L2FyY1NldHRpbmdzL3thcmNTZXR0aW5nTmFtZX0vZXh0ZW5zaW9ucw==/V/MjAyMy0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.arcSettingName", "options": ["arc-setting-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the proxy resource holding details of HCI ArcSetting information."}}, {"type": "string", "var": "$Path.clusterName", "options": ["cluster-name"], "required": true, "idPart": "name", "help": {"short": "The name of the cluster."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "Extensions_ListByArcSetting", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "arcSettingName", "arg": "$Path.arcSettingName", "required": true}, {"type": "string", "name": "clusterName", "arg": "$Path.clusterName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-03-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AzureStackHCI/clusters/{}/arcSettings/{}/extensions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "aggregateState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Connected"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Disconnected"}, {"value": "Error"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Moving"}, {"value": "NotSpecified"}, {"value": "PartiallyConnected"}, {"value": "PartiallySucceeded"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}, {"value": "UpgradeFailedRollbackSucceeded"}]}}, {"type": "object", "name": "extensionParameters", "props": [{"type": "boolean", "name": "autoUpgradeMinorVersion"}, {"type": "boolean", "name": "enableAutomaticUpgrade"}, {"type": "string", "name": "forceUpdateTag"}, {"type": "object", "name": "protectedSettings", "secret": true, "props": [{"type": "string", "name": "workspaceKey"}]}, {"type": "string", "name": "publisher"}, {"type": "object", "name": "settings", "props": [{"type": "string", "name": "workspaceId"}]}, {"type": "string", "name": "type"}, {"type": "string", "name": "typeHandlerVersion"}]}, {"readOnly": true, "type": "string", "name": "managedBy", "enum": {"items": [{"value": "Azure"}, {"value": "User"}]}}, {"readOnly": true, "type": "array<object>", "name": "perNodeExtensionDetails", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "extension"}, {"type": "object", "name": "instanceView", "props": [{"type": "string", "name": "name"}, {"type": "object", "name": "status", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time"}]}, {"type": "string", "name": "type"}, {"type": "string", "name": "typeHandlerVersion"}]}, {"readOnly": true, "type": "string", "name": "name"}, {"readOnly": true, "type": "string", "name": "state", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Connected"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Disconnected"}, {"value": "Error"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Moving"}, {"value": "NotSpecified"}, {"value": "PartiallyConnected"}, {"value": "PartiallySucceeded"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "string", "name": "typeHandlerVersion"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Connected"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Disconnected"}, {"value": "Error"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Moving"}, {"value": "NotSpecified"}, {"value": "PartiallyConnected"}, {"value": "PartiallySucceeded"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/arcsettings/{}/extensions", "version": "2023-03-01", "swagger": "mgmt-plane/azurestackhci/ResourceProviders/Microsoft.AzureStackHCI/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXp1cmVTdGFja0hDSS9jbHVzdGVycy97Y2x1c3Rlck5hbWV9L2FyY1NldHRpbmdzL3thcmNTZXR0aW5nTmFtZX0vZXh0ZW5zaW9ucw==/V/MjAyMy0wMy0wMQ=="}], "commandGroups": [{"name": "stack-hci extension", "commands": [{"name": "list", "version": "2023-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/arcsettings/{}/extensions", "version": "2023-03-01", "swagger": "mgmt-plane/azurestackhci/ResourceProviders/Microsoft.AzureStackHCI/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXp1cmVTdGFja0hDSS9jbHVzdGVycy97Y2x1c3Rlck5hbWV9L2FyY1NldHRpbmdzL3thcmNTZXR0aW5nTmFtZX0vZXh0ZW5zaW9ucw==/V/MjAyMy0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.arcSettingName", "options": ["arc-setting-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the proxy resource holding details of HCI ArcSetting information."}}, {"type": "string", "var": "$Path.clusterName", "options": ["cluster-name"], "required": true, "idPart": "name", "help": {"short": "The name of the cluster."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "Extensions_ListByArcSetting", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "arcSettingName", "arg": "$Path.arcSettingName", "required": true}, {"type": "string", "name": "clusterName", "arg": "$Path.clusterName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-03-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AzureStackHCI/clusters/{}/arcSettings/{}/extensions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "aggregateState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Connected"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Disconnected"}, {"value": "Error"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Moving"}, {"value": "NotSpecified"}, {"value": "PartiallyConnected"}, {"value": "PartiallySucceeded"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}, {"value": "UpgradeFailedRollbackSucceeded"}]}}, {"type": "object", "name": "extensionParameters", "props": [{"type": "boolean", "name": "autoUpgradeMinorVersion"}, {"type": "boolean", "name": "enableAutomaticUpgrade"}, {"type": "string", "name": "forceUpdateTag"}, {"type": "object", "name": "protectedSettings", "secret": true, "additionalProps": {"anyType": true}}, {"type": "string", "name": "publisher"}, {"type": "object", "name": "settings", "additionalProps": {"anyType": true}}, {"type": "string", "name": "type"}, {"type": "string", "name": "typeHandlerVersion"}]}, {"readOnly": true, "type": "string", "name": "managedBy", "enum": {"items": [{"value": "Azure"}, {"value": "User"}]}}, {"readOnly": true, "type": "array<object>", "name": "perNodeExtensionDetails", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "extension"}, {"type": "object", "name": "instanceView", "props": [{"type": "string", "name": "name"}, {"type": "object", "name": "status", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time"}]}, {"type": "string", "name": "type"}, {"type": "string", "name": "typeHandlerVersion"}]}, {"readOnly": true, "type": "string", "name": "name"}, {"readOnly": true, "type": "string", "name": "state", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Connected"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Disconnected"}, {"value": "Error"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Moving"}, {"value": "NotSpecified"}, {"value": "PartiallyConnected"}, {"value": "PartiallySucceeded"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "string", "name": "typeHandlerVersion"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Connected"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Disconnected"}, {"value": "Error"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Moving"}, {"value": "NotSpecified"}, {"value": "PartiallyConnected"}, {"value": "PartiallySucceeded"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
<prop type="boolean" name="enableAutomaticUpgrade"/>
<prop type="string" name="forceUpdateTag"/>
<prop type="object" name="protectedSettings" secret="True">
<prop type="string" name="workspaceKey"/>
<additionalProp anyType="True"/>
</prop>
<prop type="string" name="publisher"/>
<prop type="object" name="settings">
<prop type="string" name="workspaceId"/>
<additionalProp anyType="True"/>
</prop>
<prop type="string" name="type"/>
<prop type="string" name="typeHandlerVersion"/>
Expand Down

Large diffs are not rendered by default.

Loading