Перейти к файлу
David Smith b79c2c0545
Merge pull request #13 from Azure/smithdavi/fix-set-actual-min-version
Set *actual* minimum cli version
2024-01-29 17:53:49 -08:00
azext_baremetalinfrastructure fix 2024-01-30 00:46:39 +00:00
.gitignore Initial commit 2020-09-03 13:42:12 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-09-10 14:55:58 -07:00
HISTORY.rst Build with latest CLI 2024-01-29 23:26:34 +00:00
LICENSE Updating LICENSE to template content 2020-09-10 14:56:00 -07:00
README.md [In progress] Regenerating code based on swagger changes. 2023-10-19 14:56:25 -07:00
README.rst addressing April's comments 2020-09-11 15:46:30 -07:00
SECURITY.md Initial SECURITY.md commit 2020-09-10 14:56:03 -07:00
setup.cfg there is a bug in getting the command to load, but this is most of the framework 2020-09-10 14:58:36 -07:00
setup.py Build with latest CLI 2024-01-29 23:26:34 +00:00

README.md

azure-baremetalinfrastructure-cli-extension

Install

To install this extension just use the CLI extension add command:

az extension add --name baremetal-infrastructure

Usage

To list all BareMetal instances for the subscription:

az baremetalinstance list

To show details about a specific BareMetal instance:

az baremetalinstance show --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME

To add a key-value pair to the Tags field of a specific BareMetal instance:

az baremetalinstance update --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME --set tags.newKey=value

To update a key-value pair in the Tags field of a specific BareMetal instance:

az baremetalinstance update --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME --set tags.key=updatedValue

To delete a key-value pair from the Tags field of a specific BareMetal instance:

az baremetalinstance update --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME --remove tags.key

To delete all key-value pairs in the Tags field of a specific BareMetal instance:

az baremetalinstance update --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME --set tags={}

To delete a BareMetal instance:

az baremetalinstance delete --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME

To start a specific BareMetal instance:

az baremetalinstance start --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME

To restart a specific BareMetal instance:

az baremetalinstance restart --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME

To force restart a specific BareMetal instance:

az baremetalinstance restart --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME --force

To shutdown a specific BareMetal instance:

az baremetalinstance shutdown --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.