diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/CHANGELOG.md b/sdk/resourcemanager/computefleet/armcomputefleet/CHANGELOG.md index d91bbac6cf58..26d7889a1078 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/CHANGELOG.md +++ b/sdk/resourcemanager/computefleet/armcomputefleet/CHANGELOG.md @@ -1,5 +1,16 @@ # Release History +## 2.0.0 (2025-05-07) +### Breaking Changes + +- `ManagedServiceIdentityTypeSystemAndUserAssigned` from enum `ManagedServiceIdentityType` has been removed + +### Features Added + +- New value `ManagedServiceIdentityTypeSystemAssignedUserAssigned` added to enum type `ManagedServiceIdentityType` +- New field `DisplayName` in struct `FleetProperties` + + ## 1.0.0 (2024-10-22) ### Breaking Changes diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/README.md b/sdk/resourcemanager/computefleet/armcomputefleet/README.md index 92d31274c769..6ee68315561b 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/README.md +++ b/sdk/resourcemanager/computefleet/armcomputefleet/README.md @@ -18,7 +18,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve Install the Azure Compute Fleet module: ```sh -go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet/v2 ``` ## Authorization diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/constants.go b/sdk/resourcemanager/computefleet/armcomputefleet/constants.go index 9a5b1d23be3c..15db93573c51 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/constants.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/constants.go @@ -6,7 +6,7 @@ package armcomputefleet const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet" - moduleVersion = "v1.0.0" + moduleVersion = "v2.0.0" ) // AcceleratorManufacturer - Accelerator manufacturers supported by Azure VMs. @@ -188,9 +188,9 @@ func PossibleDiffDiskOptionsValues() []DiffDiskOptions { // resource disk space for Ephemeral OS disk provisioning. For more information on // Ephemeral OS disk size requirements, please refer Ephemeral OS disk size // requirements for Windows VM at -// https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements +// https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements // and Linux VM at -// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements +// https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements // Minimum api-version for NvmeDisk: 2024-03-01. type DiffDiskPlacement string @@ -215,10 +215,10 @@ func PossibleDiffDiskPlacementValues() []DiffDiskPlacement { // DiskControllerTypes - Specifies the disk controller type configured for the VM and // VirtualMachineScaleSet. This property is only supported for virtual machines // whose operating system disk and VM sku supports Generation 2 -// (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please +// (https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2), please // check the HyperVGenerations capability returned as part of VM sku capabilities // in the response of Microsoft.Compute SKUs api for the region contains V2 -// (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more +// (https://learn.microsoft.com/rest/api/compute/resourceskus/list). For more // information about Disk Controller Types supported please refer to // https://aka.ms/azure-diskcontrollertypes. type DiskControllerTypes string @@ -449,10 +449,10 @@ type ManagedServiceIdentityType string const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" - // ManagedServiceIdentityTypeSystemAndUserAssigned - System and user assigned managed identity. - ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" + // ManagedServiceIdentityTypeSystemAssignedUserAssigned - System and user assigned managed identity. + ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" ) @@ -461,8 +461,8 @@ const ( func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { return []ManagedServiceIdentityType{ ManagedServiceIdentityTypeNone, - ManagedServiceIdentityTypeSystemAndUserAssigned, ManagedServiceIdentityTypeSystemAssigned, + ManagedServiceIdentityTypeSystemAssignedUserAssigned, ManagedServiceIdentityTypeUserAssigned, } } @@ -799,9 +799,9 @@ func PossibleSpotAllocationStrategyValues() []SpotAllocationStrategy { // zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant // storage. For more information regarding disks supported for Windows Virtual // Machines, refer to -// https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for +// https://learn.microsoft.com/azure/virtual-machines/windows/disks-types and, for // Linux Virtual Machines, refer to -// https://docs.microsoft.com/azure/virtual-machines/linux/disks-types +// https://learn.microsoft.com/azure/virtual-machines/linux/disks-types type StorageAccountTypes string const ( diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/fake/fleets_server.go b/sdk/resourcemanager/computefleet/armcomputefleet/fake/fleets_server.go index 50095603add1..02e271984e95 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/fake/fleets_server.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/fake/fleets_server.go @@ -12,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet/v2" "net/http" "net/url" "regexp" @@ -25,7 +25,7 @@ type FleetsServer struct { BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, fleetName string, resource armcomputefleet.Fleet, options *armcomputefleet.FleetsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcomputefleet.FleetsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // BeginDelete is the fake for method FleetsClient.BeginDelete - // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginDelete func(ctx context.Context, resourceGroupName string, fleetName string, options *armcomputefleet.FleetsClientBeginDeleteOptions) (resp azfake.PollerResponder[armcomputefleet.FleetsClientDeleteResponse], errResp azfake.ErrorResponder) // Get is the fake for method FleetsClient.Get @@ -88,29 +88,48 @@ func (f *FleetsServerTransport) Do(req *http.Request) (*http.Response, error) { } func (f *FleetsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { - var resp *http.Response - var err error - - switch method { - case "FleetsClient.BeginCreateOrUpdate": - resp, err = f.dispatchBeginCreateOrUpdate(req) - case "FleetsClient.BeginDelete": - resp, err = f.dispatchBeginDelete(req) - case "FleetsClient.Get": - resp, err = f.dispatchGet(req) - case "FleetsClient.NewListByResourceGroupPager": - resp, err = f.dispatchNewListByResourceGroupPager(req) - case "FleetsClient.NewListBySubscriptionPager": - resp, err = f.dispatchNewListBySubscriptionPager(req) - case "FleetsClient.NewListVirtualMachineScaleSetsPager": - resp, err = f.dispatchNewListVirtualMachineScaleSetsPager(req) - case "FleetsClient.BeginUpdate": - resp, err = f.dispatchBeginUpdate(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } - - return resp, err + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if fleetsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = fleetsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "FleetsClient.BeginCreateOrUpdate": + res.resp, res.err = f.dispatchBeginCreateOrUpdate(req) + case "FleetsClient.BeginDelete": + res.resp, res.err = f.dispatchBeginDelete(req) + case "FleetsClient.Get": + res.resp, res.err = f.dispatchGet(req) + case "FleetsClient.NewListByResourceGroupPager": + res.resp, res.err = f.dispatchNewListByResourceGroupPager(req) + case "FleetsClient.NewListBySubscriptionPager": + res.resp, res.err = f.dispatchNewListBySubscriptionPager(req) + case "FleetsClient.NewListVirtualMachineScaleSetsPager": + res.resp, res.err = f.dispatchNewListVirtualMachineScaleSetsPager(req) + case "FleetsClient.BeginUpdate": + res.resp, res.err = f.dispatchBeginUpdate(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (f *FleetsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { @@ -122,7 +141,7 @@ func (f *FleetsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armcomputefleet.Fleet](req) @@ -170,7 +189,7 @@ func (f *FleetsServerTransport) dispatchBeginDelete(req *http.Request) (*http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -194,9 +213,9 @@ func (f *FleetsServerTransport) dispatchBeginDelete(req *http.Request) (*http.Re return nil, err } - if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { f.beginDelete.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginDelete) { f.beginDelete.remove(req) @@ -212,7 +231,7 @@ func (f *FleetsServerTransport) dispatchGet(req *http.Request) (*http.Response, const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -247,7 +266,7 @@ func (f *FleetsServerTransport) dispatchNewListByResourceGroupPager(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -284,7 +303,7 @@ func (f *FleetsServerTransport) dispatchNewListBySubscriptionPager(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := f.srv.NewListBySubscriptionPager(nil) @@ -317,7 +336,7 @@ func (f *FleetsServerTransport) dispatchNewListVirtualMachineScaleSetsPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualMachineScaleSets` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -358,7 +377,7 @@ func (f *FleetsServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.AzureFleet/fleets/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armcomputefleet.FleetUpdate](req) @@ -396,3 +415,9 @@ func (f *FleetsServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Re return resp, nil } + +// set this to conditionally intercept incoming requests to FleetsServerTransport +var fleetsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/fake/internal.go b/sdk/resourcemanager/computefleet/armcomputefleet/fake/internal.go index 56a8f624f5f3..7425b6a669e2 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/fake/internal.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/fake/internal.go @@ -10,6 +10,11 @@ import ( "sync" ) +type result struct { + resp *http.Response + err error +} + type nonRetriableError struct { error } diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/fake/operations_server.go b/sdk/resourcemanager/computefleet/armcomputefleet/fake/operations_server.go index a86d89fb4a63..1ca70f29e52a 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/fake/operations_server.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/fake/operations_server.go @@ -11,7 +11,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet/v2" "net/http" ) @@ -51,17 +51,36 @@ func (o *OperationsServerTransport) Do(req *http.Request) (*http.Response, error } func (o *OperationsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { - var resp *http.Response - var err error + resultChan := make(chan result) + defer close(resultChan) - switch method { - case "OperationsClient.NewListPager": - resp, err = o.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + go func() { + var intercepted bool + var res result + if operationsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = operationsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "OperationsClient.NewListPager": + res.resp, res.err = o.dispatchNewListPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() - return resp, err + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (o *OperationsServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { @@ -90,3 +109,9 @@ func (o *OperationsServerTransport) dispatchNewListPager(req *http.Request) (*ht } return resp, nil } + +// set this to conditionally intercept incoming requests to OperationsServerTransport +var operationsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/fake/time_rfc3339.go b/sdk/resourcemanager/computefleet/armcomputefleet/fake/time_rfc3339.go deleted file mode 100644 index 87ee11e83b32..000000000000 --- a/sdk/resourcemanager/computefleet/armcomputefleet/fake/time_rfc3339.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "regexp" - "strings" - "time" -) - -// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) - -const ( - utcDateTime = "2006-01-02T15:04:05.999999999" - utcDateTimeJSON = `"` + utcDateTime + `"` - utcDateTimeNoT = "2006-01-02 15:04:05.999999999" - utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` - dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` - dateTimeJSON = `"` + time.RFC3339Nano + `"` - dateTimeJSONNoT = `"` + dateTimeNoT + `"` -) - -type dateTimeRFC3339 time.Time - -func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { - tt := time.Time(t) - return tt.MarshalJSON() -} - -func (t dateTimeRFC3339) MarshalText() ([]byte, error) { - tt := time.Time(t) - return tt.MarshalText() -} - -func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { - tzOffset := tzOffsetRegex.Match(data) - hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") - var layout string - if tzOffset && hasT { - layout = dateTimeJSON - } else if tzOffset { - layout = dateTimeJSONNoT - } else if hasT { - layout = utcDateTimeJSON - } else { - layout = utcDateTimeJSONNoT - } - return t.Parse(layout, string(data)) -} - -func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { - if len(data) == 0 { - return nil - } - tzOffset := tzOffsetRegex.Match(data) - hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") - var layout string - if tzOffset && hasT { - layout = time.RFC3339Nano - } else if tzOffset { - layout = dateTimeNoT - } else if hasT { - layout = utcDateTime - } else { - layout = utcDateTimeNoT - } - return t.Parse(layout, string(data)) -} - -func (t *dateTimeRFC3339) Parse(layout, value string) error { - p, err := time.Parse(layout, strings.ToUpper(value)) - *t = dateTimeRFC3339(p) - return err -} - -func (t dateTimeRFC3339) String() string { - return time.Time(t).Format(time.RFC3339Nano) -} - -func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateTimeRFC3339)(t) -} - -func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateTimeRFC3339 - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client.go b/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client.go index 2fd16b96db29..70466e0c4986 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client.go @@ -42,7 +42,7 @@ func NewFleetsClient(subscriptionID string, credential azcore.TokenCredential, o // BeginCreateOrUpdate - Create a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - fleetName - The name of the Compute Fleet // - resource - Resource create parameters. @@ -69,7 +69,7 @@ func (client *FleetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGro // CreateOrUpdate - Create a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 func (client *FleetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, fleetName string, resource Fleet, options *FleetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "FleetsClient.BeginCreateOrUpdate" @@ -111,7 +111,7 @@ func (client *FleetsClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} @@ -124,7 +124,7 @@ func (client *FleetsClient) createOrUpdateCreateRequest(ctx context.Context, res // BeginDelete - Delete a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - fleetName - The name of the Compute Fleet // - options - FleetsClientBeginDeleteOptions contains the optional parameters for the FleetsClient.BeginDelete method. @@ -148,7 +148,7 @@ func (client *FleetsClient) BeginDelete(ctx context.Context, resourceGroupName s // Delete - Delete a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 func (client *FleetsClient) deleteOperation(ctx context.Context, resourceGroupName string, fleetName string, options *FleetsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "FleetsClient.BeginDelete" @@ -190,7 +190,7 @@ func (client *FleetsClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -199,7 +199,7 @@ func (client *FleetsClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Get a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - fleetName - The name of the Compute Fleet // - options - FleetsClientGetOptions contains the optional parameters for the FleetsClient.Get method. @@ -245,7 +245,7 @@ func (client *FleetsClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -262,7 +262,7 @@ func (client *FleetsClient) getHandleResponse(resp *http.Response) (FleetsClient // NewListByResourceGroupPager - List Fleet resources by resource group // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - FleetsClientListByResourceGroupOptions contains the optional parameters for the FleetsClient.NewListByResourceGroupPager // method. @@ -305,7 +305,7 @@ func (client *FleetsClient) listByResourceGroupCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,7 +322,7 @@ func (client *FleetsClient) listByResourceGroupHandleResponse(resp *http.Respons // NewListBySubscriptionPager - List Fleet resources by subscription ID // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - options - FleetsClientListBySubscriptionOptions contains the optional parameters for the FleetsClient.NewListBySubscriptionPager // method. func (client *FleetsClient) NewListBySubscriptionPager(options *FleetsClientListBySubscriptionOptions) *runtime.Pager[FleetsClientListBySubscriptionResponse] { @@ -360,7 +360,7 @@ func (client *FleetsClient) listBySubscriptionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -377,7 +377,7 @@ func (client *FleetsClient) listBySubscriptionHandleResponse(resp *http.Response // NewListVirtualMachineScaleSetsPager - List VirtualMachineScaleSet resources by Fleet // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - name - The name of the Fleet // - options - FleetsClientListVirtualMachineScaleSetsOptions contains the optional parameters for the FleetsClient.NewListVirtualMachineScaleSetsPager @@ -425,7 +425,7 @@ func (client *FleetsClient) listVirtualMachineScaleSetsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -443,7 +443,7 @@ func (client *FleetsClient) listVirtualMachineScaleSetsHandleResponse(resp *http // BeginUpdate - Update a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - fleetName - The name of the Compute Fleet // - properties - The resource properties to be updated. @@ -468,7 +468,7 @@ func (client *FleetsClient) BeginUpdate(ctx context.Context, resourceGroupName s // Update - Update a Fleet // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 func (client *FleetsClient) update(ctx context.Context, resourceGroupName string, fleetName string, properties FleetUpdate, options *FleetsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "FleetsClient.BeginUpdate" @@ -510,7 +510,7 @@ func (client *FleetsClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client_example_test.go b/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client_example_test.go deleted file mode 100644 index 1499fe058820..000000000000 --- a/sdk/resourcemanager/computefleet/armcomputefleet/fleets_client_example_test.go +++ /dev/null @@ -1,3114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armcomputefleet_test - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet" - "log" -) - -// Generated from example definition: 2024-11-01/Fleets_CreateOrUpdate.json -func ExampleFleetsClient_BeginCreateOrUpdate_fleetsCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewFleetsClient().BeginCreateOrUpdate(ctx, "rgazurefleet", "testFleet", armcomputefleet.Fleet{ - Properties: &armcomputefleet.FleetProperties{ - SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - Capacity: to.Ptr[int32](20), - MinCapacity: to.Ptr[int32](10), - MaxPricePerVM: to.Ptr[float32](0.00865), - EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - Maintain: to.Ptr(true), - }, - RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - Capacity: to.Ptr[int32](20), - MinCapacity: to.Ptr[int32](10), - AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - }, - VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - { - Name: to.Ptr("Standard_d1_v2"), - Rank: to.Ptr[int32](19225), - }, - }, - ComputeProfile: &armcomputefleet.ComputeProfile{ - BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - ComputerNamePrefix: to.Ptr("o"), - AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - AdminPassword: to.Ptr("adfbrdxpv"), - CustomData: to.Ptr("xjjib"), - WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - ProvisionVMAgent: to.Ptr(true), - EnableAutomaticUpdates: to.Ptr(true), - TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - { - PassName: to.Ptr("OobeSystem"), - ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - Content: to.Ptr("bubmqbxjkj"), - }, - }, - PatchSettings: &armcomputefleet.PatchSettings{ - PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - EnableHotpatching: to.Ptr(true), - AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - }, - }, - WinRM: &armcomputefleet.WinRMConfiguration{ - Listeners: []*armcomputefleet.WinRMListener{ - { - Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTPS), - CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - }, - }, - }, - EnableVMAgentPlatformUpdates: to.Ptr(true), - }, - LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - DisablePasswordAuthentication: to.Ptr(true), - SSH: &armcomputefleet.SSHConfiguration{ - PublicKeys: []*armcomputefleet.SSHPublicKey{ - { - Path: to.Ptr("kmqz"), - KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - }, - }, - }, - ProvisionVMAgent: to.Ptr(true), - PatchSettings: &armcomputefleet.LinuxPatchSettings{ - PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - }, - }, - EnableVMAgentPlatformUpdates: to.Ptr(true), - }, - Secrets: []*armcomputefleet.VaultSecretGroup{ - { - SourceVault: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - }, - VaultCertificates: []*armcomputefleet.VaultCertificate{ - { - CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - }, - }, - }, - }, - AllowExtensionOperations: to.Ptr(true), - RequireGuestProvisionSignal: to.Ptr(true), - }, - StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - ImageReference: &armcomputefleet.ImageReference{ - Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - Offer: to.Ptr("isxgumkarlkomp"), - SKU: to.Ptr("eojmppqcrnpmxirtp"), - Version: to.Ptr("wvpcqefgtmqdgltiuz"), - SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - CommunityGalleryImageID: to.Ptr("vlqe"), - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - }, - OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - Name: to.Ptr("wfttw"), - Caching: to.Ptr(armcomputefleet.CachingTypesNone), - WriteAcceleratorEnabled: to.Ptr(true), - CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - }, - DiskSizeGB: to.Ptr[int32](14), - OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - Image: &armcomputefleet.VirtualHardDisk{ - URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - }, - VhdContainers: []*string{ - to.Ptr("tkzcwddtinkfpnfklatw"), - }, - ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - }, - }, - DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - }, - DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - { - Name: to.Ptr("eogiykmdmeikswxmigjws"), - Lun: to.Ptr[int32](14), - Caching: to.Ptr(armcomputefleet.CachingTypesNone), - WriteAcceleratorEnabled: to.Ptr(true), - CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - DiskSizeGB: to.Ptr[int32](6), - ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - }, - }, - DiskIOPSReadWrite: to.Ptr[int64](27), - DiskMBpsReadWrite: to.Ptr[int64](2), - DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - }, - }, - }, - NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - HealthProbe: &armcomputefleet.APIEntityReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - }, - NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - { - Name: to.Ptr("i"), - Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - Primary: to.Ptr(true), - EnableAcceleratedNetworking: to.Ptr(true), - DisableTCPStateTracking: to.Ptr(true), - EnableFpga: to.Ptr(true), - NetworkSecurityGroup: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - }, - DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - DNSServers: []*string{ - to.Ptr("nxmmfolhclsesu"), - }, - }, - IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - { - Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - Subnet: &armcomputefleet.APIEntityReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - }, - Primary: to.Ptr(true), - PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - Name: to.Ptr("fvpqf"), - Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - IdleTimeoutInMinutes: to.Ptr[int32](9), - DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - }, - IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - { - IPTagType: to.Ptr("sddgsoemnzgqizale"), - Tag: to.Ptr("wufmhrjsakbiaetyara"), - }, - }, - PublicIPPrefix: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - }, - PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - }, - SKU: &armcomputefleet.PublicIPAddressSKU{ - Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - }, - }, - PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - }, - }, - ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - }, - }, - LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - }, - }, - LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - }, - }, - }, - }, - }, - EnableIPForwarding: to.Ptr(true), - DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - }, - }, - }, - NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - }, - SecurityProfile: &armcomputefleet.SecurityProfile{ - UefiSettings: &armcomputefleet.UefiSettings{ - SecureBootEnabled: to.Ptr(true), - VTpmEnabled: to.Ptr(true), - }, - EncryptionAtHost: to.Ptr(true), - SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - }, - ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - Enabled: to.Ptr(true), - Mode: to.Ptr(armcomputefleet.ModeAudit), - KeyIncarnationID: to.Ptr[int32](20), - }, - }, - DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - BootDiagnostics: &armcomputefleet.BootDiagnostics{ - Enabled: to.Ptr(true), - StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - }, - }, - ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - { - Name: to.Ptr("bndxuxx"), - Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - ForceUpdateTag: to.Ptr("yhgxw"), - Publisher: to.Ptr("kpxtirxjfprhs"), - Type: to.Ptr("pgjilctjjwaa"), - TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - AutoUpgradeMinorVersion: to.Ptr(true), - EnableAutomaticUpgrade: to.Ptr(true), - Settings: map[string]any{}, - ProtectedSettings: map[string]any{}, - ProvisionAfterExtensions: []*string{ - to.Ptr("nftzosroolbcwmpupujzqwqe"), - }, - SuppressFailures: to.Ptr(true), - ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - SecretURL: to.Ptr("https://myvaultName.vault.azure.net/secrets/secret/mySecretName"), - SourceVault: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - }, - }, - }, - }, - }, - ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - }, - LicenseType: to.Ptr("v"), - ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - NotBeforeTimeout: to.Ptr("iljppmmw"), - Enable: to.Ptr(true), - }, - OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - Enable: to.Ptr(true), - }, - }, - UserData: to.Ptr("s"), - CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - CapacityReservationGroup: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - }, - }, - ApplicationProfile: &armcomputefleet.ApplicationProfile{ - GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - { - Tags: to.Ptr("eyrqjbib"), - Order: to.Ptr[int32](5), - PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - ConfigurationReference: to.Ptr("ulztmiavpojpbpbddgnuuiimxcpau"), - TreatFailureAsDeploymentFailure: to.Ptr(true), - EnableAutomaticUpgrade: to.Ptr(true), - }, - }, - }, - HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - VMSizeProperties: &armcomputefleet.VMSizeProperties{ - VCPUsAvailable: to.Ptr[int32](16), - VCPUsPerCore: to.Ptr[int32](23), - }, - }, - ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - }, - SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - ID: to.Ptr("/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"), - ExcludeExtensions: []*string{ - to.Ptr("{securityPostureVMExtensionName}"), - }, - IsOverridable: to.Ptr(true), - }, - }, - ComputeAPIVersion: to.Ptr("2023-07-01"), - PlatformFaultDomainCount: to.Ptr[int32](1), - }, - }, - Zones: []*string{ - to.Ptr("zone1"), - to.Ptr("zone2"), - }, - Identity: &armcomputefleet.ManagedServiceIdentity{ - Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{ - "key9851": {}, - }, - }, - Tags: map[string]*string{ - "key3518": to.Ptr("luvrnuvsgdpbuofdskkcoqhfh"), - }, - Location: to.Ptr("westus"), - Plan: &armcomputefleet.Plan{ - Name: to.Ptr("jwgrcrnrtfoxn"), - Publisher: to.Ptr("iozjbiqqckqm"), - Product: to.Ptr("cgopbyvdyqikahwyxfpzwaqk"), - PromotionCode: to.Ptr("naglezezplcaruqogtxnuizslqnnbr"), - Version: to.Ptr("wa"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res = armcomputefleet.FleetsClientCreateOrUpdateResponse{ - // Fleet: &armcomputefleet.Fleet{ - // Properties: &armcomputefleet.FleetProperties{ - // ProvisioningState: to.Ptr(armcomputefleet.ProvisioningStateSucceeded), - // SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - // Capacity: to.Ptr[int32](10), - // MinCapacity: to.Ptr[int32](20), - // MaxPricePerVM: to.Ptr[float32](0.00865), - // EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - // AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - // Maintain: to.Ptr(true), - // }, - // RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - // Capacity: to.Ptr[int32](10), - // MinCapacity: to.Ptr[int32](10), - // AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - // }, - // VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - // { - // Name: to.Ptr("Standard_d1_v2"), - // Rank: to.Ptr[int32](19225), - // }, - // }, - // ComputeProfile: &armcomputefleet.ComputeProfile{ - // BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - // OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - // ComputerNamePrefix: to.Ptr("o"), - // AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - // WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - // ProvisionVMAgent: to.Ptr(true), - // EnableAutomaticUpdates: to.Ptr(true), - // TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - // AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - // { - // PassName: to.Ptr("OobeSystem"), - // ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - // SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - // }, - // }, - // PatchSettings: &armcomputefleet.PatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - // EnableHotpatching: to.Ptr(true), - // AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // WinRM: &armcomputefleet.WinRMConfiguration{ - // Listeners: []*armcomputefleet.WinRMListener{ - // { - // Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTPS), - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // }, - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - // DisablePasswordAuthentication: to.Ptr(true), - // SSH: &armcomputefleet.SSHConfiguration{ - // PublicKeys: []*armcomputefleet.SSHPublicKey{ - // { - // Path: to.Ptr("kmqz"), - // KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - // }, - // }, - // }, - // ProvisionVMAgent: to.Ptr(true), - // PatchSettings: &armcomputefleet.LinuxPatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - // AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // Secrets: []*armcomputefleet.VaultSecretGroup{ - // { - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // VaultCertificates: []*armcomputefleet.VaultCertificate{ - // { - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - // }, - // }, - // }, - // }, - // AllowExtensionOperations: to.Ptr(true), - // RequireGuestProvisionSignal: to.Ptr(true), - // }, - // StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - // ImageReference: &armcomputefleet.ImageReference{ - // Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - // Offer: to.Ptr("isxgumkarlkomp"), - // SKU: to.Ptr("eojmppqcrnpmxirtp"), - // Version: to.Ptr("wvpcqefgtmqdgltiuz"), - // ExactVersion: to.Ptr("zjbntmiskjexlr"), - // SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - // CommunityGalleryImageID: to.Ptr("vlqe"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - // }, - // OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - // Name: to.Ptr("wfttw"), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - // Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - // Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - // }, - // DiskSizeGB: to.Ptr[int32](14), - // OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - // Image: &armcomputefleet.VirtualHardDisk{ - // URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - // }, - // VhdContainers: []*string{ - // to.Ptr("tkzcwddtinkfpnfklatw"), - // }, - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - // { - // Name: to.Ptr("eogiykmdmeikswxmigjws"), - // Lun: to.Ptr[int32](14), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiskSizeGB: to.Ptr[int32](6), - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DiskIOPSReadWrite: to.Ptr[int64](27), - // DiskMBpsReadWrite: to.Ptr[int64](2), - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // }, - // }, - // NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - // HealthProbe: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - // }, - // NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - // { - // Name: to.Ptr("i"), - // Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - // Primary: to.Ptr(true), - // EnableAcceleratedNetworking: to.Ptr(true), - // DisableTCPStateTracking: to.Ptr(true), - // EnableFpga: to.Ptr(true), - // NetworkSecurityGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - // }, - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - // DNSServers: []*string{ - // to.Ptr("nxmmfolhclsesu"), - // }, - // }, - // IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - // { - // Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - // Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - // Subnet: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - // }, - // Primary: to.Ptr(true), - // PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - // Name: to.Ptr("fvpqf"), - // Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - // IdleTimeoutInMinutes: to.Ptr[int32](9), - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - // DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - // DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - // }, - // IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - // { - // IPTagType: to.Ptr("sddgsoemnzgqizale"), - // Tag: to.Ptr("wufmhrjsakbiaetyara"), - // }, - // }, - // PublicIPPrefix: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - // }, - // PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // }, - // SKU: &armcomputefleet.PublicIPAddressSKU{ - // Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - // Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - // }, - // }, - // PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - // }, - // }, - // LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - // }, - // }, - // }, - // }, - // }, - // EnableIPForwarding: to.Ptr(true), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - // AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - // }, - // }, - // }, - // NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - // }, - // SecurityProfile: &armcomputefleet.SecurityProfile{ - // UefiSettings: &armcomputefleet.UefiSettings{ - // SecureBootEnabled: to.Ptr(true), - // VTpmEnabled: to.Ptr(true), - // }, - // EncryptionAtHost: to.Ptr(true), - // SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - // EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - // }, - // ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - // Enabled: to.Ptr(true), - // Mode: to.Ptr(armcomputefleet.ModeAudit), - // KeyIncarnationID: to.Ptr[int32](20), - // }, - // }, - // DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - // BootDiagnostics: &armcomputefleet.BootDiagnostics{ - // Enabled: to.Ptr(true), - // StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - // }, - // }, - // ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - // Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - // { - // Name: to.Ptr("bndxuxx"), - // Type: to.Ptr("cmeam"), - // Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - // ForceUpdateTag: to.Ptr("yhgxw"), - // Publisher: to.Ptr("kpxtirxjfprhs"), - // Type: to.Ptr("pgjilctjjwaa"), - // TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - // AutoUpgradeMinorVersion: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // Settings: map[string]any{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // ProvisionAfterExtensions: []*string{ - // to.Ptr("nftzosroolbcwmpupujzqwqe"), - // }, - // SuppressFailures: to.Ptr(true), - // ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - // SecretURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/secret/mySecretName"), - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // }, - // }, - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}"), - // }, - // }, - // ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - // }, - // LicenseType: to.Ptr("v"), - // ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - // TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - // NotBeforeTimeout: to.Ptr("iljppmmw"), - // Enable: to.Ptr(true), - // }, - // OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - // NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - // Enable: to.Ptr(true), - // }, - // }, - // UserData: to.Ptr("s"), - // CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - // CapacityReservationGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - // }, - // }, - // ApplicationProfile: &armcomputefleet.ApplicationProfile{ - // GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - // { - // Tags: to.Ptr("eyrqjbib"), - // Order: to.Ptr[int32](5), - // PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - // TreatFailureAsDeploymentFailure: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // }, - // }, - // }, - // HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - // VMSizeProperties: &armcomputefleet.VMSizeProperties{ - // VCPUsAvailable: to.Ptr[int32](16), - // VCPUsPerCore: to.Ptr[int32](23), - // }, - // }, - // ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - // }, - // SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - // ID: to.Ptr("/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"), - // ExcludeExtensions: []*string{ - // to.Ptr("{securityPostureVMExtensionName}"), - // }, - // IsOverridable: to.Ptr(true), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // ComputeAPIVersion: to.Ptr("2023-07-01"), - // PlatformFaultDomainCount: to.Ptr[int32](1), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-10T00:16:34.8590555+00:00"); return t}()), - // UniqueID: to.Ptr("a2f7fabd-bbc2-4a20-afe1-49fdb3885a28"), - // }, - // Zones: []*string{ - // to.Ptr("zone1"), - // to.Ptr("zone2"), - // }, - // Identity: &armcomputefleet.ManagedServiceIdentity{ - // PrincipalID: to.Ptr("4d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // TenantID: to.Ptr("5d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{ - // "key9851": &armcomputefleet.UserAssignedIdentity{ - // PrincipalID: to.Ptr("6d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // ClientID: to.Ptr("7d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // }, - // }, - // }, - // Plan: &armcomputefleet.Plan{ - // Name: to.Ptr("jwgrcrnrtfoxn"), - // Publisher: to.Ptr("iozjbiqqckqm"), - // Product: to.Ptr("cgopbyvdyqikahwyxfpzwaqk"), - // PromotionCode: to.Ptr("naglezezplcaruqogtxnuizslqnnbr"), - // Version: to.Ptr("wa"), - // }, - // Tags: map[string]*string{ - // "key3518": to.Ptr("luvrnuvsgdpbuofdskkcoqhfh"), - // }, - // Location: to.Ptr("westus"), - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/testFleet"), - // Name: to.Ptr("testFleet"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets"), - // SystemData: &armcomputefleet.SystemData{ - // CreatedBy: to.Ptr("rowegentrpoajsv"), - // CreatedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // LastModifiedBy: to.Ptr("edwuayhhaoepxzisfaqjhmrxjq"), - // LastModifiedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // }, - // } -} - -// Generated from example definition: 2024-11-01/Fleets_CreateOrUpdate_MinimumSet.json -func ExampleFleetsClient_BeginCreateOrUpdate_fleetsCreateOrUpdateMinimumSet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewFleetsClient().BeginCreateOrUpdate(ctx, "rgazurefleet", "testFleet", armcomputefleet.Fleet{ - Properties: &armcomputefleet.FleetProperties{ - SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - Capacity: to.Ptr[int32](2), - MinCapacity: to.Ptr[int32](1), - EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - Maintain: to.Ptr(true), - }, - RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - Capacity: to.Ptr[int32](2), - MinCapacity: to.Ptr[int32](1), - AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - }, - VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - { - Name: to.Ptr("Standard_D2s_v3"), - }, - { - Name: to.Ptr("Standard_D4s_v3"), - }, - { - Name: to.Ptr("Standard_E2s_v3"), - }, - }, - ComputeProfile: &armcomputefleet.ComputeProfile{ - BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - ImageReference: &armcomputefleet.ImageReference{ - Publisher: to.Ptr("canonical"), - Offer: to.Ptr("0001-com-ubuntu-server-focal"), - SKU: to.Ptr("20_04-lts-gen2"), - Version: to.Ptr("latest"), - }, - OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - Caching: to.Ptr(armcomputefleet.CachingTypesReadWrite), - CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - OSType: to.Ptr(armcomputefleet.OperatingSystemTypesLinux), - ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - }, - }, - }, - OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - ComputerNamePrefix: to.Ptr("prefix"), - AdminUsername: to.Ptr("azureuser"), - AdminPassword: to.Ptr("TestPassword$0"), - LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - DisablePasswordAuthentication: to.Ptr(false), - }, - }, - NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - { - Name: to.Ptr("vmNameTest"), - Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - Primary: to.Ptr(true), - EnableAcceleratedNetworking: to.Ptr(false), - IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - { - Name: to.Ptr("vmNameTest"), - Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - Subnet: &armcomputefleet.APIEntityReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - }, - Primary: to.Ptr(true), - LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - }, - }, - }, - }, - }, - EnableIPForwarding: to.Ptr(true), - }, - }, - }, - }, - }, - ComputeAPIVersion: to.Ptr("2023-09-01"), - PlatformFaultDomainCount: to.Ptr[int32](1), - }, - }, - Tags: map[string]*string{ - "key": to.Ptr("fleets-test"), - }, - Location: to.Ptr("eastus2euap"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res = armcomputefleet.FleetsClientCreateOrUpdateResponse{ - // Fleet: &armcomputefleet.Fleet{ - // Properties: &armcomputefleet.FleetProperties{ - // ProvisioningState: to.Ptr(armcomputefleet.ProvisioningStateSucceeded), - // SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - // Capacity: to.Ptr[int32](2), - // MinCapacity: to.Ptr[int32](1), - // EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - // AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - // Maintain: to.Ptr(true), - // }, - // RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - // Capacity: to.Ptr[int32](2), - // MinCapacity: to.Ptr[int32](1), - // AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - // }, - // VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // }, - // { - // Name: to.Ptr("Standard_E2s_v3"), - // }, - // }, - // ComputeProfile: &armcomputefleet.ComputeProfile{ - // BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - // StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - // ImageReference: &armcomputefleet.ImageReference{ - // Publisher: to.Ptr("canonical"), - // Offer: to.Ptr("0001-com-ubuntu-server-focal"), - // SKU: to.Ptr("20_04-lts-gen2"), - // Version: to.Ptr("latest"), - // }, - // OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - // Caching: to.Ptr(armcomputefleet.CachingTypesReadWrite), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // OSType: to.Ptr(armcomputefleet.OperatingSystemTypesLinux), - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // }, - // }, - // }, - // OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - // ComputerNamePrefix: to.Ptr("prefix"), - // AdminUsername: to.Ptr("azureuser"), - // LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - // DisablePasswordAuthentication: to.Ptr(false), - // }, - // }, - // NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - // NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - // { - // Name: to.Ptr("vmNameTest"), - // Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - // Primary: to.Ptr(true), - // EnableAcceleratedNetworking: to.Ptr(false), - // IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - // { - // Name: to.Ptr("vmNameTest"), - // Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - // Subnet: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - // }, - // Primary: to.Ptr(true), - // LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // }, - // }, - // }, - // EnableIPForwarding: to.Ptr(true), - // }, - // }, - // }, - // }, - // }, - // ComputeAPIVersion: to.Ptr("2023-09-01"), - // PlatformFaultDomainCount: to.Ptr[int32](1), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-10T00:16:34.8590555+00:00"); return t}()), - // UniqueID: to.Ptr("a2f7fabd-bbc2-4a20-afe1-49fdb3885a28"), - // }, - // Tags: map[string]*string{ - // "key": to.Ptr("fleets-test"), - // }, - // Location: to.Ptr("eastus2euap"), - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/testFleet"), - // Name: to.Ptr("testFleet"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets"), - // }, - // } -} - -// Generated from example definition: 2024-11-01/Fleets_Delete.json -func ExampleFleetsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewFleetsClient().BeginDelete(ctx, "rgazurefleet", "testFleet", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: 2024-11-01/Fleets_Get.json -func ExampleFleetsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFleetsClient().Get(ctx, "rgazurefleet", "testFleet", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res = armcomputefleet.FleetsClientGetResponse{ - // Fleet: &armcomputefleet.Fleet{ - // Properties: &armcomputefleet.FleetProperties{ - // ProvisioningState: to.Ptr(armcomputefleet.ProvisioningStateCreating), - // SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // MaxPricePerVM: to.Ptr[float32](0.00865), - // EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - // AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - // Maintain: to.Ptr(true), - // }, - // RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - // }, - // VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - // { - // Name: to.Ptr("Standard_d1_v2"), - // Rank: to.Ptr[int32](19225), - // }, - // }, - // ComputeProfile: &armcomputefleet.ComputeProfile{ - // BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - // OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - // ComputerNamePrefix: to.Ptr("o"), - // AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - // WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - // ProvisionVMAgent: to.Ptr(true), - // EnableAutomaticUpdates: to.Ptr(true), - // TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - // AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - // { - // PassName: to.Ptr("OobeSystem"), - // ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - // SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - // }, - // }, - // PatchSettings: &armcomputefleet.PatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - // EnableHotpatching: to.Ptr(true), - // AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // WinRM: &armcomputefleet.WinRMConfiguration{ - // Listeners: []*armcomputefleet.WinRMListener{ - // { - // Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTP), - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // }, - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - // DisablePasswordAuthentication: to.Ptr(true), - // SSH: &armcomputefleet.SSHConfiguration{ - // PublicKeys: []*armcomputefleet.SSHPublicKey{ - // { - // Path: to.Ptr("kmqz"), - // KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - // }, - // }, - // }, - // ProvisionVMAgent: to.Ptr(true), - // PatchSettings: &armcomputefleet.LinuxPatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - // AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // Secrets: []*armcomputefleet.VaultSecretGroup{ - // { - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // VaultCertificates: []*armcomputefleet.VaultCertificate{ - // { - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - // }, - // }, - // }, - // }, - // AllowExtensionOperations: to.Ptr(true), - // RequireGuestProvisionSignal: to.Ptr(true), - // }, - // StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - // ImageReference: &armcomputefleet.ImageReference{ - // Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - // Offer: to.Ptr("isxgumkarlkomp"), - // SKU: to.Ptr("eojmppqcrnpmxirtp"), - // Version: to.Ptr("wvpcqefgtmqdgltiuz"), - // ExactVersion: to.Ptr("zjbntmiskjexlr"), - // SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - // CommunityGalleryImageID: to.Ptr("vlqe"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - // }, - // OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - // Name: to.Ptr("wfttw"), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - // Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - // Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - // }, - // DiskSizeGB: to.Ptr[int32](14), - // OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - // Image: &armcomputefleet.VirtualHardDisk{ - // URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - // }, - // VhdContainers: []*string{ - // to.Ptr("tkzcwddtinkfpnfklatw"), - // }, - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - // { - // Name: to.Ptr("eogiykmdmeikswxmigjws"), - // Lun: to.Ptr[int32](14), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiskSizeGB: to.Ptr[int32](6), - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DiskIOPSReadWrite: to.Ptr[int64](27), - // DiskMBpsReadWrite: to.Ptr[int64](2), - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // }, - // }, - // NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - // HealthProbe: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - // }, - // NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - // { - // Name: to.Ptr("i"), - // Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - // Primary: to.Ptr(true), - // EnableAcceleratedNetworking: to.Ptr(true), - // DisableTCPStateTracking: to.Ptr(true), - // EnableFpga: to.Ptr(true), - // NetworkSecurityGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - // }, - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - // DNSServers: []*string{ - // to.Ptr("nxmmfolhclsesu"), - // }, - // }, - // IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - // { - // Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - // Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - // Subnet: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - // }, - // Primary: to.Ptr(true), - // PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - // Name: to.Ptr("fvpqf"), - // Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - // IdleTimeoutInMinutes: to.Ptr[int32](9), - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - // DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - // DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - // }, - // IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - // { - // IPTagType: to.Ptr("sddgsoemnzgqizale"), - // Tag: to.Ptr("wufmhrjsakbiaetyara"), - // }, - // }, - // PublicIPPrefix: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - // }, - // PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // }, - // SKU: &armcomputefleet.PublicIPAddressSKU{ - // Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - // Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - // }, - // }, - // PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - // }, - // }, - // LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - // }, - // }, - // }, - // }, - // }, - // EnableIPForwarding: to.Ptr(true), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - // AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - // }, - // }, - // }, - // NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - // }, - // SecurityProfile: &armcomputefleet.SecurityProfile{ - // UefiSettings: &armcomputefleet.UefiSettings{ - // SecureBootEnabled: to.Ptr(true), - // VTpmEnabled: to.Ptr(true), - // }, - // EncryptionAtHost: to.Ptr(true), - // SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - // EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - // }, - // ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - // Enabled: to.Ptr(true), - // Mode: to.Ptr(armcomputefleet.ModeAudit), - // KeyIncarnationID: to.Ptr[int32](20), - // }, - // }, - // DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - // BootDiagnostics: &armcomputefleet.BootDiagnostics{ - // Enabled: to.Ptr(true), - // StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - // }, - // }, - // ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - // Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - // { - // Name: to.Ptr("bndxuxx"), - // Type: to.Ptr("cmeam"), - // Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - // ForceUpdateTag: to.Ptr("yhgxw"), - // Publisher: to.Ptr("kpxtirxjfprhs"), - // Type: to.Ptr("pgjilctjjwaa"), - // TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - // AutoUpgradeMinorVersion: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // Settings: map[string]any{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // ProvisionAfterExtensions: []*string{ - // to.Ptr("nftzosroolbcwmpupujzqwqe"), - // }, - // SuppressFailures: to.Ptr(true), - // ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - // SecretURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/secret/mySecretName"), - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // }, - // }, - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}"), - // }, - // }, - // ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - // }, - // LicenseType: to.Ptr("v"), - // ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - // TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - // NotBeforeTimeout: to.Ptr("iljppmmw"), - // Enable: to.Ptr(true), - // }, - // OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - // NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - // Enable: to.Ptr(true), - // }, - // }, - // UserData: to.Ptr("s"), - // CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - // CapacityReservationGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - // }, - // }, - // ApplicationProfile: &armcomputefleet.ApplicationProfile{ - // GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - // { - // Tags: to.Ptr("eyrqjbib"), - // Order: to.Ptr[int32](5), - // PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - // TreatFailureAsDeploymentFailure: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // }, - // }, - // }, - // HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - // VMSizeProperties: &armcomputefleet.VMSizeProperties{ - // VCPUsAvailable: to.Ptr[int32](16), - // VCPUsPerCore: to.Ptr[int32](23), - // }, - // }, - // ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - // }, - // SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - // ID: to.Ptr("mubredelfbshboaxrsxiajihahaa"), - // ExcludeExtensions: []*string{ - // to.Ptr("{securityPostureVMExtensionName}"), - // }, - // IsOverridable: to.Ptr(true), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // ComputeAPIVersion: to.Ptr("2023-07-01"), - // PlatformFaultDomainCount: to.Ptr[int32](1), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-10T00:16:34.8590555+00:00"); return t}()), - // UniqueID: to.Ptr("a2f7fabd-bbc2-4a20-afe1-49fdb3885a28"), - // }, - // Zones: []*string{ - // to.Ptr("zone1"), - // to.Ptr("zone2"), - // }, - // Identity: &armcomputefleet.ManagedServiceIdentity{ - // PrincipalID: to.Ptr("4d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // TenantID: to.Ptr("5d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{ - // "key9851": &armcomputefleet.UserAssignedIdentity{ - // PrincipalID: to.Ptr("6d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // ClientID: to.Ptr("7d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // }, - // }, - // }, - // Tags: map[string]*string{ - // "key3518": to.Ptr("luvrnuvsgdpbuofdskkcoqhfh"), - // }, - // Plan: &armcomputefleet.Plan{ - // Name: to.Ptr("jwgrcrnrtfoxn"), - // Publisher: to.Ptr("iozjbiqqckqm"), - // Product: to.Ptr("cgopbyvdyqikahwyxfpzwaqk"), - // PromotionCode: to.Ptr("naglezezplcaruqogtxnuizslqnnbr"), - // Version: to.Ptr("wa"), - // }, - // Location: to.Ptr("westus"), - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/testFleet"), - // Name: to.Ptr("testFleet"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets"), - // SystemData: &armcomputefleet.SystemData{ - // CreatedBy: to.Ptr("rowegentrpoajsv"), - // CreatedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // LastModifiedBy: to.Ptr("edwuayhhaoepxzisfaqjhmrxjq"), - // LastModifiedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // }, - // } -} - -// Generated from example definition: 2024-11-01/Fleets_ListByResourceGroup.json -func ExampleFleetsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFleetsClient().NewListByResourceGroupPager("rgazurefleet", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page = armcomputefleet.FleetsClientListByResourceGroupResponse{ - // FleetListResult: armcomputefleet.FleetListResult{ - // Value: []*armcomputefleet.Fleet{ - // { - // Properties: &armcomputefleet.FleetProperties{ - // ProvisioningState: to.Ptr(armcomputefleet.ProvisioningStateCreating), - // SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // MaxPricePerVM: to.Ptr[float32](0.00865), - // EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - // AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - // Maintain: to.Ptr(true), - // }, - // RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - // }, - // VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - // { - // Name: to.Ptr("Standard_d1_v2"), - // Rank: to.Ptr[int32](19225), - // }, - // }, - // ComputeProfile: &armcomputefleet.ComputeProfile{ - // BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - // OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - // ComputerNamePrefix: to.Ptr("o"), - // AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - // WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - // ProvisionVMAgent: to.Ptr(true), - // EnableAutomaticUpdates: to.Ptr(true), - // TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - // AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - // { - // PassName: to.Ptr("OobeSystem"), - // ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - // SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - // }, - // }, - // PatchSettings: &armcomputefleet.PatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - // EnableHotpatching: to.Ptr(true), - // AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // WinRM: &armcomputefleet.WinRMConfiguration{ - // Listeners: []*armcomputefleet.WinRMListener{ - // { - // Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTP), - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // }, - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - // DisablePasswordAuthentication: to.Ptr(true), - // SSH: &armcomputefleet.SSHConfiguration{ - // PublicKeys: []*armcomputefleet.SSHPublicKey{ - // { - // Path: to.Ptr("kmqz"), - // KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - // }, - // }, - // }, - // ProvisionVMAgent: to.Ptr(true), - // PatchSettings: &armcomputefleet.LinuxPatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - // AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // Secrets: []*armcomputefleet.VaultSecretGroup{ - // { - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // VaultCertificates: []*armcomputefleet.VaultCertificate{ - // { - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - // }, - // }, - // }, - // }, - // AllowExtensionOperations: to.Ptr(true), - // RequireGuestProvisionSignal: to.Ptr(true), - // }, - // StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - // ImageReference: &armcomputefleet.ImageReference{ - // Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - // Offer: to.Ptr("isxgumkarlkomp"), - // SKU: to.Ptr("eojmppqcrnpmxirtp"), - // Version: to.Ptr("wvpcqefgtmqdgltiuz"), - // ExactVersion: to.Ptr("zjbntmiskjexlr"), - // SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - // CommunityGalleryImageID: to.Ptr("vlqe"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - // }, - // OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - // Name: to.Ptr("wfttw"), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - // Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - // Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - // }, - // DiskSizeGB: to.Ptr[int32](14), - // OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - // Image: &armcomputefleet.VirtualHardDisk{ - // URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - // }, - // VhdContainers: []*string{ - // to.Ptr("tkzcwddtinkfpnfklatw"), - // }, - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - // { - // Name: to.Ptr("eogiykmdmeikswxmigjws"), - // Lun: to.Ptr[int32](14), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiskSizeGB: to.Ptr[int32](6), - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DiskIOPSReadWrite: to.Ptr[int64](27), - // DiskMBpsReadWrite: to.Ptr[int64](2), - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // }, - // }, - // NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - // HealthProbe: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - // }, - // NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - // { - // Name: to.Ptr("i"), - // Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - // Primary: to.Ptr(true), - // EnableAcceleratedNetworking: to.Ptr(true), - // DisableTCPStateTracking: to.Ptr(true), - // EnableFpga: to.Ptr(true), - // NetworkSecurityGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - // }, - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - // DNSServers: []*string{ - // to.Ptr("nxmmfolhclsesu"), - // }, - // }, - // IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - // { - // Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - // Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - // Subnet: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - // }, - // Primary: to.Ptr(true), - // PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - // Name: to.Ptr("fvpqf"), - // Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - // IdleTimeoutInMinutes: to.Ptr[int32](9), - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - // DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - // DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - // }, - // IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - // { - // IPTagType: to.Ptr("sddgsoemnzgqizale"), - // Tag: to.Ptr("wufmhrjsakbiaetyara"), - // }, - // }, - // PublicIPPrefix: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - // }, - // PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // }, - // SKU: &armcomputefleet.PublicIPAddressSKU{ - // Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - // Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - // }, - // }, - // PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - // }, - // }, - // LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - // }, - // }, - // }, - // }, - // }, - // EnableIPForwarding: to.Ptr(true), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - // AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - // }, - // }, - // }, - // NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - // }, - // SecurityProfile: &armcomputefleet.SecurityProfile{ - // UefiSettings: &armcomputefleet.UefiSettings{ - // SecureBootEnabled: to.Ptr(true), - // VTpmEnabled: to.Ptr(true), - // }, - // EncryptionAtHost: to.Ptr(true), - // SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - // EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - // }, - // ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - // Enabled: to.Ptr(true), - // Mode: to.Ptr(armcomputefleet.ModeAudit), - // KeyIncarnationID: to.Ptr[int32](20), - // }, - // }, - // DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - // BootDiagnostics: &armcomputefleet.BootDiagnostics{ - // Enabled: to.Ptr(true), - // StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - // }, - // }, - // ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - // Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - // { - // Name: to.Ptr("bndxuxx"), - // Type: to.Ptr("cmeam"), - // Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - // ForceUpdateTag: to.Ptr("yhgxw"), - // Publisher: to.Ptr("kpxtirxjfprhs"), - // Type: to.Ptr("pgjilctjjwaa"), - // TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - // AutoUpgradeMinorVersion: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // Settings: map[string]any{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // ProvisionAfterExtensions: []*string{ - // to.Ptr("nftzosroolbcwmpupujzqwqe"), - // }, - // SuppressFailures: to.Ptr(true), - // ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - // SecretURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/secret/mySecretName"), - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // }, - // }, - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}"), - // }, - // }, - // ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - // }, - // LicenseType: to.Ptr("v"), - // ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - // TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - // NotBeforeTimeout: to.Ptr("iljppmmw"), - // Enable: to.Ptr(true), - // }, - // OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - // NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - // Enable: to.Ptr(true), - // }, - // }, - // UserData: to.Ptr("s"), - // CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - // CapacityReservationGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - // }, - // }, - // ApplicationProfile: &armcomputefleet.ApplicationProfile{ - // GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - // { - // Tags: to.Ptr("eyrqjbib"), - // Order: to.Ptr[int32](5), - // PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - // TreatFailureAsDeploymentFailure: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // }, - // }, - // }, - // HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - // VMSizeProperties: &armcomputefleet.VMSizeProperties{ - // VCPUsAvailable: to.Ptr[int32](16), - // VCPUsPerCore: to.Ptr[int32](23), - // }, - // }, - // ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - // }, - // SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - // ID: to.Ptr("mubredelfbshboaxrsxiajihahaa"), - // ExcludeExtensions: []*string{ - // to.Ptr("{securityPostureVMExtensionName}"), - // }, - // IsOverridable: to.Ptr(true), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // ComputeAPIVersion: to.Ptr("2023-07-01"), - // PlatformFaultDomainCount: to.Ptr[int32](1), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-10T00:16:34.8590555+00:00"); return t}()), - // UniqueID: to.Ptr("a2f7fabd-bbc2-4a20-afe1-49fdb3885a28"), - // }, - // Zones: []*string{ - // to.Ptr("zone1"), - // to.Ptr("zone2"), - // }, - // Identity: &armcomputefleet.ManagedServiceIdentity{ - // PrincipalID: to.Ptr("4d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // TenantID: to.Ptr("5d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{ - // "key9851": &armcomputefleet.UserAssignedIdentity{ - // PrincipalID: to.Ptr("6d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // ClientID: to.Ptr("7d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // }, - // }, - // }, - // Plan: &armcomputefleet.Plan{ - // Name: to.Ptr("jwgrcrnrtfoxn"), - // Publisher: to.Ptr("iozjbiqqckqm"), - // Product: to.Ptr("cgopbyvdyqikahwyxfpzwaqk"), - // PromotionCode: to.Ptr("naglezezplcaruqogtxnuizslqnnbr"), - // Version: to.Ptr("wa"), - // }, - // Tags: map[string]*string{ - // "key3518": to.Ptr("luvrnuvsgdpbuofdskkcoqhfh"), - // }, - // Location: to.Ptr("westus"), - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/testFleet"), - // Name: to.Ptr("testFleet"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets"), - // SystemData: &armcomputefleet.SystemData{ - // CreatedBy: to.Ptr("rowegentrpoajsv"), - // CreatedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // LastModifiedBy: to.Ptr("edwuayhhaoepxzisfaqjhmrxjq"), - // LastModifiedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // }, - // }, - // NextLink: to.Ptr("https://microsoft.com/a"), - // }, - // } - } -} - -// Generated from example definition: 2024-11-01/Fleets_ListBySubscription.json -func ExampleFleetsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFleetsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page = armcomputefleet.FleetsClientListBySubscriptionResponse{ - // FleetListResult: armcomputefleet.FleetListResult{ - // Value: []*armcomputefleet.Fleet{ - // { - // Properties: &armcomputefleet.FleetProperties{ - // ProvisioningState: to.Ptr(armcomputefleet.ProvisioningStateCreating), - // SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // MaxPricePerVM: to.Ptr[float32](0.00865), - // EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - // AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - // Maintain: to.Ptr(true), - // }, - // RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - // }, - // VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - // { - // Name: to.Ptr("Standard_d1_v2"), - // Rank: to.Ptr[int32](19225), - // }, - // }, - // ComputeProfile: &armcomputefleet.ComputeProfile{ - // BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - // OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - // ComputerNamePrefix: to.Ptr("o"), - // AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - // WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - // ProvisionVMAgent: to.Ptr(true), - // EnableAutomaticUpdates: to.Ptr(true), - // TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - // AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - // { - // PassName: to.Ptr("OobeSystem"), - // ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - // SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - // }, - // }, - // PatchSettings: &armcomputefleet.PatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - // EnableHotpatching: to.Ptr(true), - // AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // WinRM: &armcomputefleet.WinRMConfiguration{ - // Listeners: []*armcomputefleet.WinRMListener{ - // { - // Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTP), - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // }, - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - // DisablePasswordAuthentication: to.Ptr(true), - // SSH: &armcomputefleet.SSHConfiguration{ - // PublicKeys: []*armcomputefleet.SSHPublicKey{ - // { - // Path: to.Ptr("kmqz"), - // KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - // }, - // }, - // }, - // ProvisionVMAgent: to.Ptr(true), - // PatchSettings: &armcomputefleet.LinuxPatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - // AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // Secrets: []*armcomputefleet.VaultSecretGroup{ - // { - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // VaultCertificates: []*armcomputefleet.VaultCertificate{ - // { - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - // }, - // }, - // }, - // }, - // AllowExtensionOperations: to.Ptr(true), - // RequireGuestProvisionSignal: to.Ptr(true), - // }, - // StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - // ImageReference: &armcomputefleet.ImageReference{ - // Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - // Offer: to.Ptr("isxgumkarlkomp"), - // SKU: to.Ptr("eojmppqcrnpmxirtp"), - // Version: to.Ptr("wvpcqefgtmqdgltiuz"), - // ExactVersion: to.Ptr("zjbntmiskjexlr"), - // SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - // CommunityGalleryImageID: to.Ptr("vlqe"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - // }, - // OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - // Name: to.Ptr("wfttw"), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - // Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - // Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - // }, - // DiskSizeGB: to.Ptr[int32](14), - // OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - // Image: &armcomputefleet.VirtualHardDisk{ - // URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - // }, - // VhdContainers: []*string{ - // to.Ptr("tkzcwddtinkfpnfklatw"), - // }, - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - // { - // Name: to.Ptr("eogiykmdmeikswxmigjws"), - // Lun: to.Ptr[int32](14), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiskSizeGB: to.Ptr[int32](6), - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DiskIOPSReadWrite: to.Ptr[int64](27), - // DiskMBpsReadWrite: to.Ptr[int64](2), - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // }, - // }, - // NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - // HealthProbe: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - // }, - // NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - // { - // Name: to.Ptr("i"), - // Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - // Primary: to.Ptr(true), - // EnableAcceleratedNetworking: to.Ptr(true), - // DisableTCPStateTracking: to.Ptr(true), - // EnableFpga: to.Ptr(true), - // NetworkSecurityGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - // }, - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - // DNSServers: []*string{ - // to.Ptr("nxmmfolhclsesu"), - // }, - // }, - // IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - // { - // Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - // Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - // Subnet: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - // }, - // Primary: to.Ptr(true), - // PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - // Name: to.Ptr("fvpqf"), - // Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - // IdleTimeoutInMinutes: to.Ptr[int32](9), - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - // DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - // DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - // }, - // IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - // { - // IPTagType: to.Ptr("sddgsoemnzgqizale"), - // Tag: to.Ptr("wufmhrjsakbiaetyara"), - // }, - // }, - // PublicIPPrefix: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - // }, - // PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // }, - // SKU: &armcomputefleet.PublicIPAddressSKU{ - // Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - // Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - // }, - // }, - // PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - // }, - // }, - // LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - // }, - // }, - // }, - // }, - // }, - // EnableIPForwarding: to.Ptr(true), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - // AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - // }, - // }, - // }, - // NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - // }, - // SecurityProfile: &armcomputefleet.SecurityProfile{ - // UefiSettings: &armcomputefleet.UefiSettings{ - // SecureBootEnabled: to.Ptr(true), - // VTpmEnabled: to.Ptr(true), - // }, - // EncryptionAtHost: to.Ptr(true), - // SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - // EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - // }, - // ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - // Enabled: to.Ptr(true), - // Mode: to.Ptr(armcomputefleet.ModeAudit), - // KeyIncarnationID: to.Ptr[int32](20), - // }, - // }, - // DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - // BootDiagnostics: &armcomputefleet.BootDiagnostics{ - // Enabled: to.Ptr(true), - // StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - // }, - // }, - // ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - // Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - // { - // Name: to.Ptr("bndxuxx"), - // Type: to.Ptr("cmeam"), - // Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - // ForceUpdateTag: to.Ptr("yhgxw"), - // Publisher: to.Ptr("kpxtirxjfprhs"), - // Type: to.Ptr("pgjilctjjwaa"), - // TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - // AutoUpgradeMinorVersion: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // Settings: map[string]any{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // ProvisionAfterExtensions: []*string{ - // to.Ptr("nftzosroolbcwmpupujzqwqe"), - // }, - // SuppressFailures: to.Ptr(true), - // ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - // SecretURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/secret/mySecretName"), - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // }, - // }, - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}"), - // }, - // }, - // ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - // }, - // LicenseType: to.Ptr("v"), - // ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - // TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - // NotBeforeTimeout: to.Ptr("iljppmmw"), - // Enable: to.Ptr(true), - // }, - // OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - // NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - // Enable: to.Ptr(true), - // }, - // }, - // UserData: to.Ptr("s"), - // CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - // CapacityReservationGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - // }, - // }, - // ApplicationProfile: &armcomputefleet.ApplicationProfile{ - // GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - // { - // Tags: to.Ptr("eyrqjbib"), - // Order: to.Ptr[int32](5), - // PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - // TreatFailureAsDeploymentFailure: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // }, - // }, - // }, - // HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - // VMSizeProperties: &armcomputefleet.VMSizeProperties{ - // VCPUsAvailable: to.Ptr[int32](16), - // VCPUsPerCore: to.Ptr[int32](23), - // }, - // }, - // ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - // }, - // SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - // ID: to.Ptr("mubredelfbshboaxrsxiajihahaa"), - // ExcludeExtensions: []*string{ - // to.Ptr("{securityPostureVMExtensionName}"), - // }, - // IsOverridable: to.Ptr(true), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // ComputeAPIVersion: to.Ptr("2023-07-01"), - // PlatformFaultDomainCount: to.Ptr[int32](1), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-10T00:16:34.8590555+00:00"); return t}()), - // UniqueID: to.Ptr("a2f7fabd-bbc2-4a20-afe1-49fdb3885a28"), - // }, - // Zones: []*string{ - // to.Ptr("zone1"), - // to.Ptr("zone2"), - // }, - // Identity: &armcomputefleet.ManagedServiceIdentity{ - // PrincipalID: to.Ptr("4d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // TenantID: to.Ptr("5d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{ - // "key9851": &armcomputefleet.UserAssignedIdentity{ - // PrincipalID: to.Ptr("6d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // ClientID: to.Ptr("7d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // }, - // }, - // }, - // Plan: &armcomputefleet.Plan{ - // Name: to.Ptr("jwgrcrnrtfoxn"), - // Publisher: to.Ptr("iozjbiqqckqm"), - // Product: to.Ptr("cgopbyvdyqikahwyxfpzwaqk"), - // PromotionCode: to.Ptr("naglezezplcaruqogtxnuizslqnnbr"), - // Version: to.Ptr("wa"), - // }, - // Tags: map[string]*string{ - // "key3518": to.Ptr("luvrnuvsgdpbuofdskkcoqhfh"), - // }, - // Location: to.Ptr("westus"), - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/testFleet"), - // Name: to.Ptr("testFleet"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets"), - // SystemData: &armcomputefleet.SystemData{ - // CreatedBy: to.Ptr("rowegentrpoajsv"), - // CreatedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // LastModifiedBy: to.Ptr("edwuayhhaoepxzisfaqjhmrxjq"), - // LastModifiedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // }, - // }, - // NextLink: to.Ptr("https://microsoft.com/a"), - // }, - // } - } -} - -// Generated from example definition: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json -func ExampleFleetsClient_NewListVirtualMachineScaleSetsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFleetsClient().NewListVirtualMachineScaleSetsPager("rgazurefleet", "myFleet", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page = armcomputefleet.FleetsClientListVirtualMachineScaleSetsResponse{ - // VirtualMachineScaleSetListResult: armcomputefleet.VirtualMachineScaleSetListResult{ - // Value: []*armcomputefleet.VirtualMachineScaleSet{ - // { - // Name: to.Ptr("myVmss"), - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/myFleet/virtualMachineScaleSets/myVmss"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets/virtualMachineScaleSets"), - // OperationStatus: to.Ptr(armcomputefleet.ProvisioningStateCreating), - // Error: &armcomputefleet.APIError{ - // Details: []*armcomputefleet.APIErrorBase{ - // { - // Code: to.Ptr("gzhtOverconstrainedAllocationRequestyosk"), - // Target: to.Ptr("qfthabhrmndhfizfnrwpgxvnokpy"), - // Message: to.Ptr("Allocation Failed"), - // }, - // }, - // Innererror: &armcomputefleet.InnerError{ - // ExceptionType: to.Ptr("sfaomfpoaptnbxchrfskm"), - // ErrorDetail: to.Ptr("ihjwbwykq"), - // }, - // Code: to.Ptr("OverconstrainedAllocationRequest"), - // Target: to.Ptr("nhaj"), - // Message: to.Ptr("Allocation Failed"), - // }, - // }, - // }, - // }, - // } - } -} - -// Generated from example definition: 2024-11-01/Fleets_Update.json -func ExampleFleetsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("1DC2F28C-A625-4B0E-9748-9885A3C9E9EB", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewFleetsClient().BeginUpdate(ctx, "rgazurefleet", "testFleet", armcomputefleet.FleetUpdate{ - Identity: &armcomputefleet.ManagedServiceIdentityUpdate{ - Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{}, - }, - Tags: map[string]*string{}, - Properties: &armcomputefleet.FleetProperties{ - SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - Capacity: to.Ptr[int32](20), - MinCapacity: to.Ptr[int32](10), - MaxPricePerVM: to.Ptr[float32](0.00865), - EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - Maintain: to.Ptr(true), - }, - RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - Capacity: to.Ptr[int32](20), - MinCapacity: to.Ptr[int32](10), - AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - }, - VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - { - Name: to.Ptr("Standard_d1_v2"), - Rank: to.Ptr[int32](19225), - }, - }, - ComputeProfile: &armcomputefleet.ComputeProfile{ - BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - ComputerNamePrefix: to.Ptr("o"), - AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - AdminPassword: to.Ptr("adfbrdxpv"), - CustomData: to.Ptr("xjjib"), - WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - ProvisionVMAgent: to.Ptr(true), - EnableAutomaticUpdates: to.Ptr(true), - TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - { - PassName: to.Ptr("OobeSystem"), - ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - Content: to.Ptr("bubmqbxjkj"), - }, - }, - PatchSettings: &armcomputefleet.PatchSettings{ - PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - EnableHotpatching: to.Ptr(true), - AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - }, - }, - WinRM: &armcomputefleet.WinRMConfiguration{ - Listeners: []*armcomputefleet.WinRMListener{ - { - Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTP), - CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - }, - }, - }, - EnableVMAgentPlatformUpdates: to.Ptr(true), - }, - LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - DisablePasswordAuthentication: to.Ptr(true), - SSH: &armcomputefleet.SSHConfiguration{ - PublicKeys: []*armcomputefleet.SSHPublicKey{ - { - Path: to.Ptr("kmqz"), - KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - }, - }, - }, - ProvisionVMAgent: to.Ptr(true), - PatchSettings: &armcomputefleet.LinuxPatchSettings{ - PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - }, - }, - EnableVMAgentPlatformUpdates: to.Ptr(true), - }, - Secrets: []*armcomputefleet.VaultSecretGroup{ - { - SourceVault: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - }, - VaultCertificates: []*armcomputefleet.VaultCertificate{ - { - CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - }, - }, - }, - }, - AllowExtensionOperations: to.Ptr(true), - RequireGuestProvisionSignal: to.Ptr(true), - }, - StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - ImageReference: &armcomputefleet.ImageReference{ - Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - Offer: to.Ptr("isxgumkarlkomp"), - SKU: to.Ptr("eojmppqcrnpmxirtp"), - Version: to.Ptr("wvpcqefgtmqdgltiuz"), - SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - CommunityGalleryImageID: to.Ptr("vlqe"), - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - }, - OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - Name: to.Ptr("wfttw"), - Caching: to.Ptr(armcomputefleet.CachingTypesNone), - WriteAcceleratorEnabled: to.Ptr(true), - CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - }, - DiskSizeGB: to.Ptr[int32](14), - OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - Image: &armcomputefleet.VirtualHardDisk{ - URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - }, - VhdContainers: []*string{ - to.Ptr("tkzcwddtinkfpnfklatw"), - }, - ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - }, - }, - DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - }, - DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - { - Name: to.Ptr("eogiykmdmeikswxmigjws"), - Lun: to.Ptr[int32](14), - Caching: to.Ptr(armcomputefleet.CachingTypesNone), - WriteAcceleratorEnabled: to.Ptr(true), - CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - DiskSizeGB: to.Ptr[int32](6), - ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - }, - }, - }, - DiskIOPSReadWrite: to.Ptr[int64](27), - DiskMBpsReadWrite: to.Ptr[int64](2), - DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - }, - }, - }, - NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - HealthProbe: &armcomputefleet.APIEntityReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - }, - NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - { - Name: to.Ptr("i"), - Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - Primary: to.Ptr(true), - EnableAcceleratedNetworking: to.Ptr(true), - DisableTCPStateTracking: to.Ptr(true), - EnableFpga: to.Ptr(true), - NetworkSecurityGroup: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - }, - DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - DNSServers: []*string{ - to.Ptr("nxmmfolhclsesu"), - }, - }, - IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - { - Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - Subnet: &armcomputefleet.APIEntityReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - }, - Primary: to.Ptr(true), - PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - Name: to.Ptr("fvpqf"), - Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - IdleTimeoutInMinutes: to.Ptr[int32](9), - DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - }, - IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - { - IPTagType: to.Ptr("sddgsoemnzgqizale"), - Tag: to.Ptr("wufmhrjsakbiaetyara"), - }, - }, - PublicIPPrefix: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - }, - PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - }, - SKU: &armcomputefleet.PublicIPAddressSKU{ - Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - }, - }, - PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - }, - }, - ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - }, - }, - LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - }, - }, - LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - { - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - }, - }, - }, - }, - }, - EnableIPForwarding: to.Ptr(true), - DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - }, - }, - }, - NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - }, - SecurityProfile: &armcomputefleet.SecurityProfile{ - UefiSettings: &armcomputefleet.UefiSettings{ - SecureBootEnabled: to.Ptr(true), - VTpmEnabled: to.Ptr(true), - }, - EncryptionAtHost: to.Ptr(true), - SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - }, - ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - Enabled: to.Ptr(true), - Mode: to.Ptr(armcomputefleet.ModeAudit), - KeyIncarnationID: to.Ptr[int32](20), - }, - }, - DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - BootDiagnostics: &armcomputefleet.BootDiagnostics{ - Enabled: to.Ptr(true), - StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - }, - }, - ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - { - Name: to.Ptr("bndxuxx"), - Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - ForceUpdateTag: to.Ptr("yhgxw"), - Publisher: to.Ptr("kpxtirxjfprhs"), - Type: to.Ptr("pgjilctjjwaa"), - TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - AutoUpgradeMinorVersion: to.Ptr(true), - EnableAutomaticUpgrade: to.Ptr(true), - Settings: map[string]any{}, - ProtectedSettings: map[string]any{}, - ProvisionAfterExtensions: []*string{ - to.Ptr("nftzosroolbcwmpupujzqwqe"), - }, - SuppressFailures: to.Ptr(true), - ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - SecretURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/secret/mySecretName"), - SourceVault: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - }, - }, - }, - }, - }, - ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - }, - LicenseType: to.Ptr("v"), - ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - NotBeforeTimeout: to.Ptr("iljppmmw"), - Enable: to.Ptr(true), - }, - OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - Enable: to.Ptr(true), - }, - }, - UserData: to.Ptr("s"), - CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - CapacityReservationGroup: &armcomputefleet.SubResource{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - }, - }, - ApplicationProfile: &armcomputefleet.ApplicationProfile{ - GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - { - Tags: to.Ptr("eyrqjbib"), - Order: to.Ptr[int32](5), - PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - ConfigurationReference: to.Ptr("ulztmiavpojpbpbddgnuuiimxcpau"), - TreatFailureAsDeploymentFailure: to.Ptr(true), - EnableAutomaticUpgrade: to.Ptr(true), - }, - }, - }, - HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - VMSizeProperties: &armcomputefleet.VMSizeProperties{ - VCPUsAvailable: to.Ptr[int32](16), - VCPUsPerCore: to.Ptr[int32](23), - }, - }, - ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - }, - SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - ID: to.Ptr("/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"), - ExcludeExtensions: []*string{ - to.Ptr("{securityPostureVMExtensionName}"), - }, - IsOverridable: to.Ptr(true), - }, - }, - ComputeAPIVersion: to.Ptr("2023-07-01"), - PlatformFaultDomainCount: to.Ptr[int32](1), - }, - }, - Plan: &armcomputefleet.ResourcePlanUpdate{ - Name: to.Ptr("jwgrcrnrtfoxn"), - Publisher: to.Ptr("iozjbiqqckqm"), - Product: to.Ptr("cgopbyvdyqikahwyxfpzwaqk"), - PromotionCode: to.Ptr("naglezezplcaruqogtxnuizslqnnbr"), - Version: to.Ptr("wa"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res = armcomputefleet.FleetsClientUpdateResponse{ - // Fleet: &armcomputefleet.Fleet{ - // Properties: &armcomputefleet.FleetProperties{ - // SpotPriorityProfile: &armcomputefleet.SpotPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // MaxPricePerVM: to.Ptr[float32](0.00865), - // EvictionPolicy: to.Ptr(armcomputefleet.EvictionPolicyDelete), - // AllocationStrategy: to.Ptr(armcomputefleet.SpotAllocationStrategyPriceCapacityOptimized), - // Maintain: to.Ptr(true), - // }, - // RegularPriorityProfile: &armcomputefleet.RegularPriorityProfile{ - // Capacity: to.Ptr[int32](20), - // MinCapacity: to.Ptr[int32](10), - // AllocationStrategy: to.Ptr(armcomputefleet.RegularPriorityAllocationStrategyLowestPrice), - // }, - // VMSizesProfile: []*armcomputefleet.VMSizeProfile{ - // { - // Name: to.Ptr("Standard_d1_v2"), - // Rank: to.Ptr[int32](19225), - // }, - // }, - // ComputeProfile: &armcomputefleet.ComputeProfile{ - // BaseVirtualMachineProfile: &armcomputefleet.BaseVirtualMachineProfile{ - // OSProfile: &armcomputefleet.VirtualMachineScaleSetOSProfile{ - // ComputerNamePrefix: to.Ptr("o"), - // AdminUsername: to.Ptr("nrgzqciiaaxjrqldbmjbqkyhntp"), - // WindowsConfiguration: &armcomputefleet.WindowsConfiguration{ - // ProvisionVMAgent: to.Ptr(true), - // EnableAutomaticUpdates: to.Ptr(true), - // TimeZone: to.Ptr("hlyjiqcfksgrpjrct"), - // AdditionalUnattendContent: []*armcomputefleet.AdditionalUnattendContent{ - // { - // PassName: to.Ptr("OobeSystem"), - // ComponentName: to.Ptr("Microsoft-Windows-Shell-Setup"), - // SettingName: to.Ptr(armcomputefleet.SettingNamesAutoLogon), - // }, - // }, - // PatchSettings: &armcomputefleet.PatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.WindowsVMGuestPatchModeManual), - // EnableHotpatching: to.Ptr(true), - // AssessmentMode: to.Ptr(armcomputefleet.WindowsPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // WinRM: &armcomputefleet.WinRMConfiguration{ - // Listeners: []*armcomputefleet.WinRMListener{ - // { - // Protocol: to.Ptr(armcomputefleet.ProtocolTypesHTTP), - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // }, - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // LinuxConfiguration: &armcomputefleet.LinuxConfiguration{ - // DisablePasswordAuthentication: to.Ptr(true), - // SSH: &armcomputefleet.SSHConfiguration{ - // PublicKeys: []*armcomputefleet.SSHPublicKey{ - // { - // Path: to.Ptr("kmqz"), - // KeyData: to.Ptr("kivgsubusvpprwqaqpjcmhsv"), - // }, - // }, - // }, - // ProvisionVMAgent: to.Ptr(true), - // PatchSettings: &armcomputefleet.LinuxPatchSettings{ - // PatchMode: to.Ptr(armcomputefleet.LinuxVMGuestPatchModeImageDefault), - // AssessmentMode: to.Ptr(armcomputefleet.LinuxPatchAssessmentModeImageDefault), - // AutomaticByPlatformSettings: &armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformSettings{ - // RebootSetting: to.Ptr(armcomputefleet.LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), - // BypassPlatformSafetyChecksOnUserSchedule: to.Ptr(true), - // }, - // }, - // EnableVMAgentPlatformUpdates: to.Ptr(true), - // }, - // Secrets: []*armcomputefleet.VaultSecretGroup{ - // { - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // VaultCertificates: []*armcomputefleet.VaultCertificate{ - // { - // CertificateURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/myCertName"), - // CertificateStore: to.Ptr("nlxrwavpzhueffxsshlun"), - // }, - // }, - // }, - // }, - // AllowExtensionOperations: to.Ptr(true), - // RequireGuestProvisionSignal: to.Ptr(true), - // }, - // StorageProfile: &armcomputefleet.VirtualMachineScaleSetStorageProfile{ - // ImageReference: &armcomputefleet.ImageReference{ - // Publisher: to.Ptr("mqxgwbiyjzmxavhbkd"), - // Offer: to.Ptr("isxgumkarlkomp"), - // SKU: to.Ptr("eojmppqcrnpmxirtp"), - // Version: to.Ptr("wvpcqefgtmqdgltiuz"), - // SharedGalleryImageID: to.Ptr("kmkgihoxwlawuuhcinfirktdwkmx"), - // CommunityGalleryImageID: to.Ptr("vlqe"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}"), - // ExactVersion: to.Ptr("zjbntmiskjexlr"), - // }, - // OSDisk: &armcomputefleet.VirtualMachineScaleSetOSDisk{ - // Name: to.Ptr("wfttw"), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiffDiskSettings: &armcomputefleet.DiffDiskSettings{ - // Option: to.Ptr(armcomputefleet.DiffDiskOptionsLocal), - // Placement: to.Ptr(armcomputefleet.DiffDiskPlacementCacheDisk), - // }, - // DiskSizeGB: to.Ptr[int32](14), - // OSType: to.Ptr(armcomputefleet.OperatingSystemTypesWindows), - // Image: &armcomputefleet.VirtualHardDisk{ - // URI: to.Ptr("https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd"), - // }, - // VhdContainers: []*string{ - // to.Ptr("tkzcwddtinkfpnfklatw"), - // }, - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // DataDisks: []*armcomputefleet.VirtualMachineScaleSetDataDisk{ - // { - // Name: to.Ptr("eogiykmdmeikswxmigjws"), - // Lun: to.Ptr[int32](14), - // Caching: to.Ptr(armcomputefleet.CachingTypesNone), - // WriteAcceleratorEnabled: to.Ptr(true), - // CreateOption: to.Ptr(armcomputefleet.DiskCreateOptionTypesFromImage), - // DiskSizeGB: to.Ptr[int32](6), - // ManagedDisk: &armcomputefleet.VirtualMachineScaleSetManagedDiskParameters{ - // StorageAccountType: to.Ptr(armcomputefleet.StorageAccountTypesStandardLRS), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // SecurityProfile: &armcomputefleet.VMDiskSecurityProfile{ - // SecurityEncryptionType: to.Ptr(armcomputefleet.SecurityEncryptionTypesVMGuestStateOnly), - // DiskEncryptionSet: &armcomputefleet.DiskEncryptionSetParameters{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), - // }, - // }, - // }, - // DiskIOPSReadWrite: to.Ptr[int64](27), - // DiskMBpsReadWrite: to.Ptr[int64](2), - // DeleteOption: to.Ptr(armcomputefleet.DiskDeleteOptionTypesDelete), - // }, - // }, - // }, - // NetworkProfile: &armcomputefleet.VirtualMachineScaleSetNetworkProfile{ - // HealthProbe: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"), - // }, - // NetworkInterfaceConfigurations: []*armcomputefleet.VirtualMachineScaleSetNetworkConfiguration{ - // { - // Name: to.Ptr("i"), - // Properties: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationProperties{ - // Primary: to.Ptr(true), - // EnableAcceleratedNetworking: to.Ptr(true), - // DisableTCPStateTracking: to.Ptr(true), - // EnableFpga: to.Ptr(true), - // NetworkSecurityGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"), - // }, - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetNetworkConfigurationDNSSettings{ - // DNSServers: []*string{ - // to.Ptr("nxmmfolhclsesu"), - // }, - // }, - // IPConfigurations: []*armcomputefleet.VirtualMachineScaleSetIPConfiguration{ - // { - // Name: to.Ptr("oezqhkidfhyywlfzwuotilrpbqnjg"), - // Properties: &armcomputefleet.VirtualMachineScaleSetIPConfigurationProperties{ - // Subnet: &armcomputefleet.APIEntityReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"), - // }, - // Primary: to.Ptr(true), - // PublicIPAddressConfiguration: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfiguration{ - // Name: to.Ptr("fvpqf"), - // Properties: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{ - // IdleTimeoutInMinutes: to.Ptr[int32](9), - // DNSSettings: &armcomputefleet.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{ - // DomainNameLabel: to.Ptr("ukrddzvmorpmfsczjwtbvp"), - // DomainNameLabelScope: to.Ptr(armcomputefleet.DomainNameLabelScopeTypesTenantReuse), - // }, - // IPTags: []*armcomputefleet.VirtualMachineScaleSetIPTag{ - // { - // IPTagType: to.Ptr("sddgsoemnzgqizale"), - // Tag: to.Ptr("wufmhrjsakbiaetyara"), - // }, - // }, - // PublicIPPrefix: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}"), - // }, - // PublicIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // }, - // SKU: &armcomputefleet.PublicIPAddressSKU{ - // Name: to.Ptr(armcomputefleet.PublicIPAddressSKUNameBasic), - // Tier: to.Ptr(armcomputefleet.PublicIPAddressSKUTierRegional), - // }, - // }, - // PrivateIPAddressVersion: to.Ptr(armcomputefleet.IPVersionIPv4), - // ApplicationGatewayBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // ApplicationSecurityGroups: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"), - // }, - // }, - // LoadBalancerBackendAddressPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"), - // }, - // }, - // LoadBalancerInboundNatPools: []*armcomputefleet.SubResource{ - // { - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}"), - // }, - // }, - // }, - // }, - // }, - // EnableIPForwarding: to.Ptr(true), - // DeleteOption: to.Ptr(armcomputefleet.DeleteOptionsDelete), - // AuxiliaryMode: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliaryModeNone), - // AuxiliarySKU: to.Ptr(armcomputefleet.NetworkInterfaceAuxiliarySKUNone), - // }, - // }, - // }, - // NetworkAPIVersion: to.Ptr(armcomputefleet.NetworkAPIVersionV20201101), - // }, - // SecurityProfile: &armcomputefleet.SecurityProfile{ - // UefiSettings: &armcomputefleet.UefiSettings{ - // SecureBootEnabled: to.Ptr(true), - // VTpmEnabled: to.Ptr(true), - // }, - // EncryptionAtHost: to.Ptr(true), - // SecurityType: to.Ptr(armcomputefleet.SecurityTypesTrustedLaunch), - // EncryptionIdentity: &armcomputefleet.EncryptionIdentity{ - // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}"), - // }, - // ProxyAgentSettings: &armcomputefleet.ProxyAgentSettings{ - // Enabled: to.Ptr(true), - // Mode: to.Ptr(armcomputefleet.ModeAudit), - // KeyIncarnationID: to.Ptr[int32](20), - // }, - // }, - // DiagnosticsProfile: &armcomputefleet.DiagnosticsProfile{ - // BootDiagnostics: &armcomputefleet.BootDiagnostics{ - // Enabled: to.Ptr(true), - // StorageURI: to.Ptr("http://myStorageAccountName.blob.core.windows.net"), - // }, - // }, - // ExtensionProfile: &armcomputefleet.VirtualMachineScaleSetExtensionProfile{ - // Extensions: []*armcomputefleet.VirtualMachineScaleSetExtension{ - // { - // Name: to.Ptr("bndxuxx"), - // Properties: &armcomputefleet.VirtualMachineScaleSetExtensionProperties{ - // ForceUpdateTag: to.Ptr("yhgxw"), - // Publisher: to.Ptr("kpxtirxjfprhs"), - // Type: to.Ptr("pgjilctjjwaa"), - // TypeHandlerVersion: to.Ptr("zevivcoilxmbwlrihhhibq"), - // AutoUpgradeMinorVersion: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // ProvisionAfterExtensions: []*string{ - // to.Ptr("nftzosroolbcwmpupujzqwqe"), - // }, - // SuppressFailures: to.Ptr(true), - // ProtectedSettingsFromKeyVault: &armcomputefleet.KeyVaultSecretReference{ - // SecretURL: to.Ptr("https://myVaultName.vault.azure.net/secrets/secret/mySecretName"), - // SourceVault: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"), - // }, - // }, - // Settings: map[string]any{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // Type: to.Ptr("cmeam"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}"), - // }, - // }, - // ExtensionsTimeBudget: to.Ptr("mbhjahtdygwgyszdwjtvlvtgchdwil"), - // }, - // LicenseType: to.Ptr("v"), - // ScheduledEventsProfile: &armcomputefleet.ScheduledEventsProfile{ - // TerminateNotificationProfile: &armcomputefleet.TerminateNotificationProfile{ - // NotBeforeTimeout: to.Ptr("iljppmmw"), - // Enable: to.Ptr(true), - // }, - // OSImageNotificationProfile: &armcomputefleet.OSImageNotificationProfile{ - // NotBeforeTimeout: to.Ptr("olbpadmevekyczfokodtfprxti"), - // Enable: to.Ptr(true), - // }, - // }, - // UserData: to.Ptr("s"), - // CapacityReservation: &armcomputefleet.CapacityReservationProfile{ - // CapacityReservationGroup: &armcomputefleet.SubResource{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"), - // }, - // }, - // ApplicationProfile: &armcomputefleet.ApplicationProfile{ - // GalleryApplications: []*armcomputefleet.VMGalleryApplication{ - // { - // Tags: to.Ptr("eyrqjbib"), - // Order: to.Ptr[int32](5), - // PackageReferenceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}"), - // TreatFailureAsDeploymentFailure: to.Ptr(true), - // EnableAutomaticUpgrade: to.Ptr(true), - // }, - // }, - // }, - // HardwareProfile: &armcomputefleet.VirtualMachineScaleSetHardwareProfile{ - // VMSizeProperties: &armcomputefleet.VMSizeProperties{ - // VCPUsAvailable: to.Ptr[int32](16), - // VCPUsPerCore: to.Ptr[int32](23), - // }, - // }, - // ServiceArtifactReference: &armcomputefleet.ServiceArtifactReference{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}"), - // }, - // SecurityPostureReference: &armcomputefleet.SecurityPostureReference{ - // ID: to.Ptr("/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest"), - // ExcludeExtensions: []*string{ - // to.Ptr("{securityPostureVMExtensionName}"), - // }, - // IsOverridable: to.Ptr(true), - // }, - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // ComputeAPIVersion: to.Ptr("2023-07-01"), - // PlatformFaultDomainCount: to.Ptr[int32](1), - // }, - // ProvisioningState: to.Ptr(armcomputefleet.ProvisioningStateCreating), - // TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-10T00:16:34.8590555+00:00"); return t}()), - // UniqueID: to.Ptr("a2f7fabd-bbc2-4a20-afe1-49fdb3885a28"), - // }, - // Zones: []*string{ - // to.Ptr("zone1"), - // to.Ptr("zone2"), - // }, - // Identity: &armcomputefleet.ManagedServiceIdentity{ - // Type: to.Ptr(armcomputefleet.ManagedServiceIdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armcomputefleet.UserAssignedIdentity{ - // }, - // PrincipalID: to.Ptr("4d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // TenantID: to.Ptr("5d508e5b-374b-4382-9a1c-01fb8b6cb37c"), - // }, - // Tags: map[string]*string{ - // }, - // Location: to.Ptr("westus"), - // Plan: &armcomputefleet.Plan{ - // Name: to.Ptr("uapfngmdekvpgjhomthtpxjfdmmll"), - // Publisher: to.Ptr("aqhles"), - // Product: to.Ptr("bfzbkdnbexmedxdc"), - // PromotionCode: to.Ptr("gspehogwfjxirz"), - // Version: to.Ptr("yza"), - // }, - // ID: to.Ptr("/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/testFleet"), - // Name: to.Ptr("testFleet"), - // Type: to.Ptr("Microsoft.AzureFleet/fleets"), - // SystemData: &armcomputefleet.SystemData{ - // CreatedBy: to.Ptr("rowegentrpoajsv"), - // CreatedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // LastModifiedBy: to.Ptr("edwuayhhaoepxzisfaqjhmrxjq"), - // LastModifiedByType: to.Ptr(armcomputefleet.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-29T21:51:44.043Z"); return t}()), - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/go.mod b/sdk/resourcemanager/computefleet/armcomputefleet/go.mod index 67c3d9b64fab..4fdcec593f8d 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/go.mod +++ b/sdk/resourcemanager/computefleet/armcomputefleet/go.mod @@ -1,21 +1,11 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet/v2 go 1.23.0 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.1 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.1 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.2 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - golang.org/x/crypto v0.36.0 // indirect golang.org/x/net v0.38.0 // indirect - golang.org/x/sys v0.31.0 // indirect golang.org/x/text v0.23.0 // indirect ) diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/go.sum b/sdk/resourcemanager/computefleet/armcomputefleet/go.sum index 4bacf756f06c..4de695d9e23a 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/go.sum +++ b/sdk/resourcemanager/computefleet/armcomputefleet/go.sum @@ -1,44 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.1 h1:DSDNVxqkoXJiko6x8a90zidoYqnYYa6c1MTzDKzKkTo= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.1/go.mod h1:zGqV2R4Cr/k8Uye5w+dgQ06WJtEcbQG/8J7BB6hnCr4= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 h1:F0gBpfdPLGsw+nsgk6aqqkZS1jiixa5WwFe3fk/T3Ys= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2/go.mod h1:SqINnQ9lVVdRlyC8cd1lCI0SdX4n2paeABd2K8ggfnE= -github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2 h1:yz1bePFlP5Vws5+8ez6T3HWXPmwOK7Yvq8QxDBD3SKY= -github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2/go.mod h1:Pa9ZNPuoNu/GztvBSKk9J1cDJW6vk/n0zLtV4mgd8N8= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= -github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= -github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE= -github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 h1:oygO0locgZJe7PpYPXT5A29ZkwJaPqcva7BVeemZOZs= -github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= -github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= -github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= -github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs= -github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6/go.mod h1:3VeWNIJaW+O5xpRQbPp0Ybqu1vJd/pm7s2F473HRrkw= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E= -github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= -golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/models.go b/sdk/resourcemanager/computefleet/armcomputefleet/models.go index caf2d6bf4392..facdc1e214de 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/models.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/models.go @@ -117,9 +117,9 @@ type BaseVirtualMachineProfile struct { // Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS // (for SUSE)

For more information, see [Azure Hybrid Use Benefit for // Windows - // Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + // Server](https://learn.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) //

[Azure Hybrid Use Benefit for Linux - // Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) + // Server](https://learn.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) //

Minimum api-version: 2015-06-15 LicenseType *string @@ -229,8 +229,8 @@ type DiffDiskSettings struct { // values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: // **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** // is used. Refer to the VM size documentation for Windows VM at - // https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at - // https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM + // https://learn.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at + // https://learn.microsoft.com/azure/virtual-machines/linux/sizes to check which VM // sizes exposes a cache disk. Placement *DiffDiskPlacement } @@ -304,6 +304,9 @@ type FleetProperties struct { // Represents the configuration for additional locations where Fleet resources may be deployed. AdditionalLocationsProfile *AdditionalLocationsProfile + // Specifies the display name a Compute Fleet. + DisplayName *string + // Configuration Options for Regular instances in Compute Fleet. RegularPriorityProfile *RegularPriorityProfile @@ -403,7 +406,7 @@ type KeyVaultSecretReference struct { // LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine. For a // list of supported Linux distributions, see [Linux on Azure-Endorsed -// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). +// Distributions](https://learn.microsoft.com/azure/virtual-machines/linux/endorsed-distros). type LinuxConfiguration struct { // Specifies whether password authentication should be disabled. DisablePasswordAuthentication *bool @@ -509,12 +512,12 @@ type OSImageNotificationProfile struct { // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { - // Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - ActionType *ActionType - - // READ-ONLY; Localized display information for this particular operation. + // Localized display information for this particular operation. Display *OperationDisplay + // READ-ONLY; Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + ActionType *ActionType + // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure // Resource Manager/control-plane operations. IsDataAction *bool @@ -679,7 +682,7 @@ type SSHPublicKey struct { // SSH public key certificate used to authenticate with the VM through ssh. The // key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, // see [Create SSH keys on Linux and Mac for Linux VMs in - // Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). + // Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). KeyData *string // Specifies the full path on the created VM where ssh public key is stored. If @@ -908,6 +911,7 @@ type VMAttributes struct { LocalStorageInGiB *VMAttributeMinMaxDouble // Specifies whether the VMSize supporting local storage should be used to build Fleet or not. + // Included - Default if not specified as most Azure VMs support local storage. LocalStorageSupport *VMAttributeSupport // The range of memory in GiB per vCPU specified from min to max. Optional parameter. Either Min or Max is required if specified. @@ -991,14 +995,14 @@ type VMSizeProperties struct { // specified in the request body the default behavior is to set it to the value of // vCPUs available for that VM size exposed in api response of [List all available // virtual machine sizes in a - // region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). + // region](https://learn.microsoft.com/en-us/rest/api/compute/resource-skus/list). VCPUsAvailable *int32 // Specifies the vCPU to physical core ratio. When this property is not specified // in the request body the default behavior is set to the value of vCPUsPerCore // for the VM Size exposed in api response of [List all available virtual machine // sizes in a - // region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). + // region](https://learn.microsoft.com/en-us/rest/api/compute/resource-skus/list). // **Setting this property to 1 also means that hyper-threading is disabled.** VCPUsPerCore *int32 } @@ -1018,16 +1022,16 @@ type VaultCertificate struct { // This is the URL of a certificate that has been uploaded to Key Vault as a // secret. For adding a secret to the Key Vault, see [Add a key or secret to the // key - // vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). + // vault](https://learn.microsoft.com/azure/key-vault/key-vault-get-started/#add). // In this case, your certificate needs to be It is the Base64 encoding of the // following JSON Object which is encoded in UTF-8:

{
// "data":"",
"dataType":"pfx",
// "password":""
}
To install certificates on a virtual // machine it is recommended to use the [Azure Key Vault virtual machine extension // for - // Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) + // Linux](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) // or the [Azure Key Vault virtual machine extension for - // Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). + // Windows](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). CertificateURL *string } @@ -1419,10 +1423,10 @@ type VirtualMachineScaleSetOSProfile struct { // "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", // "Password22", "iloveyou!"

For resetting the password, see [How to // reset the Remote Desktop service or its login password in a Windows - // VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) + // VM](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) //

For resetting root password, see [Manage users, SSH, and check or // repair disks on Azure Linux VMs using the VMAccess - // Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) + // Extension](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) AdminPassword *string // Specifies the name of the administrator account.

**Windows-only @@ -1448,12 +1452,12 @@ type VirtualMachineScaleSetOSProfile struct { // is decoded to a binary array that is saved as a file on the Virtual Machine. // The maximum length of the binary array is 65535 bytes. For using cloud-init for // your VM, see [Using cloud-init to customize a Linux VM during - // creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) + // creation](https://learn.microsoft.com/azure/virtual-machines/linux/using-cloud-init) CustomData *string // Specifies the Linux operating system settings on the virtual machine. For a // list of supported Linux distributions, see [Linux on Azure-Endorsed - // Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). + // Distributions](https://learn.microsoft.com/azure/virtual-machines/linux/endorsed-distros). LinuxConfiguration *LinuxConfiguration // Optional property which must either be set to True or omitted. @@ -1462,9 +1466,9 @@ type VirtualMachineScaleSetOSProfile struct { // Specifies set of certificates that should be installed onto the virtual // machines in the scale set. To install certificates on a virtual machine it is // recommended to use the [Azure Key Vault virtual machine extension for - // Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) + // Linux](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) // or the [Azure Key Vault virtual machine extension for - // Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). + // Windows](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). Secrets []*VaultSecretGroup // Specifies Windows operating system settings on the virtual machine. @@ -1531,7 +1535,7 @@ type VirtualMachineScaleSetStorageProfile struct { // Specifies the parameters that are used to add data disks to the virtual // machines in the scale set. For more information about disks, see [About disks // and VHDs for Azure virtual - // machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). + // machines](https://learn.microsoft.com/azure/virtual-machines/managed-disks-overview). DataDisks []*VirtualMachineScaleSetDataDisk // Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01 @@ -1546,7 +1550,7 @@ type VirtualMachineScaleSetStorageProfile struct { // Specifies information about the operating system disk used by the virtual // machines in the scale set. For more information about disks, see [About disks // and VHDs for Azure virtual - // machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). + // machines](https://learn.microsoft.com/azure/virtual-machines/managed-disks-overview). OSDisk *VirtualMachineScaleSetOSDisk } @@ -1561,16 +1565,16 @@ type WinRMListener struct { // This is the URL of a certificate that has been uploaded to Key Vault as a // secret. For adding a secret to the Key Vault, see [Add a key or secret to the // key - // vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). + // vault](https://learn.microsoft.com/azure/key-vault/key-vault-get-started/#add). // In this case, your certificate needs to be the Base64 encoding of the following // JSON Object which is encoded in UTF-8:

{
// "data":"",
"dataType":"pfx",
// "password":""
}
To install certificates on a virtual // machine it is recommended to use the [Azure Key Vault virtual machine extension // for - // Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) + // Linux](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) // or the [Azure Key Vault virtual machine extension for - // Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). + // Windows](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). CertificateURL *string // Specifies the protocol of WinRM listener. Possible values are: **http,** @@ -1604,9 +1608,9 @@ type WindowsConfiguration struct { // Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". // Possible values can be - // [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) + // [TimeZoneInfo.Id](https://learn.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) // value from time zones returned by - // [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). + // [TimeZoneInfo.GetSystemTimeZones](https://learn.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). TimeZone *string // Specifies the Windows Remote Management listeners. This enables remote Windows diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/models_serde.go b/sdk/resourcemanager/computefleet/armcomputefleet/models_serde.go index df1f6336792d..bc971b043b65 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/models_serde.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/models_serde.go @@ -635,6 +635,7 @@ func (f FleetProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "additionalLocationsProfile", f.AdditionalLocationsProfile) populate(objectMap, "computeProfile", f.ComputeProfile) + populate(objectMap, "displayName", f.DisplayName) populate(objectMap, "provisioningState", f.ProvisioningState) populate(objectMap, "regularPriorityProfile", f.RegularPriorityProfile) populate(objectMap, "spotPriorityProfile", f.SpotPriorityProfile) @@ -660,6 +661,9 @@ func (f *FleetProperties) UnmarshalJSON(data []byte) error { case "computeProfile": err = unpopulate(val, "ComputeProfile", &f.ComputeProfile) delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &f.DisplayName) + delete(rawMsg, key) case "provisioningState": err = unpopulate(val, "ProvisioningState", &f.ProvisioningState) delete(rawMsg, key) diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/operations_client.go b/sdk/resourcemanager/computefleet/armcomputefleet/operations_client.go index e6f217fbf10e..8ab786dc9c19 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/operations_client.go +++ b/sdk/resourcemanager/computefleet/armcomputefleet/operations_client.go @@ -35,7 +35,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - List the operations for the provider // -// Generated from API version 2024-11-01 +// Generated from API version 2025-05-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -68,7 +68,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/operations_client_example_test.go b/sdk/resourcemanager/computefleet/armcomputefleet/operations_client_example_test.go deleted file mode 100644 index 9ba1df570e27..000000000000 --- a/sdk/resourcemanager/computefleet/armcomputefleet/operations_client_example_test.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armcomputefleet_test - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet" - "log" -) - -// Generated from example definition: 2024-11-01/Operations_List.json -func ExampleOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armcomputefleet.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewOperationsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page = armcomputefleet.OperationsClientListResponse{ - // OperationListResult: armcomputefleet.OperationListResult{ - // Value: []*armcomputefleet.Operation{ - // { - // Origin: to.Ptr(armcomputefleet.OriginUserSystem), - // Name: to.Ptr("Microsoft.AzureFleet/fleets/read"), - // IsDataAction: to.Ptr(false), - // Display: &armcomputefleet.OperationDisplay{ - // Provider: to.Ptr("Microsoft Azure Fleet"), - // Resource: to.Ptr("Fleets"), - // Operation: to.Ptr("Get Azure Fleet"), - // Description: to.Ptr("Get properties of Azure Fleet resource"), - // }, - // }, - // { - // Origin: to.Ptr(armcomputefleet.OriginUserSystem), - // Name: to.Ptr("Microsoft.AzureFleet/fleets/write"), - // IsDataAction: to.Ptr(false), - // Display: &armcomputefleet.OperationDisplay{ - // Provider: to.Ptr("Microsoft Azure Fleet"), - // Resource: to.Ptr("Fleets"), - // Operation: to.Ptr("Create or Update Azure Fleet"), - // Description: to.Ptr("Creates a new Azure Fleet resource or updates an existing one"), - // }, - // }, - // { - // Origin: to.Ptr(armcomputefleet.OriginUserSystem), - // Name: to.Ptr("Microsoft.AzureFleet/fleets/delete"), - // IsDataAction: to.Ptr(false), - // Display: &armcomputefleet.OperationDisplay{ - // Provider: to.Ptr("Microsoft Azure Fleet"), - // Resource: to.Ptr("Fleets"), - // Operation: to.Ptr("Delete Virtual Machine and Virtual Machine scale sets in a Azure Fleet resource"), - // Description: to.Ptr("Deletes all compute resources of Azure Fleet resource"), - // }, - // }, - // { - // Origin: to.Ptr(armcomputefleet.OriginUserSystem), - // Name: to.Ptr("Microsoft.AzureFleet/register/action"), - // IsDataAction: to.Ptr(false), - // Display: &armcomputefleet.OperationDisplay{ - // Provider: to.Ptr("Microsoft Azure Fleet"), - // Resource: to.Ptr("Subscription"), - // Operation: to.Ptr("Register subscription for Microsoft.AzureFleet"), - // Description: to.Ptr("Registers Subscription with Microsoft.AzureFleet resource provider"), - // }, - // }, - // { - // Origin: to.Ptr(armcomputefleet.OriginUserSystem), - // Name: to.Ptr("Microsoft.AzureFleet/unregister/action"), - // IsDataAction: to.Ptr(false), - // Display: &armcomputefleet.OperationDisplay{ - // Provider: to.Ptr("Microsoft Azure Fleet"), - // Resource: to.Ptr("Subscription"), - // Operation: to.Ptr("Unregister Subscription for Microsoft.AzureFleet"), - // Description: to.Ptr("Unregisters Subscription with Microsoft.AzureFleet resource provider"), - // }, - // }, - // }, - // }, - // } - } -} diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/tsp-location.yaml b/sdk/resourcemanager/computefleet/armcomputefleet/tsp-location.yaml index c8d950e137b2..3628a85fb278 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/tsp-location.yaml +++ b/sdk/resourcemanager/computefleet/armcomputefleet/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/azurefleet/AzureFleet.Management -commit: c120171b3684d88562fa26ae7db5d22b7bfa95d8 +commit: fa2867159b326c5e737c0fb3a48afe6808c9c2fa repo: Azure/azure-rest-api-specs additionalDirectories: