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
* README.MD bug fixes
* Update sdk/cloudmachine/README.MD
Co-authored-by: Christopher Scott <[email protected]>
* Update sdk/cloudmachine/README.MD
Co-authored-by: Christopher Scott <[email protected]>
---------
Co-authored-by: Christopher Scott <[email protected]>
#### Use Azure Developer CLI to provision CloudMachine
34
34
35
-
Open Program.cs file and add the following two lines of code to the top of the file
35
+
Open `Program.cs` file and add the following two lines of code to the top of the file
36
36
```csharp
37
-
usingAzure.Provisioning.CloudMachine;
37
+
usingAzure.CloudMachine;
38
38
39
39
if (CloudMachineInfrastructure.Configure(args)) return;
40
40
```
41
-
The `CloudMachineInfrastructure.Configure` call allows running the app with `-bicep` switch, which generate bicep files required to provision resources in Azure. Let's generate these bicep files now.
41
+
The `CloudMachineInfrastructure.Configure` call allows running the app with a `-bicep` switch, which will generate bicep files required to provision CloudMachine resources in Azure. Let's generate these bicep files now.
42
42
```dotnetcli
43
43
dotnet run -bicep
44
44
```
45
-
As you can see, a folder called `infra` was created and it should have several bicep files in it. Let's now initialize the project for azd.
45
+
As you can see, a folder called `infra` was created with several bicep files in it. Let's now initialize the project.
46
46
```dotnetcli
47
47
azd init
48
48
```
@@ -56,26 +56,26 @@ When provisioning finishes, you should see something like the following in the c
And if you go to your Azure portal, or execute the following az cli command to see the resource group created. The resource group will have server resources such us Storage, ServiceBus, and EventGrid.
59
+
And if you go to your Azure portal, or execute the following az command, you can see the resource group created. The resource group will contain resources such as Storage, ServiceBus, and EventGrid.
60
60
```dotnetcli
61
61
az resource list --resource-group <resource_group_from_command_line> --output table
62
62
```
63
63
64
64
#### Use CDK to add resources to the CloudMachine
65
65
66
-
Since we are writing an AI application, we need to provision Azure OpenAI resources. To do this, add the follwoing class to the end of the Program.cs file:
66
+
Since we are writing an AI application, we need to provision Azure OpenAI resources. To do this, add the follwoing class to the end of the `Program.cs` file:
And change the Program.cs file to the following, replacing the client URI with the URI in your server's launchsettings.json file ('cmdemo\server\Properties' folder)
248
+
And change the `Program.cs` file to the following, replacing the client URI with the URI in your server's launchsettings.json file ('cmdemo\server\Properties' folder)
0 commit comments