Uses Azure REST API version 2020-06-01. In version 2.x of the Azure Native provider, it used API version 2020-06-01.
Example Usage
Creates or updates private link service resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var powerBIResource = new AzureNative.PowerBI.PowerBIResource("powerBIResource", new()
{
AzureResourceName = "azureResourceName",
Location = "global",
ResourceGroupName = "resourceGroup",
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
TenantId = "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f",
});
});
package main
import (
powerbi "github.com/pulumi/pulumi-azure-native-sdk/powerbi/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := powerbi.NewPowerBIResource(ctx, "powerBIResource", &powerbi.PowerBIResourceArgs{
AzureResourceName: pulumi.String("azureResourceName"),
Location: pulumi.String("global"),
ResourceGroupName: pulumi.String("resourceGroup"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
TenantId: pulumi.String("ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_powerbi_power_b_i_resource" "powerBIResource" {
lifecycle {
create_before_destroy = true
}
azure_resource_name = "azureResourceName"
location = "global"
resource_group_name = "resourceGroup"
tags = {
"tag1" = "value1"
"tag2" = "value2"
}
tenant_id = "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.powerbi.PowerBIResource;
import com.pulumi.azurenative.powerbi.PowerBIResourceArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var powerBIResource = new PowerBIResource("powerBIResource", PowerBIResourceArgs.builder()
.azureResourceName("azureResourceName")
.location("global")
.resourceGroupName("resourceGroup")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.tenantId("ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const powerBIResource = new azure_native.powerbi.PowerBIResource("powerBIResource", {
azureResourceName: "azureResourceName",
location: "global",
resourceGroupName: "resourceGroup",
tags: {
tag1: "value1",
tag2: "value2",
},
tenantId: "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f",
});
import pulumi
import pulumi_azure_native as azure_native
power_bi_resource = azure_native.powerbi.PowerBIResource("powerBIResource",
azure_resource_name="azureResourceName",
location="global",
resource_group_name="resourceGroup",
tags={
"tag1": "value1",
"tag2": "value2",
},
tenant_id="ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f")
resources:
powerBIResource:
type: azure-native:powerbi:PowerBIResource
properties:
azureResourceName: azureResourceName
location: global
resourceGroupName: resourceGroup
tags:
tag1: value1
tag2: value2
tenantId: ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f
Create PowerBIResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def PowerBIResource(resource_name: str,
args: PowerBIResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PowerBIResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
azure_resource_name: Optional[str] = None,
location: Optional[str] = None,
private_endpoint_connections: Optional[Sequence[PrivateEndpointConnectionArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tenant_id: Optional[str] = None)
type: azure-native:powerbi:PowerBIResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_powerbi_power_b_i_resource" "name" {
# resource properties
}
Parameters
- resource_name
str
- The unique name of the resource.
- args
PowerBIResourceArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
PowerBIResourceArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
PowerBIResourceArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var powerBIResourceResource = new AzureNative.PowerBI.PowerBIResource("powerBIResourceResource", new()
{
ResourceGroupName = "string",
AzureResourceName = "string",
Location = "string",
PrivateEndpointConnections = new[]
{
new AzureNative.PowerBI.Inputs.PrivateEndpointConnectionArgs
{
PrivateEndpoint = new AzureNative.PowerBI.Inputs.PrivateEndpointArgs
{
Id = "string",
},
PrivateLinkServiceConnectionState = new AzureNative.PowerBI.Inputs.ConnectionStateArgs
{
ActionsRequired = "string",
Description = "string",
Status = "string",
},
ProvisioningState = "string",
},
},
Tags =
{
{ "string", "string" },
},
TenantId = "string",
});
example, err := powerbi.NewPowerBIResource(ctx, "powerBIResourceResource", &powerbi.PowerBIResourceArgs{
ResourceGroupName: pulumi.String("string"),
AzureResourceName: pulumi.String("string"),
Location: pulumi.String("string"),
PrivateEndpointConnections: powerbi.PrivateEndpointConnectionTypeArray{
&powerbi.PrivateEndpointConnectionTypeArgs{
PrivateEndpoint: &powerbi.PrivateEndpointArgs{
Id: pulumi.String("string"),
},
PrivateLinkServiceConnectionState: &powerbi.ConnectionStateArgs{
ActionsRequired: pulumi.String("string"),
Description: pulumi.String("string"),
Status: pulumi.String("string"),
},
ProvisioningState: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TenantId: pulumi.String("string"),
})
resource "azure-native_powerbi_power_b_i_resource" "powerBIResourceResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
azure_resource_name = "string"
location = "string"
private_endpoint_connections {
private_endpoint = {
id = "string"
}
private_link_service_connection_state = {
actions_required = "string"
description = "string"
status = "string"
}
provisioning_state = "string"
}
tags = {
"string" = "string"
}
tenant_id = "string"
}
var powerBIResourceResource = new PowerBIResource("powerBIResourceResource", PowerBIResourceArgs.builder()
.resourceGroupName("string")
.azureResourceName("string")
.location("string")
.privateEndpointConnections(com.pulumi.azurenative.powerbi.inputs.PrivateEndpointConnectionArgs.builder()
.privateEndpoint(com.pulumi.azurenative.powerbi.inputs.PrivateEndpointArgs.builder()
.id("string")
.build())
.privateLinkServiceConnectionState(com.pulumi.azurenative.powerbi.inputs.ConnectionStateArgs.builder()
.actionsRequired("string")
.description("string")
.status("string")
.build())
.provisioningState("string")
.build())
.tags(Map.of("string", "string"))
.tenantId("string")
.build());
power_bi_resource_resource = azure_native.powerbi.PowerBIResource("powerBIResourceResource",
resource_group_name="string",
azure_resource_name="string",
location="string",
private_endpoint_connections=[{
"private_endpoint": {
"id": "string",
},
"private_link_service_connection_state": {
"actions_required": "string",
"description": "string",
"status": "string",
},
"provisioning_state": "string",
}],
tags={
"string": "string",
},
tenant_id="string")
const powerBIResourceResource = new azure_native.powerbi.PowerBIResource("powerBIResourceResource", {
resourceGroupName: "string",
azureResourceName: "string",
location: "string",
privateEndpointConnections: [{
privateEndpoint: {
id: "string",
},
privateLinkServiceConnectionState: {
actionsRequired: "string",
description: "string",
status: "string",
},
provisioningState: "string",
}],
tags: {
string: "string",
},
tenantId: "string",
});
type: azure-native:powerbi:PowerBIResource
properties:
azureResourceName: string
location: string
privateEndpointConnections:
- privateEndpoint:
id: string
privateLinkServiceConnectionState:
actionsRequired: string
description: string
status: string
provisioningState: string
resourceGroupName: string
tags:
string: string
tenantId: string
PowerBIResource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PowerBIResource resource accepts the following input properties:
- resource_group_name
string
- The name of the resource group.
- azure_resource_name
string
- The name of the Azure resource.
- location
string
- Specifies the location of the resource.
- private_endpoint_connections
list(object)
- Specifies the private endpoint connections of the resource.
These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
- tags
map(string)
- Specifies the tags of the resource.
- tenant_id
string
- Specifies the tenant id of the resource.
- resourceGroupName
String
- The name of the resource group.
- azureResourceName
String
- The name of the Azure resource.
- location
String
- Specifies the location of the resource.
- privateEndpointConnections
List<PrivateEndpointConnection>
- Specifies the private endpoint connections of the resource.
These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
- tags
Map<String,String>
- Specifies the tags of the resource.
- tenantId
String
- Specifies the tenant id of the resource.
- resourceGroupName
string
- The name of the resource group.
- azureResourceName
string
- The name of the Azure resource.
- location
string
- Specifies the location of the resource.
- privateEndpointConnections
PrivateEndpointConnection[]
- Specifies the private endpoint connections of the resource.
These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
- tags
{[key: string]: string}
- Specifies the tags of the resource.
- tenantId
string
- Specifies the tenant id of the resource.
- resourceGroupName
String
- The name of the resource group.
- azureResourceName
String
- The name of the Azure resource.
- location
String
- Specifies the location of the resource.
- privateEndpointConnections
List<Property Map>
- Specifies the private endpoint connections of the resource.
These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
- tags
Map<String>
- Specifies the tags of the resource.
- tenantId
String
- Specifies the tenant id of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PowerBIResource resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- Specifies the name of the resource.
- SystemData
SystemDataResponse
- The system metadata relating to this resource.
- Type
string
- Specifies the type of the resource.
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- Specifies the name of the resource.
- system_data
object
- The system metadata relating to this resource.
- type
string
- Specifies the type of the resource.
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- Specifies the name of the resource.
- systemData
SystemDataResponse
- The system metadata relating to this resource.
- type
String
- Specifies the type of the resource.
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- Specifies the name of the resource.
- systemData
SystemDataResponse
- The system metadata relating to this resource.
- type
string
- Specifies the type of the resource.
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- name
str
- Specifies the name of the resource.
- system_data
SystemDataResponse
- The system metadata relating to this resource.
- type
str
- Specifies the type of the resource.
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- Specifies the name of the resource.
- systemData
Property Map
- The system metadata relating to this resource.
- type
String
- Specifies the type of the resource.
Supporting Types
ConnectionState, ConnectionStateArgs
ConnectionState information.ConnectionStateResponse, ConnectionStateResponseArgs
ConnectionState information.PersistedConnectionStatus, PersistedConnectionStatusArgs
| Name | Value |
|---|
| Pending | Pending |
| Approved | Approved |
| Rejected | Rejected |
| Disconnected | Disconnected |
| Name | Value |
|---|
| PersistedConnectionStatusPending | Pending |
| PersistedConnectionStatusApproved | Approved |
| PersistedConnectionStatusRejected | Rejected |
| PersistedConnectionStatusDisconnected | Disconnected |
| Value |
|---|
Pending |
Approved |
Rejected |
Disconnected |
| Name | Value |
|---|
| Pending | Pending |
| Approved | Approved |
| Rejected | Rejected |
| Disconnected | Disconnected |
| Name | Value |
|---|
| Pending | Pending |
| Approved | Approved |
| Rejected | Rejected |
| Disconnected | Disconnected |
| Name | Value |
|---|
| PENDING | Pending |
| APPROVED | Approved |
| REJECTED | Rejected |
| DISCONNECTED | Disconnected |
| Value |
|---|
Pending |
Approved |
Rejected |
Disconnected |
PrivateEndpoint, PrivateEndpointArgs
- Id
string
- Specifies the id of private endpoint.
- Id
string
- Specifies the id of private endpoint.
- id
string
- Specifies the id of private endpoint.
- id
String
- Specifies the id of private endpoint.
- id
string
- Specifies the id of private endpoint.
- id
str
- Specifies the id of private endpoint.
- id
String
- Specifies the id of private endpoint.
PrivateEndpointConnection, PrivateEndpointConnectionArgs
PrivateEndpointConnectionResponse, PrivateEndpointConnectionResponseArgs
PrivateEndpointResponse, PrivateEndpointResponseArgs
- Id
string
- Specifies the id of private endpoint.
- Id
string
- Specifies the id of private endpoint.
- id
string
- Specifies the id of private endpoint.
- id
String
- Specifies the id of private endpoint.
- id
string
- Specifies the id of private endpoint.
- id
str
- Specifies the id of private endpoint.
- id
String
- Specifies the id of private endpoint.
ResourceProvisioningState, ResourceProvisioningStateArgs
| Name | Value |
|---|
| Creating | Creating |
| Updating | Updating |
| Deleting | Deleting |
| Succeeded | Succeeded |
| Canceled | Canceled |
| Failed | Failed |
| Name | Value |
|---|
| ResourceProvisioningStateCreating | Creating |
| ResourceProvisioningStateUpdating | Updating |
| ResourceProvisioningStateDeleting | Deleting |
| ResourceProvisioningStateSucceeded | Succeeded |
| ResourceProvisioningStateCanceled | Canceled |
| ResourceProvisioningStateFailed | Failed |
| Value |
|---|
Creating |
Updating |
Deleting |
Succeeded |
Canceled |
Failed |
| Name | Value |
|---|
| Creating | Creating |
| Updating | Updating |
| Deleting | Deleting |
| Succeeded | Succeeded |
| Canceled | Canceled |
| Failed | Failed |
| Name | Value |
|---|
| Creating | Creating |
| Updating | Updating |
| Deleting | Deleting |
| Succeeded | Succeeded |
| Canceled | Canceled |
| Failed | Failed |
| Name | Value |
|---|
| CREATING | Creating |
| UPDATING | Updating |
| DELETING | Deleting |
| SUCCEEDED | Succeeded |
| CANCELED | Canceled |
| FAILED | Failed |
| Value |
|---|
Creating |
Updating |
Deleting |
Succeeded |
Canceled |
Failed |
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:powerbi:PowerBIResource myPrivateLinkServiceResource /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0