bright-policeman-10775
08/21/2024, 4:08 AMadventurous-butcher-54166
08/21/2024, 9:20 AM2023-04-01
api is the one currently pinned as default for `pulumi-azure-native`'s machinelearningservices.Workspace but the 2024-01-01
version is also being generated.
See here how you can import a specific version in Python, TS, Go or C#:
https://gist.github.com/olafurnielsen/a25085a4d4b9d4d1c23b3ffd125b5f04
Unfortunately the provider documentation is only generated for the pinned version so sometimes you'll have to navigate to the reference of the library class to look up parameters and look at their docstring.bright-policeman-10775
08/21/2024, 1:53 PMbright-policeman-10775
08/21/2024, 7:46 PMThe type name 'v20240401' does not exist in the type 'Workspace'
bright-policeman-10775
08/21/2024, 7:46 PMadventurous-butcher-54166
08/21/2024, 7:47 PMadventurous-butcher-54166
08/21/2024, 7:48 PMbright-policeman-10775
08/21/2024, 7:48 PMusing System.Threading.Tasks;
using Pulumi;
using Pulumi.AzureNative.Resources;
using Pulumi.AzureNative.MachineLearningServices.Workspace.v20240401;
using Pulumi.AzureNative.MachineLearningServices.Inputs;
return await Pulumi.Deployment.RunAsync(() =>
{
var resourceGroup = new ResourceGroup("resourceGroup");
var workspace = new Workspace("exampleWorkspace", new WorkspaceArgs
{
ResourceGroupName = resourceGroup.Name,
Location = resourceGroup.Location,
Sku = new SkuArgs
{
Name = "Basic" // Modify as per your needs
},
Tags =
{
{ "environment", "test" }
},
});
});
bright-policeman-10775
08/21/2024, 7:48 PMbright-policeman-10775
08/21/2024, 7:48 PM<PackageReference Include="Pulumi" Version="3.*" />
<PackageReference Include="Pulumi.AzureNative" Version="2.*" />
bright-policeman-10775
08/21/2024, 7:49 PMbright-policeman-10775
08/21/2024, 7:51 PMadventurous-butcher-54166
08/21/2024, 7:53 PMbright-policeman-10775
08/21/2024, 7:54 PM.../quickstart/Program.cs(4,60): error CS0426: The type name 'V20240401' does not exist in the type 'Workspace' [.../quickstart/ai-model.csproj]
Build FAILED.
bright-policeman-10775
08/21/2024, 7:54 PMbright-policeman-10775
08/21/2024, 7:55 PMPulumi.AzureNative.MachineLearningServices.V20240401
bright-policeman-10775
08/21/2024, 7:56 PMadventurous-butcher-54166
08/21/2024, 7:56 PMusing Pulumi.AzureNative.MachineLearningServices.V20240401;
bright-policeman-10775
08/21/2024, 7:56 PMbright-policeman-10775
08/21/2024, 7:56 PMerror CS0029: Cannot implicitly convert type 'Pulumi.AzureNative.MachineLearningServices.Inputs.SkuArgs' to 'Pulumi.Input<Pulumi.AzureNative.MachineLearningServices.V20240401.Inputs.SkuArgs>'
bright-policeman-10775
08/21/2024, 7:57 PMadventurous-butcher-54166
08/21/2024, 7:57 PMusing Pulumi.AzureNative.MachineLearningServices.Inputs;
bright-policeman-10775
08/21/2024, 7:57 PMadventurous-butcher-54166
08/21/2024, 7:57 PM