-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Stack-hci] Upgrade api-version to 2022-05-01
#5132
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,97 @@ | ||
| # Azure CLI stack-hci Extension # | ||
| This package is for the 'stack-hci' extension, i.e. 'az stack-hci' | ||
| This is the extension for stack-hci | ||
|
|
||
| ### How to use ### | ||
| Install this extension using the below CLI command | ||
| ``` | ||
| az extension add --name stack-hci | ||
| ``` | ||
|
|
||
| ### Included Features | ||
| #### Stack HCI Management: | ||
| Manage Stack HCI: [more info](https://docs.microsoft.com/en-us/azure-stack/hci/) \ | ||
| *Examples:* | ||
|
|
||
| ##### Create an HCI cluster | ||
| ### Included Features ### | ||
| #### stack-hci arc-setting #### | ||
| ##### Create ##### | ||
| ``` | ||
| az stack-hci cluster create \ | ||
| --location "East US" \ | ||
| --aad-client-id "24a6e53d-04e5-44d2-b7cc-1b732a847dfc" \ | ||
| --aad-tenant-id "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94" \ | ||
| --name "myCluster" \ | ||
| --resource-group "test-rg" | ||
| az stack-hci arc-setting create --name "default" --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
|
|
||
| ##### Delete an HCI cluster | ||
| ##### Show ##### | ||
| ``` | ||
| az stack-hci cluster delete --name "myCluster" --resource-group "test-rg" | ||
| az stack-hci arc-setting show --name "default" --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
|
|
||
| ##### List the HCI clusters | ||
| ##### List ##### | ||
| ``` | ||
| az stack-hci arc-setting list --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| ##### Update ##### | ||
| ``` | ||
| az stack-hci arc-setting update --connectivity-properties "{\\"enabled\\":true}" --name "default" \ | ||
| --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| ##### Create-identity ##### | ||
| ``` | ||
| az stack-hci arc-setting create-identity --name "default" --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| ##### Generate-password ##### | ||
| ``` | ||
| az stack-hci arc-setting generate-password --name "default" --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| ##### Delete ##### | ||
| ``` | ||
| az stack-hci arc-setting delete --name "default" --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| az stack-hci cluster list | ||
| #### stack-hci cluster #### | ||
| ##### Create ##### | ||
| ``` | ||
| az stack-hci cluster create --location "East US" --aad-client-id "24a6e53d-04e5-44d2-b7cc-1b732a847dfc" \ | ||
| --aad-tenant-id "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94" \ | ||
| --endpoint "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com" --name "myCluster" \ | ||
| --resource-group "test-rg" | ||
| ``` | ||
| ##### Show ##### | ||
| ``` | ||
| az stack-hci cluster show --name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| ##### List ##### | ||
| ``` | ||
| az stack-hci cluster list --resource-group "test-rg" | ||
| ``` | ||
| ##### Update ##### | ||
| ``` | ||
| az stack-hci cluster update --endpoint "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com" \ | ||
| --desired-properties diagnostic-level="Basic" windows-server-subscription="Enabled" \ | ||
| --tags tag1="value1" tag2="value2" --name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| ##### Create-identity ##### | ||
| ``` | ||
| az stack-hci cluster list --subscription "test-sub" | ||
| az stack-hci cluster create-identity --name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
|
|
||
| ##### Get details about the specified HCI cluster | ||
| ##### Delete ##### | ||
| ``` | ||
| az stack-hci cluster show --name "myCluster" --resource-group "test-rg" | ||
| az stack-hci cluster delete --name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
| #### stack-hci extension #### | ||
| ##### Create ##### | ||
| ``` | ||
| az 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" | ||
|
|
||
| ##### Update an HCI cluster | ||
| az stack-hci extension wait --created --arc-setting-name "{myArcSetting}" --cluster-name "{myCluster}" \ | ||
| --name "{myExtension}" --resource-group "{rg}" | ||
| ``` | ||
| ##### Show ##### | ||
| ``` | ||
| az stack-hci cluster update --tags tag1="value1" tag2="value2" --name "myCluster" --resource-group "test-rg" | ||
| az stack-hci extension show --arc-setting-name "default" --cluster-name "myCluster" --name "MicrosoftMonitoringAgent" \ | ||
| --resource-group "test-rg" | ||
| ``` | ||
| ##### List ##### | ||
| ``` | ||
| az stack-hci extension list --arc-setting-name "default" --cluster-name "myCluster" --resource-group "test-rg" | ||
| ``` | ||
|
|
||
| If you have issues, please give feedback by opening an issue at https://github.com/Azure/azure-cli-extensions/issues. | ||
| ##### Delete ##### | ||
| ``` | ||
| az stack-hci extension delete --arc-setting-name "default" --cluster-name "myCluster" \ | ||
| --name "MicrosoftMonitoringAgent" --resource-group "test-rg" | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.