Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature scaffolding - added example #25

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
resource "microsoft365_graph_cloud_pc_provisioning_policy" "example" {
display_name = "Example Cloud PC Provisioning Policy"
description = "This is an example Cloud PC provisioning policy"
cloud_pc_naming_template = "CPC-%USERNAME:4%-%RAND:5%"

image_id = "Microsoftwindowsdesktop_windows-ent-cpc_21h1-ent-cpc-m365"
image_type = "gallery"

provisioning_type = "dedicated"

enable_single_sign_on = true
local_admin_enabled = false

domain_join_configurations {
domain_join_type = "azureADJoin"
on_premises_connection_id = "12345678-1234-1234-1234-123456789012"
region_name = "eastus"
}

microsoft_managed_desktop {
managed_type = "premiumManaged"
profile = "Standard"
}

windows_setting {
locale = "en-US"
}

timeouts {
create = "30m"
read = "10m"
update = "30m"
delete = "30m"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *CloudPcProvisioningPolicyResource) GetTypeName() string {

// Metadata returns the resource type name.
func (r *CloudPcProvisioningPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_graph_Cloud_Pc_provisioning_policy"
resp.TypeName = req.ProviderTypeName + "_graph_cloud_pc_provisioning_policy"
}

// Configure sets the client for the resource.
Expand Down
Loading