You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Create an Okta org by [signing up](/signup/) for Workforce Identity Cloud.
34
34
35
-
Note: Free trial accounts expire after 30 days, but developer accounts do not expire.
35
+
**Note:** Free trial accounts expire after 30 days, but developer accounts do not expire.
36
36
37
37
To use Terraform, you'll run commands in a terminal. You can even use a PowerShell window if you don't have a favorite terminal!
38
38
@@ -83,14 +83,13 @@ You will save a private key alongside your code to simplify the lab. In producti
83
83
84
84
e. Under "Private Key - Copy this!" select PEM.
85
85
86
-
**Note**: the PEM key begins with the line `-----BEGIN PRIVATE KEY-----`.
87
-
Make sure you're looking at the PEM, not the JSON.
86
+
**Note**: the PEM key begins with the line `-----BEGIN PRIVATE KEY-----`. Make sure you're looking at the PEM, not the JSON.
88
87
89
88
f. Select Copy to clipboard.
90
89
91
90
4. On your computer, paste the key into a file and save it as `key.pem`
92
91
93
-
**Important:** The key is saved locally to simplify the lab. You should save the key to an appropriate secrets management solution when working with production environments. If you do not have secrets management, [this blog post](/blog/2024/10/11/terraform-ci-cd) shares one way to set it up.
92
+
**Important:** The key is saved locally to simplify the lab. You should save the key to an appropriate secrets management solution when working with production environments. If you do not have secrets management, [this blog post](/blog/2024/10/11/terraform-ci-cd) shares one way to set it up.
94
93
95
94
5. Complete the configuration steps.
96
95
@@ -175,7 +174,7 @@ An Okta Ice intern uses PowerShell to generate a newsletter with statistics abou
175
174
You can access PowerShell 7 by launching it from the shortcut generated during its installation or with the Visual Studio Code built-in terminal.
176
175
177
176
## Configure a PowerShell Application using Terraform
5. From the `Creation complete after` output, copy the value of the `okta_app_oauth` id.
207
-
**Note:** PowerShell and Terraform now have separate applications in your Okta organization.
208
-
The PowerShell application's ID can also be found in the Okta admin console under Applications -> Applications.
206
+
207
+
**Note:** PowerShell and Terraform now have separate applications in your Okta organization. The PowerShell application's ID can also be found in the Okta admin console under Applications -> Applications.
208
+
209
209
6. In PowerShell, run these commands:
210
-
**Note:** Replace the {yourOktaDomain} with the entire domain for your Okta org. For example,
211
-
oktaice0000000.oktapreview.com. Replace the ID with the value you copied above.
210
+
211
+
**Note:** Replace the {yourOktaDomain} with the entire domain for your Okta org. For example, `oktaice0000000.oktapreview.com`. Replace the ID with the value you copied above.
You have set up the PowerShell application with various scopes. What interesting information about your organization can you retrieve using these scopes? Will these scopes allow you to make any changes to the Okta organization? Try some PowerShell commands to create or destroy resources and see what happens!
227
227
228
-
If you want to explore your Okta org more with PowerShell, these resources may help:
229
-
- Okta Developer [PowerShell blog post](/blog/2024/05/07/okta-powershell-module)
- The Okta PowerShell module [test suite](https://github.com/okta/okta-powershell-cli/blob/main/tests/Api/OktaGroupApi.Tests.ps1)
361
+
362
+
Remember to follow us on [Twitter](https://twitter.com/oktadev) and subscribe to our [YouTube channel](https://www.youtube.com/c/OktaDev/) for more exciting content. We also want to hear from you about topics you want to see and questions you may have. Leave us a comment below!
0 commit comments