You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure CLI is used to create and manage Azure resources from the command line or in scripts. This quickstart shows you how to use the Azure CLI to deploy a Compute Fleet resource.
15
+
This article steps through using the Azure CLI to create and deploy a Compute Fleet resource
16
16
17
+
Make sure that you've installed the latest [Azure CLI](/cli/azure/install-az-cli2) and are logged in to an Azure account with [az login](/cli/azure/reference-index).
18
+
19
+
## Launch Azure Cloud Shell
20
+
21
+
The Azure Cloud Shell is a free interactive shell that you can use to run the steps in this article. It has common Azure tools preinstalled and configured to use with your account.
22
+
23
+
To open the Cloud Shell, select **Open Cloud Shell** from the upper right corner of a code block. You can also launch Cloud Shell in a separate browser tab by going to [https://shell.azure.com/cli](https://shell.azure.com/cli). Select **Copy** to copy the blocks of code, paste it into the Cloud Shell, and press enter to run it.
17
24
18
25
## Prerequisites
19
26
20
27
- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
21
28
- Before using Compute Fleet, complete the feature registration and configure role-based access controls (RBAC).
22
29
23
-
24
-
### Feature registration
30
+
## Feature registration
25
31
26
32
Register the Azure Compute Fleet resource provider with your subscription using Azure CLI. Registration can take up to 30 minutes to successfully show as registered.
27
33
28
34
```bash
29
35
az provider register --namespace 'Microsoft.AzureFleet'
A resource group is a logical container into which Azure resources are deployed and managed. All resources must be placed in a resource group. The following command creates a resource group with the previously defined `$MY_RESOURCE_GROUP_NAME` and `$REGION` parameters.
47
58
48
59
```bash
49
60
az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION
50
61
```
51
62
52
-
### Create virtual network and subnet
63
+
## Create virtual network and subnet
64
+
65
+
Now you'll create a virtual network using the previously defined `$MY_VNET_PREFIX`, `$MY_VM_SN_NAME`, and `$MY_VM_SN_PREFIX` parameters.
Set up a password that meets the [password requirements for Azure VMs](https://learn.microsoft.com/azure/virtual-machines/windows/faq#what-are-the-password-requirements-when-creating-a-vm-).
71
84
72
85
```bash
73
86
export ADMIN_PASSWORD="Azure compliant password"
74
87
```
75
88
76
-
###Create Compute Fleet
89
+
## Create a Compute Fleet
77
90
78
91
Set up the compute profile which is applied to the underlying VMs.
To avoid Azure charges, you should clean up unneeded resources. When you no longer need your Compute Fleet and other resources, delete the resource group and all its resources with [az group delete](/cli/azure/group). The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without another prompt to do so.
108
+
109
+
## Next steps
110
+
> [!div class="nextstepaction"]
111
+
> [Learn how to modify a Compute Fleet.](modify-fleet.md)
0 commit comments