Skip to content

Commit

Permalink
Adding new API Verison for AzureLargeInstance 2024-08-01-preview (#7926)
Browse files Browse the repository at this point in the history
* Generated new methods and updated readme

* Updated version and corrected readme examples

* Updated ppg argument

---------

Co-authored-by: Ashwin Jeyaseelan <[email protected]>
  • Loading branch information
8Gitbrix and Ashwin Jeyaseelan authored Aug 30, 2024
1 parent 1dc8537 commit db0301d
Show file tree
Hide file tree
Showing 22 changed files with 2,051 additions and 357 deletions.
4 changes: 4 additions & 0 deletions src/azurelargeinstance/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release History
===============
'1.0.0b3'
++++++
* Add support for hydration PUT method and delete for compute and storage resources in new 2024-08-01-preview api version.

1.0.0b2
++++++
* Release the first public api version for AzureLargeInstance 2024-04-10, which is the public version of 2023-07-20-preview api.
Expand Down
26 changes: 26 additions & 0 deletions src/azurelargeinstance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ This is an extension to Azure CLI to manage Azure Large Instance resources.
2. Install the extension by running `az extension add -n azurelargeinstance`

## Usage Examples:
### Compute Operations
To create an Azure Large Instance

```bash
az large-instance create -g $RESOURCE_GROUP -n $NAME --location westus2 --ali-id $UNIQUE_MACHINE_ID --hardware-profile "{hardware-type:Cisco_UCS,azure-large-instance-size:S72}" --storage-profile "{nfs-ip-address:00.000.000.00,os-disks:[{name:t250_sles_boot_vol,diskSizeGB:50}]}" --network-profile "{circuit-id:none,network-interfaces:[{ipAddress:10.0.61.31}]}" --os-profile "{computer-name:test,osType:'SLES 12 SP5',version:'12 SP5'}"
```

To delete an Azure Large Instance
```bash
az large-instance delete -g $RESOURCE_GROUP -n $NAME
```


To list Azure Large Instances in a subscription

`az large-instance list --subscription $SUBSCRIPTION_ID`
Expand Down Expand Up @@ -34,6 +47,19 @@ To add an Azure Large Instance tag

`az large-instance update --subscription $SUBSCRIPTION_ID --instance-name=$INSTANCE_NAME --resource-group=$RESOURCE_GROUP --tags newKey=value`

### Storage Operations
To create an Azure Large Storage Instance

```bash
az large-storage-instance create -g $RESOURCE_GROUP -n $INSTANCE_NAME -l westus2 --alsi-id $UNIQUE_MACHINE_ID --storage-properties "{offering-type:EPIC,storage-type:FC,generation:Gen4.5,hardware-type:NetApp,workload-type:ODB,storage-billing-properties:{billing-mode:PAYG,sku:n10}}"
```

To delete an Azure Large Storage Instance

```bash
az large-storage-instance delete -g $RESOURCE_GROUP -n $INSTANCE_NAME
```

To list Azure Large Storage Instances in a subscription

`az large-storage-instance list --subscription $SUBSCRIPTION_ID`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._restart import *
from ._show import *
Expand Down
Loading

0 comments on commit db0301d

Please sign in to comment.