Skip to content

Adding examples.#214

Open
jingiris05 wants to merge 1 commit intoCiscoDevNet:mainfrom
jingiris05:main
Open

Adding examples.#214
jingiris05 wants to merge 1 commit intoCiscoDevNet:mainfrom
jingiris05:main

Conversation

@jingiris05
Copy link
Copy Markdown

Adding examples.

$Organization1 = Get-IntersightOrganizationOrganization -Name "test_new_org" -Account $Account1
$Catalog1 = Get-IntersightSoftwarerepositoryCatalog -Name "user-catalog" -Organization $Organization1
$FirmwareDistributable = New-IntersightFirmwareDistributable -Name "ucsc-845a-m8-huu-2.0.1.250000D" -ImportAction "None" -SupportedModels @("CAI-845A-M8") -Version "-" -Origin "User" -Source $Source1 -Catalog $Catalog1
$Organization2 = Get-IntersightOrganizationOrganization -Name "test_new_org" -Account $Account1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why to call $organization2 when we have already $organization1


$Source1 = Initialize-IntersightSoftwarerepositoryNfsServer -FileLocation "10.xx.xx.xx/shared/ucsc-845a-m8-huu-2.0.1.250000D.iso" -ObjectType "SoftwarerepositoryNfsServer"
$Account1 = Get-IntersightIamAccount -Name "my-account"
$Organization1 = Get-IntersightOrganizationOrganization -Name "test_new_org" -Account $Account1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why to provide $account1 any specific region because API key is generated for account and it works within account boundry

$ValidInstallTarget = New-IntersightOsValidInstallTarget -Servers @($Servers11)
$OsSupport = New-IntersightOsOsSupport -OsVersion "ESXi 8.0"
$Account1 = Get-IntersightIamAccount -Name "my-account"
$Organization1 = Get-IntersightOrganizationOrganization -Name "Org-Auto-8332" -Account $Account1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to pass account to get account?

please add comment before the main cmdlet operation so that user can read and understand it

$IpV4Config31 = Initialize-IntersightCommIpV4Interface -ObjectType "CommIpV4Interface" -Gateway "" -IpAddress "" -Netmask ""
$IpConfiguration31 = Initialize-IntersightOsIpv4Configuration -ObjectType "OsIpv4Configuration" -IpV4Config $IpV4Config31
$Answers31 = Initialize-IntersightOsAnswers -ObjectType "OsAnswers" -Hostname "google" -IpConfigType "DHCP" -IpConfiguration $IpConfiguration31 -IsRootPasswordCrypted $false -Nameserver "" -NetworkDevice "" -ProductKey "" -Source "Template" -RootPassword "123456"
$Organization4 = Get-IntersightOrganizationOrganization -Moid "5da9f0b76972652d30b3bae7"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do we receive for the organization when using the Moid? Will it work the same way in the customer environment? How should customers determine whether they need to provide the $organization1 Moid or the $organization4 Moid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants