published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Azure Target resource
Create TargetAzure Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetAzure(name: string, args?: TargetAzureArgs, opts?: CustomResourceOptions);@overload
def TargetAzure(resource_name: str,
args: Optional[TargetAzureArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TargetAzure(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
connection_type: Optional[str] = None,
description: Optional[str] = None,
keep_prev_version: Optional[str] = None,
key: Optional[str] = None,
max_versions: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
subscription_id: Optional[str] = None,
target_azure_id: Optional[str] = None,
tenant_id: Optional[str] = None,
use_gw_cloud_identity: Optional[bool] = None)func NewTargetAzure(ctx *Context, name string, args *TargetAzureArgs, opts ...ResourceOption) (*TargetAzure, error)public TargetAzure(string name, TargetAzureArgs? args = null, CustomResourceOptions? opts = null)
public TargetAzure(String name, TargetAzureArgs args)
public TargetAzure(String name, TargetAzureArgs args, CustomResourceOptions options)
type: akeyless:TargetAzure
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TargetAzureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TargetAzureArgs
- 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 TargetAzureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetAzureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetAzureArgs
- 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 targetAzureResource = new Akeyless.TargetAzure("targetAzureResource", new()
{
ClientId = "string",
ClientSecret = "string",
ConnectionType = "string",
Description = "string",
KeepPrevVersion = "string",
Key = "string",
MaxVersions = "string",
Name = "string",
ResourceGroupName = "string",
ResourceName = "string",
SubscriptionId = "string",
TargetAzureId = "string",
TenantId = "string",
UseGwCloudIdentity = false,
});
example, err := akeyless.NewTargetAzure(ctx, "targetAzureResource", &akeyless.TargetAzureArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
ConnectionType: pulumi.String("string"),
Description: pulumi.String("string"),
KeepPrevVersion: pulumi.String("string"),
Key: pulumi.String("string"),
MaxVersions: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ResourceName: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
TargetAzureId: pulumi.String("string"),
TenantId: pulumi.String("string"),
UseGwCloudIdentity: pulumi.Bool(false),
})
var targetAzureResource = new TargetAzure("targetAzureResource", TargetAzureArgs.builder()
.clientId("string")
.clientSecret("string")
.connectionType("string")
.description("string")
.keepPrevVersion("string")
.key("string")
.maxVersions("string")
.name("string")
.resourceGroupName("string")
.resourceName("string")
.subscriptionId("string")
.targetAzureId("string")
.tenantId("string")
.useGwCloudIdentity(false)
.build());
target_azure_resource = akeyless.TargetAzure("targetAzureResource",
client_id="string",
client_secret="string",
connection_type="string",
description="string",
keep_prev_version="string",
key="string",
max_versions="string",
name="string",
resource_group_name="string",
resource_name_="string",
subscription_id="string",
target_azure_id="string",
tenant_id="string",
use_gw_cloud_identity=False)
const targetAzureResource = new akeyless.TargetAzure("targetAzureResource", {
clientId: "string",
clientSecret: "string",
connectionType: "string",
description: "string",
keepPrevVersion: "string",
key: "string",
maxVersions: "string",
name: "string",
resourceGroupName: "string",
resourceName: "string",
subscriptionId: "string",
targetAzureId: "string",
tenantId: "string",
useGwCloudIdentity: false,
});
type: akeyless:TargetAzure
properties:
clientId: string
clientSecret: string
connectionType: string
description: string
keepPrevVersion: string
key: string
maxVersions: string
name: string
resourceGroupName: string
resourceName: string
subscriptionId: string
targetAzureId: string
tenantId: string
useGwCloudIdentity: false
TargetAzure Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TargetAzure resource accepts the following input properties:
- Client
Id string - Azure client/application id
- Client
Secret string - Azure client secret
- Connection
Type string - Type of connection [credentials/cloud-identity]
- Description string
- Description of the object
- Keep
Prev stringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- Key string
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults
- Name string
- Target name
- Resource
Group stringName - The Resource Group name in your Azure subscription
- Resource
Name string - The name of the relevant Resource
- Subscription
Id string - Azure Subscription Id
- Target
Azure stringId - The ID of this resource.
- Tenant
Id string - Azure tenant id
- Use
Gw boolCloud Identity - Use the GW's Cloud IAM
- Client
Id string - Azure client/application id
- Client
Secret string - Azure client secret
- Connection
Type string - Type of connection [credentials/cloud-identity]
- Description string
- Description of the object
- Keep
Prev stringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- Key string
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults
- Name string
- Target name
- Resource
Group stringName - The Resource Group name in your Azure subscription
- Resource
Name string - The name of the relevant Resource
- Subscription
Id string - Azure Subscription Id
- Target
Azure stringId - The ID of this resource.
- Tenant
Id string - Azure tenant id
- Use
Gw boolCloud Identity - Use the GW's Cloud IAM
- client
Id String - Azure client/application id
- client
Secret String - Azure client secret
- connection
Type String - Type of connection [credentials/cloud-identity]
- description String
- Description of the object
- keep
Prev StringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key String
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults
- name String
- Target name
- resource
Group StringName - The Resource Group name in your Azure subscription
- resource
Name String - The name of the relevant Resource
- subscription
Id String - Azure Subscription Id
- target
Azure StringId - The ID of this resource.
- tenant
Id String - Azure tenant id
- use
Gw BooleanCloud Identity - Use the GW's Cloud IAM
- client
Id string - Azure client/application id
- client
Secret string - Azure client secret
- connection
Type string - Type of connection [credentials/cloud-identity]
- description string
- Description of the object
- keep
Prev stringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key string
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max
Versions string - Set the maximum number of versions, limited by the account settings defaults
- name string
- Target name
- resource
Group stringName - The Resource Group name in your Azure subscription
- resource
Name string - The name of the relevant Resource
- subscription
Id string - Azure Subscription Id
- target
Azure stringId - The ID of this resource.
- tenant
Id string - Azure tenant id
- use
Gw booleanCloud Identity - Use the GW's Cloud IAM
- client_
id str - Azure client/application id
- client_
secret str - Azure client secret
- connection_
type str - Type of connection [credentials/cloud-identity]
- description str
- Description of the object
- keep_
prev_ strversion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key str
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max_
versions str - Set the maximum number of versions, limited by the account settings defaults
- name str
- Target name
- resource_
group_ strname - The Resource Group name in your Azure subscription
- resource_
name str - The name of the relevant Resource
- subscription_
id str - Azure Subscription Id
- target_
azure_ strid - The ID of this resource.
- tenant_
id str - Azure tenant id
- use_
gw_ boolcloud_ identity - Use the GW's Cloud IAM
- client
Id String - Azure client/application id
- client
Secret String - Azure client secret
- connection
Type String - Type of connection [credentials/cloud-identity]
- description String
- Description of the object
- keep
Prev StringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key String
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults
- name String
- Target name
- resource
Group StringName - The Resource Group name in your Azure subscription
- resource
Name String - The name of the relevant Resource
- subscription
Id String - Azure Subscription Id
- target
Azure StringId - The ID of this resource.
- tenant
Id String - Azure tenant id
- use
Gw BooleanCloud Identity - Use the GW's Cloud IAM
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetAzure resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TargetAzure Resource
Get an existing TargetAzure resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TargetAzureState, opts?: CustomResourceOptions): TargetAzure@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
connection_type: Optional[str] = None,
description: Optional[str] = None,
keep_prev_version: Optional[str] = None,
key: Optional[str] = None,
max_versions: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name: Optional[str] = None,
subscription_id: Optional[str] = None,
target_azure_id: Optional[str] = None,
tenant_id: Optional[str] = None,
use_gw_cloud_identity: Optional[bool] = None) -> TargetAzurefunc GetTargetAzure(ctx *Context, name string, id IDInput, state *TargetAzureState, opts ...ResourceOption) (*TargetAzure, error)public static TargetAzure Get(string name, Input<string> id, TargetAzureState? state, CustomResourceOptions? opts = null)public static TargetAzure get(String name, Output<String> id, TargetAzureState state, CustomResourceOptions options)resources: _: type: akeyless:TargetAzure get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Client
Id string - Azure client/application id
- Client
Secret string - Azure client secret
- Connection
Type string - Type of connection [credentials/cloud-identity]
- Description string
- Description of the object
- Keep
Prev stringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- Key string
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults
- Name string
- Target name
- Resource
Group stringName - The Resource Group name in your Azure subscription
- Resource
Name string - The name of the relevant Resource
- Subscription
Id string - Azure Subscription Id
- Target
Azure stringId - The ID of this resource.
- Tenant
Id string - Azure tenant id
- Use
Gw boolCloud Identity - Use the GW's Cloud IAM
- Client
Id string - Azure client/application id
- Client
Secret string - Azure client secret
- Connection
Type string - Type of connection [credentials/cloud-identity]
- Description string
- Description of the object
- Keep
Prev stringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- Key string
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- Max
Versions string - Set the maximum number of versions, limited by the account settings defaults
- Name string
- Target name
- Resource
Group stringName - The Resource Group name in your Azure subscription
- Resource
Name string - The name of the relevant Resource
- Subscription
Id string - Azure Subscription Id
- Target
Azure stringId - The ID of this resource.
- Tenant
Id string - Azure tenant id
- Use
Gw boolCloud Identity - Use the GW's Cloud IAM
- client
Id String - Azure client/application id
- client
Secret String - Azure client secret
- connection
Type String - Type of connection [credentials/cloud-identity]
- description String
- Description of the object
- keep
Prev StringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key String
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults
- name String
- Target name
- resource
Group StringName - The Resource Group name in your Azure subscription
- resource
Name String - The name of the relevant Resource
- subscription
Id String - Azure Subscription Id
- target
Azure StringId - The ID of this resource.
- tenant
Id String - Azure tenant id
- use
Gw BooleanCloud Identity - Use the GW's Cloud IAM
- client
Id string - Azure client/application id
- client
Secret string - Azure client secret
- connection
Type string - Type of connection [credentials/cloud-identity]
- description string
- Description of the object
- keep
Prev stringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key string
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max
Versions string - Set the maximum number of versions, limited by the account settings defaults
- name string
- Target name
- resource
Group stringName - The Resource Group name in your Azure subscription
- resource
Name string - The name of the relevant Resource
- subscription
Id string - Azure Subscription Id
- target
Azure stringId - The ID of this resource.
- tenant
Id string - Azure tenant id
- use
Gw booleanCloud Identity - Use the GW's Cloud IAM
- client_
id str - Azure client/application id
- client_
secret str - Azure client secret
- connection_
type str - Type of connection [credentials/cloud-identity]
- description str
- Description of the object
- keep_
prev_ strversion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key str
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max_
versions str - Set the maximum number of versions, limited by the account settings defaults
- name str
- Target name
- resource_
group_ strname - The Resource Group name in your Azure subscription
- resource_
name str - The name of the relevant Resource
- subscription_
id str - Azure Subscription Id
- target_
azure_ strid - The ID of this resource.
- tenant_
id str - Azure tenant id
- use_
gw_ boolcloud_ identity - Use the GW's Cloud IAM
- client
Id String - Azure client/application id
- client
Secret String - Azure client secret
- connection
Type String - Type of connection [credentials/cloud-identity]
- description String
- Description of the object
- keep
Prev StringVersion - Whether to keep previous version [true/false]. If not set, use default according to account settings
- key String
- Key name. The key is used to encrypt the target secret value. If the key name is not specified, the account default protection key is used
- max
Versions String - Set the maximum number of versions, limited by the account settings defaults
- name String
- Target name
- resource
Group StringName - The Resource Group name in your Azure subscription
- resource
Name String - The name of the relevant Resource
- subscription
Id String - Azure Subscription Id
- target
Azure StringId - The ID of this resource.
- tenant
Id String - Azure tenant id
- use
Gw BooleanCloud Identity - Use the GW's Cloud IAM
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
