To install this extension just use the CLI extension add command:
az extension add --source $LATEST_RELEASE
To create a new HANA instance:
az hanainstance create \
--location $LOCATION \
--resource-group $RESOURCE_GROUP \
--instance-name $HANA_INSTANCE_NAME \
--partner-node-id $PARTNER_NODE \
--ssh-public-key $SSH_PUBLIC_KEY \
--os-computer-name $COMPUTER_NAME \
--ip-address $IP_ADDRESS
To list all HANA instances for the subscription:
az hanainstance list
To show details about a specific HANA instance:
az hanainstance show --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME
To add a key-value pair to the Tags field of a specific HANA instance:
az hanainstance update --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME --set tags.newKey=value
To update a key-value pair in the Tags field of a specific HANA instance:
az hanainstance update --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME --set tags.key=updatedValue
To delete a key-value pair from the Tags field of a specific HANA instance:
az hanainstance update --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME --remove tags.key
To delete all key-value pairs in the Tags field of a specific HANA instance:
az hanainstance update --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME --set tags={}
To delete a HANA instance:
az hanainstance delete --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME
To start a specific HANA instance:
az hanainstance start --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME
To shutdown a specific HANA instance:
az hanainstance shutdown --resource-group $RESOURCE_GROUP --instance-name $HANA_INSTANCE_NAME
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.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., label, 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 [email protected] with any additional questions or comments.