1. Packages
  2. Azure Native v2
  3. API Docs
  4. migrate
  5. getProjectKeys
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.migrate.getProjectKeys

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets the Log Analytics Workspace ID and Primary Key for the specified project. Azure REST API version: 2018-02-02.

Using getProjectKeys

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getProjectKeys(args: GetProjectKeysArgs, opts?: InvokeOptions): Promise<GetProjectKeysResult>
function getProjectKeysOutput(args: GetProjectKeysOutputArgs, opts?: InvokeOptions): Output<GetProjectKeysResult>
Copy
def get_project_keys(project_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProjectKeysResult
def get_project_keys_output(project_name: Optional[pulumi.Input[str]] = None,
                     resource_group_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProjectKeysResult]
Copy
func GetProjectKeys(ctx *Context, args *GetProjectKeysArgs, opts ...InvokeOption) (*GetProjectKeysResult, error)
func GetProjectKeysOutput(ctx *Context, args *GetProjectKeysOutputArgs, opts ...InvokeOption) GetProjectKeysResultOutput
Copy

> Note: This function is named GetProjectKeys in the Go SDK.

public static class GetProjectKeys 
{
    public static Task<GetProjectKeysResult> InvokeAsync(GetProjectKeysArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectKeysResult> Invoke(GetProjectKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProjectKeysResult> getProjectKeys(GetProjectKeysArgs args, InvokeOptions options)
public static Output<GetProjectKeysResult> getProjectKeys(GetProjectKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:migrate:getProjectKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Migrate project.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Resource Group that project is part of.
ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Migrate project.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Resource Group that project is part of.
projectName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Migrate project.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Resource Group that project is part of.
projectName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Migrate project.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Resource Group that project is part of.
project_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Azure Migrate project.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Azure Resource Group that project is part of.
projectName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Migrate project.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Resource Group that project is part of.

getProjectKeys Result

The following output properties are available:

WorkspaceId string
ID of Migration Project.
WorkspaceKey string
Key of Migration Project.
WorkspaceId string
ID of Migration Project.
WorkspaceKey string
Key of Migration Project.
workspaceId String
ID of Migration Project.
workspaceKey String
Key of Migration Project.
workspaceId string
ID of Migration Project.
workspaceKey string
Key of Migration Project.
workspace_id str
ID of Migration Project.
workspace_key str
Key of Migration Project.
workspaceId String
ID of Migration Project.
workspaceKey String
Key of Migration Project.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi