Skip to content

Commit

Permalink
Merge pull request #3350 from pulumi/AaronFriel-patch-1
Browse files Browse the repository at this point in the history
Fix Azure Native version guide for v2
  • Loading branch information
AaronFriel authored Oct 18, 2023
2 parents 79debc5 + 6a67747 commit 0b4c75d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,30 @@ Occasionally, Microsoft ships breaking changes. For example, they may rename a m

Every Azure API endpoint defines a set of API versions that it accepts. API versions are based on a date, for instance, `2020-03-01` or `2019-05-15-preview`. Breaking changes may occur between API versions. API versions are defined per Azure resource provider and are published frequently (almost every week).

The native Azure provider maps every published API version of every Azure resource provider and represents it 1:1 as a separate module. For example, the `Vault` resource of the `KeyVault` resource provider of version `2019-09-01` is published as the Pulumi resource `azure-native:keyvault/v20190901:Vault`. You can import this resource with the following statement:
The native Azure provider maps every published API version of every Azure resource provider and represents it 1:1 as a separate module. For example, the `Vault` resource of the `KeyVault` resource provider of version `2023-02-01` is published as the Pulumi resource `azure-native:keyvault/v20230201:Vault`. You can import this resource with the following statement:

{{< chooser language "typescript,python,csharp,go,java,yaml" >}}

{{% choosable language typescript %}}

```typescript
import Vault from "@pulumi/azure-native/keyvault/v20190901";
import Vault from "@pulumi/azure-native/keyvault/v20230201";
```

{{% /choosable %}}

{{% choosable language python %}}

```python
from pulumi_azure_native.keyvault.v20190901 import Vault
from pulumi_azure_native.keyvault.v20230201 import Vault
```

{{% /choosable %}}

{{% choosable language csharp %}}

```csharp
using Pulumi.AzureNative.KeyVault.V20190901;
using Pulumi.AzureNative.KeyVault.V20230201;

new Vault(/*...*/);
```
Expand All @@ -63,7 +63,7 @@ new Vault(/*...*/);

```go
import (
keyvault "github.com/pulumi/pulumi-azure-native/sdk/go/azure/keyvault/v20190901"
keyvault "github.com/pulumi/pulumi-azure-native-sdk/keyvault/v2/v20230201"
)

// ...
Expand Down Expand Up @@ -134,7 +134,7 @@ new Vault(/*...*/);

```go
import (
"github.com/pulumi/pulumi-azure-native/sdk/go/azure/keyvault"
"github.com/pulumi/pulumi-azure-native-sdk/keyvault/v2"
)

// ...
Expand Down

0 comments on commit 0b4c75d

Please sign in to comment.