Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions provider/pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,10 @@ func (k *azureNativeProvider) Read(ctx context.Context, req *rpc.ReadRequest) (*

if inputs == nil {
// There may be no old state (i.e., importing a new resource).
// Read the canonical ID from the response.
if azureId, ok := response["id"].(string); ok {
id = azureId
}
// Extract inputs from resource's ID and response body.
pathItems, err := resources.ParseResourceID(id, res.Path)
if err != nil {
Expand Down
Loading