ctaggart / az-vmware-cli

Azure VMware Solution Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure VMware Solution Extension

The Azure CLI extension for Azure VMware Solution is an extension for Azure CLI 2.0.

WARNING: Preview features are enabled at the Azure subscription level. Do not install preview features on production subscription as it can change default API behavior impacting regular operations.

Install

az extension add --name vmware

Take a look at the releases page if you wish to install a specific version. It can be installed with az extension add, for example:

az extension add -s https://github.com/Azure/az-vmware-cli/releases/download/0.7.2/vmware-0.7.2-py2.py3-none-any.whl -y

Usage

See the extension reference documenation.

az vmware --help
az vmware private-cloud list
az vmware private-cloud create -g $resourcegroup -n $privatecloudname --location $location --cluster-size 3 --network-block 10.175.0.0/22

See test_vmware_scenario.py for other examples.

Uninstall

You can see if the extension is installed by running az extension list. You can remove the extension by running az extension remove.

az extension remove --name vmware

Build

Update VERSION in setup.py.

pipenv shell
python setup.py bdist_wheel

AutoRest client code generation

The code in the azext_vmware/vendored_sdks subdirectory was generated using the AutoRest CLI. It is a Node app that bootstraps a dotnet app. It generates code from the a Swagger 2 spec. Here is how the code is generated:

docker run --rm -it -v ${PWD}:/src -v ${PWD}/../azure-rest-api-specs:/azure-rest-api-specs -w /src node:lts bash
./install-autorest.sh
./run-autorest.sh

About

Azure VMware Solution Extension

License:MIT License


Languages

Language:Python 99.6%Language:Shell 0.4%