Skip to content

Commit 095ae92

Browse files
authored
Merge pull request #41 from cloudgraphdev/fix/vm-missing-field
fix(virtualMachine): add missing id
2 parents 98695b3 + 46e2f3e commit 095ae92

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/services/virtualMachine/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default ({
4545
allowExtensionOperations,
4646
requireGuestProvisionSignal,
4747
} = {},
48-
storageProfile: { imageReference } = {},
48+
storageProfile: { imageReference = {} } = {},
4949
licenseType,
5050
resourceGroupId,
5151
Tags,

src/services/virtualMachine/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type azureVirtualMachineStorageImageReference
3838
mutation: { add: false, delete: false }
3939
subscription: false
4040
) {
41+
id: String @search(by: [hash])
4142
publisher: String @search(by: [hash, regexp])
4243
offer: String @search(by: [hash, regexp])
4344
sku: String @search(by: [hash, regexp])

src/types/generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,6 +5451,7 @@ export type AzureVirtualMachineScaleSetSubResource = {
54515451

54525452
export type AzureVirtualMachineStorageImageReference = {
54535453
exactVersion?: Maybe<Scalars['String']>;
5454+
id?: Maybe<Scalars['String']>;
54545455
offer?: Maybe<Scalars['String']>;
54555456
publisher?: Maybe<Scalars['String']>;
54565457
sharedGalleryImageId?: Maybe<Scalars['String']>;

0 commit comments

Comments
 (0)